6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
44 lines
1.0 KiB
JavaScript
44 lines
1.0 KiB
JavaScript
'use strict'
|
|
|
|
const bindings = require('../build/Release/canvas.node')
|
|
|
|
module.exports = bindings
|
|
|
|
Object.defineProperty(bindings.Canvas.prototype, Symbol.toStringTag, {
|
|
value: 'HTMLCanvasElement',
|
|
configurable: true
|
|
})
|
|
|
|
Object.defineProperty(bindings.Image.prototype, Symbol.toStringTag, {
|
|
value: 'HTMLImageElement',
|
|
configurable: true
|
|
})
|
|
|
|
bindings.ImageData.prototype.toString = function () {
|
|
return '[object ImageData]'
|
|
}
|
|
|
|
Object.defineProperty(bindings.ImageData.prototype, Symbol.toStringTag, {
|
|
value: 'ImageData',
|
|
configurable: true
|
|
})
|
|
|
|
bindings.CanvasGradient.prototype.toString = function () {
|
|
return '[object CanvasGradient]'
|
|
}
|
|
|
|
Object.defineProperty(bindings.CanvasGradient.prototype, Symbol.toStringTag, {
|
|
value: 'CanvasGradient',
|
|
configurable: true
|
|
})
|
|
|
|
Object.defineProperty(bindings.CanvasPattern.prototype, Symbol.toStringTag, {
|
|
value: 'CanvasPattern',
|
|
configurable: true
|
|
})
|
|
|
|
Object.defineProperty(bindings.CanvasRenderingContext2d.prototype, Symbol.toStringTag, {
|
|
value: 'CanvasRenderingContext2d',
|
|
configurable: true
|
|
})
|