canvas-compositor/index.js.map

1 line
60 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,WAAW;AAAK,IAAI,WAAW;AAAK,IAAI,aAAa;AAAM,IAAI,eAAe;AAAmB,OAAO,OAAO,gBAAgB;AAAmB;AAEtJ,iJAAiJ,GACjJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,GACA,IAAI,aAAa;AACjB,IAAI,YAAY,OAAO,OAAO;AAC9B,SAAS,OAAO,UAAU;IACxB,UAAU,KAAK,IAAI,EAAE;IACrB,IAAI,CAAC,MAAM;QACT,MAAM,OAAO,OAAO,OAAO,CAAC,WAAW;QACvC,kBAAkB,EAAE;QACpB,mBAAmB,EAAE;QACrB,QAAQ,SAAU,EAAE;YAClB,IAAI,CAAC,iBAAiB,KAAK,MAAM,YAAa;QAChD;QACA,SAAS,SAAU,EAAE;YACnB,IAAI,CAAC,kBAAkB,KAAK;QAC9B;IACF;IACA,OAAO,OAAO,OAAO,CAAC,WAAW,GAAG;AACtC;AACA,OAAO,OAAO,SAAS;AACvB,OAAO,OAAO,UAAU,CAAC;AACzB,IAAI,cAAc,0BAA0B,KAAI,gBAAgB,mCAAmC,KAAI,eAAe,mCAAmC;AAEzJ,SAAS;IACP,OAAO,YAAa,CAAA,SAAS,SAAS,QAAQ,YAAY,IAAI,SAAS,WAAW,WAAU;AAC9F;AACA,SAAS;IACP,OAAO,YAAY,SAAS;AAC9B;AAEA,wCAAwC;AACxC,IAAI,SAAS,OAAO,OAAO;AAC3B,IAAI,AAAC,CAAA,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AAC;QACjB,EAAE,MAAM,IAAI,CAAC;QACb,EAAE,IAAI,IAAI,CAAC;QACX,EAAE,IAAI,IAAI,CAAC;QACX,OAAO;IACX;;aApBO,OAAO;aACP,YAAY;aACZ,kBAAkB;aAClB,OAAa,CAAC;;AAkBzB;kBAvBqB;;;;;ACArB;;AAEe,MAAM,iBAAiB,CAAA,GAAA,oBAAG;IAKrC,YAAY,IAAY,CAAC;QACrB,KAAK;aAJF,QAAiB;aAEjB,WAAoB;QAGvB,IAAI,CAAC,OAAO;QAEZ,IAAI,CAAC,iBAAiB;YAClB,IAAI,CAAC,SAAS,IAAI,CAAC;YACnB,IAAI,CAAC,QAAQ,QAAQ;YACrB,IAAI,CAAC,QAAQ,QAAQ,OAAO,IAAI,CAAC,WAAS;YAC1C,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,QAAQ,YAAY,IAAI,CAAC,MAAM;YACzD,IAAI,CAAC,QAAQ,QAAQ;YACrB,QAAQ,IAAI,IAAI,CAAC;QACrB;QACA,IAAI,CAAC,WAAW,SAAS,YAAY,EAAC,IAAI;YACtC,IAAI,MAAM,aAAa;YACvB,IAAI,OAAO,IAAI,CAAC,WAAS;YACzB,IAAI;YACJ,IAAI,YAAY,IAAI,CAAC;YACrB,IAAI,YAAY;YAChB,IAAI,eAAe;YACnB,IAAI,SAAS,IAAI,CAAC,MAAM,GAAE;YAC1B,IAAI;QACR;IACJ;AACJ;kBA5BqB","sources":["../../../usr/lib/node_modules/parcel/node_modules/@parcel/runtime-browser-hmr/lib/runtime-e5f11f36ed475c23.js","index.ts","Compositor/Canvas.ts","Compositor/Node.ts","Compositor/CanvasBuffer.ts","../../../usr/lib/node_modules/parcel/node_modules/@parcel/transformer-js/src/esmodule-helpers.js","Compositor/NodeEvent.ts","Compositor/TextNode.ts"],"sourcesContent":["var HMR_HOST = null;var HMR_PORT = 1234;var HMR_SECURE = false;var HMR_ENV_HASH = \"d6ea1d42532a7575\";module.bundle.HMR_BUNDLE_ID = \"34812aa376ac5ddd\";\"use strict\";\n\n/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */\n/*::\nimport type {\n HMRAsset,\n HMRMessage,\n} from '@parcel/reporter-dev-server/src/HMRServer.js';\ninterface ParcelRequire {\n (string): mixed;\n cache: {|[string]: ParcelModule|};\n hotData: {|[string]: mixed|};\n Module: any;\n parent: ?ParcelRequire;\n isParcelRequire: true;\n modules: {|[string]: [Function, {|[string]: string|}]|};\n HMR_BUNDLE_ID: string;\n root: ParcelRequire;\n}\ninterface ParcelModule {\n hot: {|\n data: mixed,\n accept(cb: (Function) => void): void,\n dispose(cb: (mixed) => void): void,\n // accept(deps: Array<string> | string, cb: (Function) => void): void,\n // decline(): void,\n _acceptCallbacks: Array<(Function) => void>,\n _disposeCallbacks: Array<(mixed) => void>,\n |};\n}\ninterface ExtensionContext {\n runtime: {|\n reload(): void,\n getURL(url: string): string;\n getManifest(): {manifest_version: number, ...};\n |};\n}\ndeclare var module: {bundle: ParcelRequire, ...};\ndeclare var HMR_HOST: string;\ndeclare var HMR_PORT: string;\ndeclare var HMR_ENV_HASH: string;\ndeclare var HMR_SECURE: boolean;\ndeclare var chrome: ExtensionContext;\ndeclare var browser: ExtensionContext;\ndeclare var __parcel__import__: (string) => Promise<void>;\ndeclare var __parcel__importScripts__: (string) => Promise<void>;\ndeclare var globalThis: typeof self;\ndeclare var ServiceWorkerGlobalScope: Object;\n*/\nvar OVERLAY_ID = '__parcel__error__overlay__';\nvar OldModule = module.bundle.Module;\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData[moduleName],\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n module.bundle.hotData[moduleName] = undefined;\n}\nmodule.bundle.Module = Module;\nmodule.bundle.hotData = {};\nvar checkedAssets /*: {|[string]: boolean|} */, assetsToDispose /*: Array<[ParcelRequire, string]> */, assetsToAccept /*: Array<[ParcelRequire, string]> */;\n\nfunction getHostname() {\n return HMR_HOST || (location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');\n}\nfunction getPort() {\n return HMR_PORT || location.port;\n}\n\n// eslint-disable-next-line no-redeclare\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = getHostname();\n var port = getPort();\n var protocol = HMR_SECURE || location.protocol == 'https:' && !/localhost|127.0.0.1|0.0.0.0/.test(hostname) ? 'wss' : 'ws';\n var ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/');\n\n // Web extension context\n var extCtx = typeof chrome === 'undefined' ? typeof browser === 'undefined' ? null : browser : chrome;\n\n // Safari doesn't support sourceURL in error stacks.\n // eval may also be disabled via CSP, so do a quick check.\n var supportsSourceURL = false;\n try {\n (0, eval)('throw new Error(\"test\"); //# sourceURL=test.js');\n } catch (err) {\n supportsSourceURL = err.stack.includes('test.js');\n }\n\n // $FlowFixMe\n ws.onmessage = async function (event /*: {data: string, ...} */) {\n checkedAssets = {} /*: {|[string]: boolean|} */;\n assetsToAccept = [];\n assetsToDispose = [];\n var data /*: HMRMessage */ = JSON.parse(event.data);\n if (data.type === 'update') {\n // Remove error overlay if there is one\n if (typeof document !== 'undefined') {\n removeErrorOverlay();\n }\n let assets = data.assets.filter(asset => asset.envHash === HMR_ENV_HASH);\n\n // Handle HMR Update\n let handled = assets.every(asset => {\n return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);\n });\n if (handled) {\n console.clear();\n\n // Dispatch custom event so other runtimes (e.g React Refresh) are aware.\n if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') {\n window.dispatchEvent(new CustomEvent('parcelhmraccept'));\n }\n await hmrApplyUpdates(assets);\n\n // Dispose all old assets.\n let processedAssets = {} /*: {|[string]: boolean|} */;\n for (let i = 0; i < assetsToDispose.length; i++) {\n let id = assetsToDispose[i][1];\n if (!processedAssets[id]) {\n hmrDispose(assetsToDispose[i][0], id);\n processedAssets[id] = true;\n }\n }\n\n // Run accept callbacks. This will also re-execute other disposed assets in topological order.\n processedAssets = {};\n for (let i = 0; i < assetsToAccept.length; i++) {\n let id = assetsToAccept[i][1];\n if (!processedAssets[id]) {\n hmrAccept(assetsToAccept[i][0], id);\n processedAssets[id] = true;\n }\n }\n } else fullReload();\n }\n if (data.type === 'error') {\n // Log parcel errors to console\n for (let ansiDiagnostic of data.diagnostics.ansi) {\n let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;\n console.error('🚨 [parcel]: ' + ansiDiagnostic.message + '\\n' + stack + '\\n\\n' + ansiDiagnostic.hints.join('\\n'));\n }\n if (typeof document !== 'undefined') {\n // Render the fancy html overlay\n removeErrorOverlay();\n var overlay = createErrorOverlay(data.diagnostics.html);\n // $FlowFixMe\n document.body.appendChild(overlay);\n }\n }\n };\n ws.onerror = function (e) {\n console.error(e.message);\n };\n ws.onclose = function () {\n console.warn('[parcel] 🚨 Connection to the HMR server was lost');\n };\n}\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n console.log('[parcel] ✨ Error resolved');\n }\n}\nfunction createErrorOverlay(diagnostics) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n let errorHTML = '<div style=\"background: black; opacity: 0.85; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; font-family: Menlo, Consolas, monospace; z-index: 9999;\">';\n for (let diagnostic of diagnostics) {\n let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame) => {\n return `${p}\n<a href=\"/__parcel_launch_editor?file=${encodeURIComponent(frame.location)}\" style=\"text-decoration: underline; color: #888\" onclick=\"fetch(this.href); return false\">${frame.location}</a>\n${frame.code}`;\n }, '') : diagnostic.stack;\n errorHTML += `\n <div>\n <div style=\"font-size: 18px; font-weight: bold; margin-top: 20px;\">\n 🚨 ${diagnostic.message}\n </div>\n <pre>${stack}</pre>\n <div>\n ${diagnostic.hints.map(hint => '<div>💡 ' + hint + '</div>').join('')}\n </div>\n ${diagnostic.documentation ? `<div>📝 <a style=\"color: violet\" href=\"${diagnostic.documentation}\" target=\"_blank\">Learn more</a></div>` : ''}\n </div>\n `;\n }\n errorHTML += '</div>';\n overlay.innerHTML = errorHTML;\n return overlay;\n}\nfunction fullReload() {\n if ('reload' in location) {\n location.reload();\n } else if (extCtx && extCtx.runtime && extCtx.runtime.reload) {\n extCtx.runtime.reload();\n }\n}\nfunction getParents(bundle, id) /*: Array<[ParcelRequire, string]> */{\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n var parents = [];\n var k, d, dep;\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {\n parents.push([bundle, k]);\n }\n }\n }\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n return parents;\n}\nfunction updateLink(link) {\n var href = link.getAttribute('href');\n if (!href) {\n return;\n }\n var newLink = link.cloneNode();\n newLink.onload = function () {\n if (link.parentNode !== null) {\n // $FlowFixMe\n link.parentNode.removeChild(link);\n }\n };\n newLink.setAttribute('href',\n // $FlowFixMe\n href.split('?')[0] + '?' + Date.now());\n // $FlowFixMe\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n // $FlowFixMe[incompatible-type]\n var href /*: string */ = links[i].getAttribute('href');\n var hostname = getHostname();\n var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\\\/\\\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());\n var absolute = /^https?:\\/\\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;\n if (!absolute) {\n updateLink(links[i]);\n }\n }\n cssTimeout = null;\n }, 50);\n}\nfunction hmrDownload(asset) {\n if (asset.type === 'js') {\n if (typeof document !== 'undefined') {\n let script = document.createElement('script');\n script.src = asset.url + '?t=' + Date.now();\n if (asset.outputFormat === 'esmodule') {\n script.type = 'module';\n }\n return new Promise((resolve, reject) => {\n var _document$head;\n script.onload = () => resolve(script);\n script.onerror = reject;\n (_document$head = document.head) === null || _document$head === void 0 ? void 0 : _document$head.appendChild(script);\n });\n } else if (typeof importScripts === 'function') {\n // Worker scripts\n if (asset.outputFormat === 'esmodule') {\n return __parcel__import__(asset.url + '?t=' + Date.now());\n } else {\n return new Promise((resolve, reject) => {\n try {\n __parcel__importScripts__(asset.url + '?t=' + Date.now());\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n }\n }\n }\n}\nasync function hmrApplyUpdates(assets) {\n global.parcelHotUpdate = Object.create(null);\n let scriptsToRemove;\n try {\n // If sourceURL comments aren't supported in eval, we need to load\n // the update from the dev server over HTTP so that stack traces\n // are correct in errors/logs. This is much slower than eval, so\n // we only do it if needed (currently just Safari).\n // https://bugs.webkit.org/show_bug.cgi?id=137297\n // This path is also taken if a CSP disallows eval.\n if (!supportsSourceURL) {\n let promises = assets.map(asset => {\n var _hmrDownload;\n return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch(err => {\n // Web extension bugfix for Chromium\n // https://bugs.chromium.org/p/chromium/issues/detail?id=1255412#c12\n if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3) {\n if (typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {\n extCtx.runtime.reload();\n return;\n }\n asset.url = extCtx.runtime.getURL('/__parcel_hmr_proxy__?url=' + encodeURIComponent(asset.url + '?t=' + Date.now()));\n return hmrDownload(asset);\n }\n throw err;\n });\n });\n scriptsToRemove = await Promise.all(promises);\n }\n assets.forEach(function (asset) {\n hmrApply(module.bundle.root, asset);\n });\n } finally {\n delete global.parcelHotUpdate;\n if (scriptsToRemove) {\n scriptsToRemove.forEach(script => {\n if (script) {\n var _document$head2;\n (_document$head2 = document.head) === null || _document$head2 === void 0 ? void 0 : _document$head2.removeChild(script);\n }\n });\n }\n }\n}\nfunction hmrApply(bundle /*: ParcelRequire */, asset /*: HMRAsset */) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (asset.type === 'css') {\n reloadCSS();\n } else if (asset.type === 'js') {\n let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];\n if (deps) {\n if (modules[asset.id]) {\n // Remove dependencies that are removed and will become orphaned.\n // This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.\n let oldDeps = modules[asset.id][1];\n for (let dep in oldDeps) {\n if (!deps[dep] || deps[dep] !== oldDeps[dep]) {\n let id = oldDeps[dep];\n let parents = getParents(module.bundle.root, id);\n if (parents.length === 1) {\n hmrDelete(module.bundle.root, id);\n }\n }\n }\n }\n if (supportsSourceURL) {\n // Global eval. We would use `new Function` here but browser\n // support for source maps is better with eval.\n (0, eval)(asset.output);\n }\n\n // $FlowFixMe\n let fn = global.parcelHotUpdate[asset.id];\n modules[asset.id] = [fn, deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n }\n}\nfunction hmrDelete(bundle, id) {\n let modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (modules[id]) {\n // Collect dependencies that will become orphaned when this module is deleted.\n let deps = modules[id][1];\n let orphans = [];\n for (let dep in deps) {\n let parents = getParents(module.bundle.root, deps[dep]);\n if (parents.length === 1) {\n orphans.push(deps[dep]);\n }\n }\n\n // Delete the module. This must be done before deleting dependencies in case of circular dependencies.\n delete modules[id];\n delete bundle.cache[id];\n\n // Now delete the orphans.\n orphans.forEach(id => {\n hmrDelete(module.bundle.root, id);\n });\n } else if (bundle.parent) {\n hmrDelete(bundle.parent, id);\n }\n}\nfunction hmrAcceptCheck(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n if (hmrAcceptCheckOne(bundle, id, depsByBundle)) {\n return true;\n }\n\n // Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.\n let parents = getParents(module.bundle.root, id);\n let accepted = false;\n while (parents.length > 0) {\n let v = parents.shift();\n let a = hmrAcceptCheckOne(v[0], v[1], null);\n if (a) {\n // If this parent accepts, stop traversing upward, but still consider siblings.\n accepted = true;\n } else {\n // Otherwise, queue the parents in the next level upward.\n let p = getParents(module.bundle.root, v[1]);\n if (p.length === 0) {\n // If there are no parents, then we've reached an entry without accepting. Reload.\n accepted = false;\n break;\n }\n parents.push(...p);\n }\n }\n return accepted;\n}\nfunction hmrAcceptCheckOne(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {\n // If we reached the root bundle without finding where the asset should go,\n // there's nothing to do. Mark as \"accepted\" so we don't reload the page.\n if (!bundle.parent) {\n return true;\n }\n return hmrAcceptCheck(bundle.parent, id, depsByBundle);\n }\n if (checkedAssets[id]) {\n return true;\n }\n checkedAssets[id] = true;\n var cached = bundle.cache[id];\n assetsToDispose.push([bundle, id]);\n if (!cached || cached.hot && cached.hot._acceptCallbacks.length) {\n assetsToAccept.push([bundle, id]);\n return true;\n }\n}\nfunction hmrDispose(bundle /*: ParcelRequire */, id /*: string */) {\n var cached = bundle.cache[id];\n bundle.hotData[id] = {};\n if (cached && cached.hot) {\n cached.hot.data = bundle.hotData[id];\n }\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData[id]);\n });\n }\n delete bundle.cache[id];\n}\nfunction hmrAccept(bundle /*: ParcelRequire */, id /*: string */) {\n // Execute the module.\n bundle(id);\n\n // Run the accept callbacks in the new version of the module.\n var cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n var assetsToAlsoAccept = cb(function () {\n return getParents(module.bundle.root, id);\n });\n if (assetsToAlsoAccept && assetsToAccept.length) {\n assetsToAlsoAccept.forEach(function (a) {\n hmrDispose(a[0], a[1]);\n });\n\n // $FlowFixMe[method-unbinding]\n assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);\n }\n });\n }\n}","import Node from \"./Compositor/Node\";\nimport Canvas from \"./Compositor/Canvas\"\nimport ImageNode from \"./Compositor/ImageNode\";\nimport TextNode from \"./Compositor/TextNode\";\n\n\nlet t = new Canvas();\nt.init();\n\nlet text = new TextNode(\"Merhaba arkadaşlar nasılsınız ?\");\ntext.color = \"black\";\ntext.x = 0;\ntext.fontSize = 24;\ntext.y = 0;\n\n\nt.addNode(text);","import Node from \"./Node\";\nimport NodeEvent from \"./NodeEvent\";\nexport default class Canvas\n{\n public context : CanvasRenderingContext2D;\n public canvas : HTMLCanvasElement;\n public width : number;\n public height : number;\n\n public rootNode = new Node(\"Root\");\n public nodes: [Node,number][] = [];\n\n public pool : DrawPool = new DrawPool();\n\n public constructor()\n {\n this.canvas = document.createElement(\"canvas\");\n this.context = this.canvas.getContext(\"2d\") as CanvasRenderingContext2D;\n this.installMouseManager();\n this.installKeyboardManager();\n }\n public init()\n {\n this.canvas.style.imageRendering = \"pixelated\";\n window.document.body.appendChild(this.canvas);\n this.recalculateSize();\n window.addEventListener(\"resize\",() => this.recalculateSize());\n this.pool.trigger = () => this.drawContext();\n }\n public installMouseManager()\n {\n this.canvas.addEventListener(\"mousedown\",(event) => {\n let mouseEvent = new NodeEvent();\n mouseEvent.x = event.offsetX;\n mouseEvent.y = event.offsetY;\n mouseEvent.type = \"mouse:down\";\n this.rootNode.emit(\"mouse\", mouseEvent);\n });\n this.canvas.addEventListener(\"mousemove\",(event) => {\n let mouseEvent = new NodeEvent();\n mouseEvent.x = event.offsetX;\n mouseEvent.y = event.offsetY;\n mouseEvent.data = {\n deltaX: event.movementX,\n deltaY: event.movementY\n };\n mouseEvent.type = \"mouse:move\";\n this.rootNode.emit(\"mouse\", mouseEvent);\n });\n this.canvas.addEventListener(\"mouseup\",(event) => {\n let mouseEvent = new NodeEvent();\n mouseEvent.x = event.offsetX;\n mouseEvent.y = event.offsetY;\n mouseEvent.type = \"mouse:up\";\n this.rootNode.emit(\"mouse\", mouseEvent);\n });\n this.canvas.addEventListener(\"click\",(event) => {\n let mouseEvent = new NodeEvent();\n mouseEvent.x = event.offsetX;\n mouseEvent.y = event.offsetY;\n mouseEvent.type = \"mouse:click\";\n this.rootNode.emit(\"mouse\", mouseEvent);\n });\n this.canvas.addEventListener(\"wheel\",(event) => {\n let mouseEvent = new NodeEvent();\n mouseEvent.x = event.offsetX;\n mouseEvent.y = event.offsetY;\n mouseEvent.data = {\n xModulus: event.deltaX == 0 ? 0 : event.deltaX < 0 ? -1 : +1,\n yModulus: event.deltaY == 0 ? 0 : event.deltaY < 0 ? -1 : +1,\n xScroll: event.deltaX,\n yScroll: event.deltaY\n };\n mouseEvent.type = \"mouse:wheel\";\n this.rootNode.emit(\"mouse\", mouseEvent);\n });\n }\n public installKeyboardManager()\n {\n \n }\n public recalculateSize()\n {\n let {\n width,\n height\n } = document.body.getClientRects()[0];\n this.canvas.setAttribute(\"width\", width + \"px\");\n this.canvas.setAttribute(\"height\", height + \"px\");\n this.canvas.style.width = width + \"px\";\n this.canvas.style.height = height + \"px\";\n this.width = width;\n this.height = height\n this.pool.notify();\n }\n public addNode(node:Node, priority : number= 0)\n {\n this.nodes.push([node,priority]);\n node.on('draw',() => {\n this.pool.notify();\n });\n this.pool.notify();\n }\n public drawContext()\n {\n this.rootNode.width = this.width;\n this.rootNode.height = this.height;\n this.rootNode.ChildNodes = this.nodes.sort(([,n], [,k]) => n - k).map(e => e[0]);\n this.context.clearRect(0, 0, this.width, this.height);\n this.rootNode.context.resize(this.rootNode.width, this.rootNode.height);\n this.rootNode.draw().writeTo(\n this.context,\n 0,\n 0,\n this.rootNode.width,\n this.rootNode.height,\n 0,\n 0,\n this.rootNode.width,\n this.rootNode.height\n );\n }\n};\n\nclass DrawPool\n{\n public busy : boolean = true;\n public trigger : Function;\n public inf : number = -1;\n public addPool(e:Function)\n {\n if(!this.busy)\n {\n this.notify()\n }else this.trigger = e;\n }\n public notify()\n {\n this.busy = true;\n this.inf = requestAnimationFrame(() => {\n if(this.trigger)\n {\n this.trigger();\n }\n this.busy = false;\n });\n }\n}","\ntype DrawArea = {width:number,height:number};\ntype DrawFunction<T> = (this: T, ctx: CanvasBuffer,area:DrawArea) => any;\nimport CanvasBuffer from \"./CanvasBuffer\";\nimport NodeEvent from \"./NodeEvent\";\n\nexport default class Node\n{\n public name = \"\";\n\n public context : CanvasBuffer = new CanvasBuffer();\n\n protected buffered : boolean = false;\n protected requiredRedraw : boolean = true;\n\n public ChildNodes : Node[] = [];\n public parentNode? : Node;\n\n public width : number = 0;\n public height : number = 0;\n public x : number = 0;\n public y : number = 0;\n public scale : number = 1;\n public rotate = 0;\n\n public mouseHover : boolean = false;\n \n public padding = {\n left: 0,\n right: 0,\n top: 0,\n bottom: 0\n }; \n constructor(name?:string)\n {\n this.name = name || \"\";\n }\n public update()\n {\n this.requiredRedraw = true;\n if(this.parentNode)\n {\n this.parentNode.update();\n }\n else\n {\n this.emit(\"draw\", new NodeEvent(), false);\n }\n }\n public draw(maxWidth?: number, maxHeight?: number) : CanvasBuffer\n {\n this.context.clear();\n let drawableAreaWidth = this.width;\n let drawableAreaHeight = this.height;\n\n if(maxWidth)\n {\n drawableAreaWidth = Math.min(drawableAreaWidth, maxWidth);\n }\n if(maxHeight)\n {\n drawableAreaHeight = Math.min(drawableAreaHeight, maxHeight);\n }\n\n if(this.hasEvent(\"draw\"))\n {\n let cancelDraw = false;\n this.handleEvent(\"draw:before\",(callback) => {\n\n return callback.call(this,{\n drawableAreaWidth,\n drawableAreaHeight\n })\n\n });\n\n let frame = this.handleEvent(\"draw\",(event) => {\n let offscreen = new CanvasBuffer(drawableAreaWidth, drawableAreaHeight);\n\n cancelDraw = event.apply(this, [\n offscreen, {\n width: drawableAreaWidth,\n height: drawableAreaHeight\n }\n ]);\n return offscreen;\n }) as CanvasBuffer;\n\n this.context = frame;\n this.buffered = true;\n\n this.handleEvent(\"draw:after\",(callback) => {\n\n return callback.call(this,{\n drawableAreaWidth,\n drawableAreaHeight\n })\n\n });\n if(!cancelDraw)\n {\n return frame;\n }\n };\n \n let width = drawableAreaWidth - (this.padding.right + this.padding.left);\n let height = drawableAreaHeight - (this.padding.bottom + this.padding.top);\n\n this.buffered = true;\n \n let offscreen = new CanvasBuffer(width, height);\n for (const node of this.ChildNodes)\n {\n this.DrawChild(\n offscreen,\n node,\n width, height\n );\n };\n offscreen.writeTo(\n this.context,\n 0, 0,\n offscreen.width, offscreen.height,\n this.padding.left, this.padding.top,\n offscreen.width, offscreen.height\n );\n return this.context;\n }\n\n public getContextArea()\n {\n return {\n\n width: Math.min(\n this.width,\n this.parentNode?.width || Infinity\n ) - (\n this.padding.right + this.padding.left\n ),\n\n height: Math.min(\n this.height,\n this.parentNode?.height || Infinity\n ) - (\n this.padding.bottom + this.padding.top\n )\n };\n }\n\n public DrawChild(canvas:CanvasBuffer, node:Node, maxWidth: number, maxHeight: number)\n {\n let canvasWidth = Math.min(node.width, maxWidth);\n let canvasHeight = Math.min(node.height, maxHeight);\n let x = 0;\n let y = 0;\n\n\n node.handleEvent(\"draw:before\",(callback) => {\n return callback.call(node,{\n canvasWidth,\n canvasHeight\n })\n });\n \n if(node.width == 0 || node.height == 0)\n {\n return;\n }\n\n canvasWidth = Math.min(node.width, maxWidth);\n canvasHeight = Math.min(node.height, maxHeight);\n\n x += node.x;\n y += node.y;\n\n\n let frame : CanvasBuffer;\n if(!node.buffered)\n {\n frame = node.draw(canvasWidth, canvasHeight);\n }\n else\n {\n if(node.requiredRedraw)\n {\n frame = node.draw(canvasWidth, canvasHeight);\n }\n else\n {\n frame = node.context as CanvasBuffer;\n }\n };\n let context = canvas.context;\n context.save();\n\n if(node.rotate != 0)\n {\n let translateX = canvasWidth / 2;\n let translateY = canvasHeight / 2;\n \n translateX += x;\n translateY += y;\n \n \n context.translate(translateX, translateY);\n context.rotate(node.rotate);\n context.translate(-translateX, -translateY);\n }\n canvas.writeFrom(\n frame.offscreen,\n 0,\n 0,\n frame.offscreen.width,\n frame.offscreen.height,\n x,\n y,\n canvasWidth * node.scale,\n canvasHeight * node.scale\n )\n node.requiredRedraw = false;\n context.restore();\n\n\n node.handleEvent(\"draw:after\",(callback) => {\n \n return callback.call(this,{\n canvasWidth,\n canvasHeight\n })\n\n });\n\n }\n public isMatchPoint(x:number, y: number)\n {\n let {\n x:realX,\n y:realY,\n width:realWidth,\n height:realheight\n } = this.realOffset();\n\n let top = realY;\n let left = realX;\n let right = realX + realWidth;\n let bottom = realY + realheight;\n if(\n top < y &&\n bottom > y &&\n left < x &&\n right > x\n )\n {\n return true;\n }\n return false;\n }\n\n protected _events : Map<\n string,\n (\n (\n this:Node,\n e:NodeEvent\n ) => any\n )[]\n > = new Map();\n\n public on(eventName:string, callback: ((this:Node,e:NodeEvent) => any))\n {\n if(this._events.has(eventName))\n {\n this._events.get(eventName)?.push(callback);\n }else{\n this._events.set(eventName,[callback]);\n }\n }\n public realOffset() : {x:number,y:number,width: number, height: number}\n {\n let {\n width,\n height\n } = this.getContextArea();\n\n if(this.parentNode)\n {\n let current : Node = this;\n let x = 0;\n let y = 0;\n while(1)\n {\n x += current.x;\n y += current.y;\n if(current.parentNode)\n {\n x += current.parentNode.padding.left;\n y += current.parentNode.padding.top;\n current = current.parentNode;\n }\n else\n {\n break;\n }\n };\n return {\n x,\n y,\n width,\n height\n }\n }else{\n let x = this.x;\n let y = this.y;\n return {\n x,\n y,\n width,\n height\n }\n }\n }\n public emit(eventName:string, args: NodeEvent, notifyChild:boolean = true)\n {\n let eventList = this._events.get(eventName);\n\n if(notifyChild)\n {\n this.ChildNodes.filter(node => {\n if(node.isMatchPoint(args.x, args.y))\n {\n if(!node.mouseHover)\n {\n node.mouseHover = true;\n let event = args.clone();\n event.type = \"mouse:enter\";\n node.emit(\"mouse\", event, false);\n };\n return true\n }else{\n if(node.mouseHover)\n {\n node.mouseHover = false;\n let event = args.clone();\n event.type = \"mouse:leave\";\n node.emit(\"mouse\", event);\n };\n return false\n }\n \n }).some(node => {\n \n node.emit(eventName, args);\n return args.prevented != false;\n \n });\n }\n\n if(args.stoppedBubbling == false)\n {\n if(eventList)\n {\n for (const event of eventList)\n {\n event.apply(this, [args]);\n if(args.prevented)\n {\n break;\n }\n }\n };\n }\n\n };\n\n public drawScope : Map<string, Function> = new Map();\n public hasEvent(eventName: string) : boolean\n {\n return this.drawScope.has(eventName);\n }\n public handleEvent(eventName: string, onCallback?:(callback:Function) => any) : any\n {\n let func = this.drawScope.get(eventName);\n if(func)\n {\n if(onCallback)\n {\n return onCallback(func);\n }else{\n return func.call(this); \n }\n }\n }\n public handleDraw(e:DrawFunction<this>)\n {\n this.drawScope.set(\"draw\", e);\n }\n public handleDrawBefore(e:DrawFunction<this>)\n {\n this.drawScope.set(\"draw:before\", e);\n }\n public handleDrawAfter(e:DrawFunction<this>)\n {\n this.drawScope.set(\"draw:after\", e);\n }\n public addNode(node:Node)\n {\n let {\n width,\n height\n } = this.getContextArea();\n node.width = node.width || width;\n node.height = node.height || height;\n node.parentNode = this;\n this.ChildNodes.push(node);\n }\n}","export default class CanvasBuffer\n{\n public offscreen! : OffscreenCanvas;\n public context! : OffscreenCanvasRenderingContext2D;\n public width: number = 0;\n public height: number = 0;\n constructor(width?:number, height?:number){\n this.offscreen = new OffscreenCanvas(width || 0, height || 0);\n this.context = this.offscreen.getContext(\"2d\") as OffscreenCanvasRenderingContext2D;\n this.width = width || 0;\n this.height = height || 0;\n }\n public resize(width: number, height: number)\n {\n if(this.width != width)\n {\n this.offscreen.width = width;\n this.width = width || 0;\n }\n if(this.height != height)\n {\n this.offscreen.height = height;\n this.height = height || 0;\n }\n }\n public clear()\n {\n this.context.clearRect(0, 0, this.offscreen.width, this.offscreen.height);\n }\n public writeFrom(\n canvas: OffscreenCanvas | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | CanvasRenderingContext2D | CanvasBuffer,\n x?:number,\n y?:number,\n width?:number,\n height?:number,\n dx?:number,\n dy?:number,\n dwidth?:number,\n dheight?:number\n )\n {\n let args = [\n x,\n y,\n width,\n height,\n dx,\n dy,\n dwidth,\n dheight\n ];\n if(\n canvas instanceof OffscreenCanvas ||\n canvas instanceof HTMLCanvasElement\n )\n {\n _draw_content_to_canvas(\n this.context,\n canvas,\n ...args\n );\n }\n if(\n canvas instanceof OffscreenCanvasRenderingContext2D ||\n canvas instanceof CanvasRenderingContext2D\n )\n {\n _draw_content_to_canvas(\n this.context,\n canvas.canvas,\n ...args\n );\n }\n if(\n canvas instanceof CanvasBuffer\n )\n {\n _draw_content_to_canvas(\n this.context,\n canvas.offscreen,\n ...args\n );\n }\n }\n public writeTo(\n canvas: OffscreenCanvas | OffscreenCanvasRenderingContext2D | HTMLCanvasElement | CanvasRenderingContext2D | CanvasBuffer,\n x?:number,\n y?:number,\n width?:number,\n height?:number,\n dx?:number,\n dy?:number,\n dwidth?:number,\n dheight?:number\n )\n {\n let args = [\n x,\n y,\n width,\n height,\n dx,\n dy,\n dwidth,\n dheight\n ];\n if(\n canvas instanceof OffscreenCanvas ||\n canvas instanceof HTMLCanvasElement\n )\n {\n let content = canvas.getContext(\"2d\") as OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D;\n \n _draw_content_to_canvas(\n content,\n this.offscreen,\n ...args\n );\n }\n if(\n canvas instanceof OffscreenCanvasRenderingContext2D ||\n canvas instanceof CanvasRenderingContext2D\n )\n {\n _draw_content_to_canvas(\n canvas,\n this.offscreen,\n ...args\n );\n }\n if(\n canvas instanceof CanvasBuffer\n )\n {\n _draw_content_to_canvas(\n canvas.context,\n this.offscreen,\n ...args\n );\n }\n }\n}\n\nfunction _draw_content_to_canvas(\n context : OffscreenCanvasRenderingContext2D | CanvasRenderingContext2D,\n canvas : OffscreenCanvas | HTMLCanvasElement,\n x?:number,\n y?:number,\n width?:number,\n height?:number,\n dx?:number,\n dy?:number,\n dwidth?:number,\n dheight?:number\n)\n{\n if(\n canvas.width != 0 && canvas.height != 0 &&\n context.canvas.width != 0 && context.canvas.height != 0\n )\n {\n context.drawImage(\n canvas,\n x || 0,\n y || 0,\n width || canvas.width,\n height || canvas.height,\n dx || 0,\n dy || 0,\n dwidth || canvas.width,\n dheight || canvas.height\n )\n };\n}","exports.interopDefault = function (a) {\n return a && a.__esModule ? a : {default: a};\n};\n\nexports.defineInteropFlag = function (a) {\n Object.defineProperty(a, '__esModule', {value: true});\n};\n\nexports.exportAll = function (source, dest) {\n Object.keys(source).forEach(function (key) {\n if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function () {\n return source[key];\n },\n });\n });\n\n return dest;\n};\n\nexports.export = function (dest, destName, get) {\n Object.defineProperty(dest, destName, {\n enumerable: true,\n get: get,\n });\n};\n","export default class NodeEvent\n{\n public type = \"\";\n public prevented = false;\n public stoppedBubbling = false;\n public data : any = {};\n public keyCode : number;\n public key : string;\n public x : number;\n public y : number;\n public clone()\n {\n let u = new NodeEvent();\n u.type = this.type;\n u.prevented = this.prevented;\n u.stoppedBubbling = this.stoppedBubbling;\n u.data = this.data;\n u.keyCode = this.keyCode;\n u.key = this.key;\n u.x = this.x;\n u.y = this.y;\n return u;\n }\n}","import Node from \"./Node\";\n\nexport default class TextNode extends Node\n{\n public color : string = \"#000000\";\n public text: string;\n public fontSize : number = 18;\n constructor(text: string){\n super();\n this.text = text;\n\n this.handleDrawBefore(function(){\n this.height = this.fontSize;\n this.context.context.save();\n this.context.context.font = this.fontSize+\"px system-ui\";\n this.width = this.context.context.measureText(this.text).width;\n this.context.context.restore();\n console.log(this.width)\n });\n this.handleDraw(function(canvasBuffer,area){\n let ctx = canvasBuffer.context;\n ctx.font = this.fontSize+\"px system-ui\";\n ctx.beginPath();\n ctx.fillStyle = this.color;\n ctx.textAlign = 'left';\n ctx.textBaseline = 'top'; \n ctx.fillText(this.text, 0,0);\n ctx.closePath();\n });\n }\n};"],"names":[],"version":3,"file":"index.js.map","sourceRoot":"/"}