@g9tm/lynxcontrols-canvas 2.6.19 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog/cards/G9Canvas.md +1 -1
- package/catalog/catalog.json +8 -8
- package/catalog/index.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/canvas.d.ts +3 -56
- package/dist/canvas.d.ts.map +1 -1
- package/dist/canvas.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/protocol.d.ts +68 -2
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js.map +1 -1
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ Props:
|
|
|
9
9
|
- `editable`: boolean
|
|
10
10
|
- `port`: object
|
|
11
11
|
- `stroke`: object
|
|
12
|
-
- `tool`: 'text' | 'image' | 'line' | 'selection' | '
|
|
12
|
+
- `tool`: 'text' | 'image' | 'line' | 'selection' | 'arrow' | 'ellipse' | 'hand' | 'diamond' | 'rectangle' | 'frame' | 'freedraw' | 'eraser' | 'laser'
|
|
13
13
|
- `accent?`: string
|
|
14
14
|
- `background?`: color
|
|
15
15
|
- `dark?`: boolean
|
package/catalog/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"catalogVersion": 1,
|
|
3
3
|
"package": "@g9tm/lynxcontrols-canvas",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.7.0",
|
|
5
5
|
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
6
|
"components": [
|
|
7
7
|
{
|
|
@@ -373,11 +373,11 @@
|
|
|
373
373
|
"image",
|
|
374
374
|
"line",
|
|
375
375
|
"selection",
|
|
376
|
-
"hand",
|
|
377
376
|
"arrow",
|
|
377
|
+
"ellipse",
|
|
378
|
+
"hand",
|
|
378
379
|
"diamond",
|
|
379
380
|
"rectangle",
|
|
380
|
-
"ellipse",
|
|
381
381
|
"frame",
|
|
382
382
|
"freedraw",
|
|
383
383
|
"eraser",
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
"export": "createShape",
|
|
1192
1192
|
"from": "@g9tm/lynxcontrols-canvas/scene",
|
|
1193
1193
|
"kind": "function",
|
|
1194
|
-
"signature": "(scene: Scene, type: \"
|
|
1194
|
+
"signature": "(scene: Scene, type: \"ellipse\" | \"diamond\" | \"rectangle\" | \"frame\", box: Bounds, style: ItemStyle): ExElement",
|
|
1195
1195
|
"summary": "A new rectangle, ellipse, diamond or frame in a box, inside the frame under it."
|
|
1196
1196
|
},
|
|
1197
1197
|
{
|
|
@@ -1392,7 +1392,7 @@
|
|
|
1392
1392
|
"from": "@g9tm/lynxcontrols-canvas/protocol",
|
|
1393
1393
|
"kind": "interface",
|
|
1394
1394
|
"signature": "CvTextOp",
|
|
1395
|
-
"summary": "Lines of text; `y` is the first baseline, `lh` the line height (px), `al` the alignment inside width `w`."
|
|
1395
|
+
"summary": "Lines of text; `y` is the first baseline, `lh` the line height (px), `al` the alignment inside width `w`. With font 100 (the host's text font) `y` is the middle of the first line instead: the host centres each line's glyph box (ascent + descent of its font) on it, as G9ImageModule's text overlay does, so the canvas and the render match whatever font the host has."
|
|
1396
1396
|
},
|
|
1397
1397
|
{
|
|
1398
1398
|
"id": "canvas.protocol.CvTool",
|
|
@@ -1667,9 +1667,9 @@
|
|
|
1667
1667
|
"summary": "A host that shows the web element in a page of its own (Lynxtron): the app wires it."
|
|
1668
1668
|
},
|
|
1669
1669
|
{
|
|
1670
|
-
"id": "canvas.
|
|
1670
|
+
"id": "canvas.protocol.G9CanvasElementProps",
|
|
1671
1671
|
"export": "G9CanvasElementProps",
|
|
1672
|
-
"from": "@g9tm/lynxcontrols-canvas",
|
|
1672
|
+
"from": "@g9tm/lynxcontrols-canvas/protocol",
|
|
1673
1673
|
"kind": "interface",
|
|
1674
1674
|
"signature": "G9CanvasElementProps",
|
|
1675
1675
|
"summary": "The attributes and events of `<g9-canvas>`."
|
|
@@ -1975,7 +1975,7 @@
|
|
|
1975
1975
|
"export": "newShape",
|
|
1976
1976
|
"from": "@g9tm/lynxcontrols-canvas/scene",
|
|
1977
1977
|
"kind": "function",
|
|
1978
|
-
"signature": "(type: \"
|
|
1978
|
+
"signature": "(type: \"ellipse\" | \"diamond\" | \"rectangle\", options: BaseOptions): ExElement",
|
|
1979
1979
|
"summary": "A new rectangle, ellipse or diamond element."
|
|
1980
1980
|
},
|
|
1981
1981
|
{
|
package/catalog/index.md
CHANGED
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/observable.ts","../src/protocol.ts","../../../node_modules/fractional-indexing/src/index.d.ts","../src/scene/types.ts","../src/scene/elements.ts","../src/scene/geometry.ts","../src/board-model.ts","../src/scene/scene.ts","../src/scene/edit.ts","../../../node_modules/perfect-freehand/dist/types/types.d.ts","../../../node_modules/perfect-freehand/dist/types/getstroke.d.ts","../../../node_modules/perfect-freehand/dist/types/getstrokeoutlinepoints.d.ts","../../../node_modules/perfect-freehand/dist/types/getstrokepoints.d.ts","../../../node_modules/perfect-freehand/dist/types/index.d.ts","../../../node_modules/roughjs/bin/geometry.d.ts","../../../node_modules/roughjs/bin/math.d.ts","../../../node_modules/roughjs/bin/core.d.ts","../../../node_modules/roughjs/bin/generator.d.ts","../src/scene/shapes.ts","../src/board-controller.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/bidi.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/coordinates.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/natural-date.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/text.d.ts","../../foundation/dist/culture/words.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/packs.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/layout/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/feedback.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/keys.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/aliases.d.ts","../../foundation/dist/tokens/shape.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/brand.d.ts","../../foundation/dist/theme/appearance.d.ts","../../foundation/dist/theme/token-themes.d.ts","../../foundation/dist/theme/sanitize.d.ts","../../foundation/dist/theme/appearance-kit.d.ts","../../foundation/dist/theme/contrast.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/css-color.d.ts","../../foundation/dist/theme/design.d.ts","../../foundation/dist/theme/oklch.d.ts","../../foundation/dist/theme/recipe.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/derived.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/root.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../controls/dist/anchor/registry.d.ts","../../controls/dist/anchor/hooks.d.ts","../../controls/dist/base/control.d.ts","../../controls/dist/base/corner-badge.d.ts","../../controls/dist/base/disposer.d.ts","../../controls/dist/base/press.d.ts","../../controls/dist/base/pressable.d.ts","../../controls/dist/display/shimmer.d.ts","../../controls/dist/sheet/options.d.ts","../../controls/dist/guide/settings.d.ts","../../controls/dist/popup/types.d.ts","../../controls/dist/provider/settings.d.ts","../../controls/dist/icon/icon.d.ts","../../controls/dist/base/selection-item.d.ts","../../controls/dist/base/timers.d.ts","../../controls/dist/base/tone.d.ts","../../controls/dist/base/use-controllable-state.d.ts","../../controls/dist/base/use-stable-callback.d.ts","../../controls/dist/base/index.d.ts","../src/words.ts","../src/canvas.tsx","../src/element-core.ts","../src/export.ts","../src/index.ts","../../../node_modules/path-data-parser/lib/parser.d.ts","../../../node_modules/path-data-parser/lib/absolutize.d.ts","../../../node_modules/path-data-parser/lib/normalize.d.ts","../src/scene/path-data-parser.ts","../src/scene/index.ts"],"fileIdsList":[[41,96,97,149,241],[122,123,128,134],[41,123],[41,122,123,128,134],[41,143],[119,122,124,126,128,129,130,132,133,146],[41,134,135,136,137,138,139,144,145],[124,125],[122,128],[41,96,149,241],[41,96,122,131,149,241],[122],[140],[142],[141],[41,96,98,148,149,241],[41,124,146,147],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[245],[108],[108,109,110,111],[120,122,123,127],[120,121],[113,114],[113,115],[98,99,100,102,103,104,106,107,117],[98],[96,98,100,102,103,118,149,239,240,241],[98,100],[98,100,105,118,240,241,242,243],[98,102,103,104,106],[98,101,102],[98,102,103],[98,102,103,104,106,107,117,248],[98,246,247],[98,102,103,105],[98,100,102,103,104,112,115,116],[96,149,221,241],[96,149,220,241],[96,149,221,222,241],[149],[223,224,225,226,227,234,235,236,237,238],[149,223,226],[220,233],[220,229],[41,149,220,232],[149,220,233],[149,220,229,230,231],[149,220,228,233],[153],[152],[152,153,154],[151,152,153,154,155,156,157,158,159,160,161,162,163],[154],[160],[167,169,171,172],[168],[160,167,168,169,170,171],[167,170],[176],[175],[174,175,176,177,178,179,180],[150,164,165,166,173,181,182,189,195,217,219],[166],[166,183],[183,184,185,186,187,188],[184],[183,184,186],[183],[166,168,170,186,190,191],[168,170,190,191,192,193,194],[196],[196,198,200,202,203,204],[196,198,200,201],[196,199,200],[199,200],[199],[198,200],[197,199,200,201,202,203,205,206,207,208,209,210,211,216],[196,199],[196,200,202],[165,196,199,215],[196,212,213],[196,214],[196,198,212,213,214,215,218],[196,198,214]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"f2a2522fa7a51e6a5f43967b2cd7dcef802a943459547aad8a1c5b262d118a6c","signature":"04898e68271e4043d0526e2c3f6d94c7ad8478aa2b9bda9a20a4694dec2a76de"},{"version":"fbfb3f4e39cc3898d66551fc04b93eab5dd74b04abc1bf25fcd93edeba449d95","signature":"300d1b14c226d092f3b2c1f6334f1b0ecc32c28ee5163c5bab595e092d6e67e9"},{"version":"381a220af5714f600dad338b68069669779afe23599eeac095093f3da6466ae7","impliedFormat":99},{"version":"e24d5832166074a40869c38ad30f8beb6049709b46beb0eacfd4749fc155ab8e","signature":"7926dc18445fa591fbe4020249028462588a941b00ae56629463425cf4b5348e"},{"version":"89b6ec2494aa9734544d0d59d8633d718867542df2ecba5cbf3b61b07ebca618","signature":"cf04bd80a0baa1d81b099d7e4f986910cc4a3571d1eaffda00513b3b99043e02"},{"version":"fe4e4f4d70c3bd55f4d87f80090351d5f0db324455063e93c392505b2d226265","signature":"8c82cfa8285a377bb1a47591177c109e736018ac826c8648441736d3010024ab"},{"version":"2122b71f29e80dbd34e98deff25e8ffeddb96a88725f5e059b0cd4e33e8ab93b","signature":"2f81eb2e35a25d9e0e6d85dd5fb87a1ed7fa09c57e91fc42060aedd2694aa8cb"},{"version":"c384d3613b3d9647f0ab2e92767618adc741d44588d91a5152fbf760d35eb766","signature":"e92e42542595efa133db369b579e99513771ace97b28221173ab1f19db559a9e"},{"version":"13f3c69052b2910deb6a23f65ab3a6b920aa121a1df2f2eb7ef478cf4bb236e3","signature":"091a23c79011e2a799d7640aeb7000050737c2dd49ee619f7e8221e9a9970610"},{"version":"53c093a55b5cd4572e979e93b2a7b4070b0076000f292c714558738f70565a8e","impliedFormat":1},{"version":"e176f8c350b7fa94e19e36c4500a6769b869c2d2810d8bec03d70e34eee734fe","impliedFormat":1},{"version":"1c73e98ceb08fc5d0c338e0fd79ff3d8527950678ee50120f7a0d025cab43bc3","impliedFormat":1},{"version":"545d1e528dca7118642e7800c73e7a8386548f3ba291c66315911d89880cd94d","impliedFormat":1},{"version":"a61a287e26244825a395946f76c2c7221898f4451b825a5c12696df1c9535e9f","impliedFormat":1},{"version":"a5dbaad02b1825f9eb1c5a0d90536d614a622c3a11e993b9cabf1836ef243f14","impliedFormat":1},{"version":"59e1a506acb27b1a5ba6645c1d05f854004e9b91d47bf2316cb2876bdd464c81","impliedFormat":1},{"version":"a7ed89de760cd06d952fd6d4c0ae5a21b515eb6cb06bbfb7b9237330a67e9bcd","impliedFormat":1},{"version":"9b419154fafa52f0be6685ae9421d54d4809d0e5f01d0d368762b6f5d4cfb60e","impliedFormat":1},{"version":"8937ac82c7be911e51da3503cebabf1736582fef054316463d44ae254c5f7660","signature":"f42920c90682cbed72eedd5b22bfaf29f854df7de62a80022aea155e667c3b14"},{"version":"b0f95f008a3fc495c51c7fde72d23146d51cb8a20829d7e0b2b07a8111e82860","signature":"7f70c98e0ed0848ebfa0261ecc92caf7d4110056ed3f92faaa095d9b47594f58"},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","706c787ed201e67534e550d765eecfb18a8c39f46e04fcec600d0bb9d1bb6231","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","08521f5befe6ec3f1c3a881651321f875ca6fc79db15a6130283d409f5d47d1b","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","d2c14eeaa5c837048a6ef04e2c1a4f3a53bad9a1a8c34e7584c2fc760c53b877","995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7","68a17e1da58e68e0921d31489ac6731167bd14aef9e10136f7a8c3cfc46abf72","5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","bc3f7915b03647e3e83822de983d6e9c12b42e70fac64f6083a656615d4608b2","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","932cf396945e35e7462ca1cddc06353805dfad9108f52dd63d7a63ee0c126ed3","7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db","f858a10d167e011155bfe5a3532f599e677bced6727c07366f380c02010650d4","465f5d53f09ac1978002bc264b8a4c0aea749c79dd2bd1917dffe57fddcb9543","cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","682a7ae32772cea07918bad4d291797e3e6312c415d814e245ad218c7a1727ef","5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","be77edbe4d276441584b1c7b297bd8596c78913c22c590dc136d987b82a3976c","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","931d70c96033881193232b90c39210c6cd14865f28b339843c56b5688e7fd10d","6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","2c4d14bebf5c2fdddef90b2e6e49ce0b2adea7429d2900f1848f3d01b8a845c7","d4924e2b191fee9b43aaeef651c87a7084281d425a30a9a8cf50de8f92b64f6d","73f7f257234435f66832b1c05ce78d071f41475fb7fbac76f5a71bf1ea1321b8","293e5036d0dd23f18b391ca6f878bc1116a5482d1f26e8535765291553eb9f57","a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15","b86da197c889098bd93ce46049240f5580827b24e6c2ce9919ed4cffd81b4756","a59554ba3751ea9ad27f6948f1c71ef57f1e28bb526a53eacb0dfa76bc1df452","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","da401323d4c96e3f5b8fa8b7ecd200d47a9e340b09cefbea553d2b2b5a345e60","ead4a7fd25e5e2b756a5e71546bd8eae855c7b0ecbffd891f7fb0b6f7d80c0c1","4a81e2e28cab8b353156bef9c19c0b3640958945d655fd3798756d468b50707a","cc44cf86b3ddb7d61f7de3fd32116089decb662a8b6421013bd4a8ee9a079881","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","24a588d942a36d853d18dfe63711e9b180ea0448b956dadce7833f4d6455f0c8","c263cc53a55cc822c360481e94d0fe999acebf92f01f2ca84225a168a182657f","bd0e9a77d36caab3832f67ccdb482a8db24294efd149cb881061517dd6cc7da4","09dbd5c05f35b9ca743ea2a908c48be0d0b685e8ec1c1bcbb76443762fec1131","54b0b4ef21d120cb5267b91ed038d20d0905ba5d928c6eda2b546a0f03572dd7","56cac1d8d4be53381e236d675f43c1b2342161ca45d31dfaaf340b0612d14bc5","a93ea60536dfdeb6d9b1a44a68639e7fdb3a54cf220dec9bd7c1182914a243b4","1dd2073db39016abc797e46c711630cd39c497c28063e3a75993940c72eb9792","46ba01e044b843967d3516ad99c53b2dab67a6287d206cac025a37c285571473","1492a06643311a66d01dc0c15259c0dbe7c4d336e7a85cb7ece67085afd2e84f","47ace7a5fa09cb19907ed7cb83a867b05ecff3e10bb229888e24f82b2c03b869","65f72380cb90b44b22370dfb07890bdd557d2e211ffb023363d8c87621c2535a","a3b964ed1ea0bd077d61c56e5beb931c24b26dbeead5a5a978406e2779a8429c","c1e64c51dadfcea7b7995040c64b5ac7e8f954f2a4adf4eb92e7a462ba5275e8","163944787e14d74c0aa4f0ed2deeade6ef7521682e957dc24b494bcdab9a1bdc","15e170fc85990c9cbdc7d3799b9490183b2d15202f1ccd0794abe5afb6f351eb","2f166c686866f475aee63ff5f7cf42413169d34e60c03fc5c761b2281ea49df0","3c3556af7c4fe1d9298a4188663ecdf527f3ad1c17f184d69dc6ff02a306645e","1dd2df92910c1304d53da9d5f9411228e19ffd14a4cff04bddc54b8eebe91b73","720ae785d5a42f60200705dd3039c58702806e39203a9a36d58226801b81606e","665236eec0c0da8d3f7cdba8f01f98233425d8c065058e513b33385e417a56d2","1e771191631caaa4b5d3429c51e23c23c2f609ea1e99f4183e913c5e7fd2311b","50e8918146f4e8a9240bf867a07cf8aa0deb21fee8d4507e74ff62c8c6af42e9","666640b08e3ce76b6a8c76ce1f9f5b986923d3c76663b7fa4bc36e3af734ec46","bee442fd64d8e508dc335dafcdf34cdae7691eca0da3210ee63fc011621361ce",{"version":"e78c0591055b8277aa8ee12daa5fd2d14d678a5d92e116618c7f4cb9775eccb5","signature":"5590d39cfc02cc0f522f87b6588fa1460ebbcecbab51ac3fb3fa677856565014"},{"version":"a855e826f2c8017d3809d461d08282b6a752382a597cb5aca8040acd41e57d0a","signature":"a50d784a8f1a4de51d070a08e18389bc3423d327edba8cb4c61a81884496a6d3"},{"version":"9ca43dcc46e39928914a89465a753e7adaf6ac29cd9c16487e451238f2f4e352","signature":"e637b5803fb3eb91b8de448f203923c902440f2346e0270232a9a629c573b554"},{"version":"3db4cf4e37acc1e454df1db517d537bedfe9e9278b7150436635b999516bd0f3","signature":"4ffecdd4de8c5637656f8e4303439cacfdffb1a9c22d3cd7108967a12b9a0853"},{"version":"9a437067e596ff3cdbddb8a6064b4d9087bd90339e90079e2c8ec96fa0c717a0","signature":"eccf771e0d8cd074a08f5ae90fbf90ebb0aad5953884fc45dd7a09cafb8750f6"},{"version":"b0fddcf88006d043e293acffaa97e6e1140f13064e8c973f9222bb700304e92f","impliedFormat":1},{"version":"a30f1e3083a67b660a56dc4de2fc7cda6643141828a16bea50a8ae041989e665","impliedFormat":1},{"version":"2beb72d1798949a58cb623b5dfdc0537fe45142064f553163a66a250ca11262a","impliedFormat":1},{"version":"a63d6d37bf7f6d07bb595dbb799b6781ec0f3b47ed0bd9b559c5bdc17c6d82b9","signature":"c309f9414a1dea70a234fb20a06fed2439843afc2a9c5e05bb79c8943517356f"},{"version":"80d09be19d792b7839347f1a864aa0a91539b5e84f39f6c66c6da816450d8d59","signature":"10f4f9455a7f943e60a21894ecc20a3914bfe6bed47ddf4b08e087e928ca0093"}],"root":[99,100,[102,107],117,118,[240,244],248,249],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":false,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[135,2],[124,3],[136,4],[144,5],[147,6],[146,7],[126,8],[129,9],[130,10],[132,11],[133,12],[141,13],[140,14],[142,15],[143,14],[149,16],[148,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[246,47],[247,47],[109,48],[110,48],[111,48],[112,49],[128,50],[127,12],[123,12],[121,12],[122,51],[120,12],[115,52],[116,53],[118,54],[105,55],[241,56],[242,57],[243,57],[244,58],[99,55],[100,55],[107,59],[103,60],[104,61],[249,62],[248,63],[106,64],[117,65],[102,55],[240,55],[222,66],[221,67],[223,68],[224,69],[239,70],[227,71],[234,72],[228,69],[230,73],[233,74],[231,75],[232,76],[229,77],[154,78],[155,79],[153,79],[156,80],[164,81],[158,82],[159,79],[161,83],[160,78],[162,79],[173,84],[169,85],[172,86],[171,87],[177,88],[178,88],[176,89],[181,90],[180,89],[220,91],[183,92],[184,93],[189,94],[185,95],[187,96],[186,97],[192,98],[195,99],[197,100],[205,101],[202,102],[201,103],[199,92],[206,100],[207,104],[208,105],[209,106],[217,107],[210,105],[211,102],[200,108],[203,109],[216,110],[214,111],[215,112],[219,113],[218,114]],"latestChangedDtsFile":"./scene/index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/observable.ts","../src/protocol.ts","../../../node_modules/fractional-indexing/src/index.d.ts","../src/scene/types.ts","../src/scene/elements.ts","../src/scene/geometry.ts","../src/board-model.ts","../src/scene/scene.ts","../src/scene/edit.ts","../../../node_modules/perfect-freehand/dist/types/types.d.ts","../../../node_modules/perfect-freehand/dist/types/getstroke.d.ts","../../../node_modules/perfect-freehand/dist/types/getstrokeoutlinepoints.d.ts","../../../node_modules/perfect-freehand/dist/types/getstrokepoints.d.ts","../../../node_modules/perfect-freehand/dist/types/index.d.ts","../../../node_modules/roughjs/bin/geometry.d.ts","../../../node_modules/roughjs/bin/math.d.ts","../../../node_modules/roughjs/bin/core.d.ts","../../../node_modules/roughjs/bin/generator.d.ts","../src/scene/shapes.ts","../src/board-controller.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/bidi.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/coordinates.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/natural-date.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/text.d.ts","../../foundation/dist/culture/words.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/packs.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/layout/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/feedback.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/keys.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/aliases.d.ts","../../foundation/dist/tokens/shape.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/brand.d.ts","../../foundation/dist/theme/appearance.d.ts","../../foundation/dist/theme/token-themes.d.ts","../../foundation/dist/theme/sanitize.d.ts","../../foundation/dist/theme/appearance-kit.d.ts","../../foundation/dist/theme/contrast.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/css-color.d.ts","../../foundation/dist/theme/design.d.ts","../../foundation/dist/theme/oklch.d.ts","../../foundation/dist/theme/recipe.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/derived.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/root.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../controls/dist/anchor/registry.d.ts","../../controls/dist/anchor/hooks.d.ts","../../controls/dist/base/control.d.ts","../../controls/dist/base/corner-badge.d.ts","../../controls/dist/base/disposer.d.ts","../../controls/dist/base/press.d.ts","../../controls/dist/base/pressable.d.ts","../../controls/dist/display/shimmer.d.ts","../../controls/dist/sheet/options.d.ts","../../controls/dist/guide/settings.d.ts","../../controls/dist/popup/types.d.ts","../../controls/dist/provider/settings.d.ts","../../controls/dist/icon/icon.d.ts","../../controls/dist/base/selection-item.d.ts","../../controls/dist/base/timers.d.ts","../../controls/dist/base/tone.d.ts","../../controls/dist/base/use-controllable-state.d.ts","../../controls/dist/base/use-stable-callback.d.ts","../../controls/dist/base/index.d.ts","../src/words.ts","../src/canvas.tsx","../src/element-core.ts","../src/export.ts","../src/index.ts","../../../node_modules/path-data-parser/lib/parser.d.ts","../../../node_modules/path-data-parser/lib/absolutize.d.ts","../../../node_modules/path-data-parser/lib/normalize.d.ts","../src/scene/path-data-parser.ts","../src/scene/index.ts"],"fileIdsList":[[41,96,97,100,149],[122,123,128,134],[41,123],[41,122,123,128,134],[41,143],[119,122,124,126,128,129,130,132,133,146],[41,134,135,136,137,138,139,144,145],[124,125],[122,128],[41,96,100,149],[41,96,100,122,131,149],[122],[140],[142],[141],[41,96,98,100,148,149],[41,124,146,147],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[245],[108],[108,109,110,111],[120,122,123,127],[120,121],[113,114],[113,115],[98,99,100,102,103,104,106,107,117],[98],[96,98,100,102,103,118,149,239,240],[98,100],[98,100,105,118,240,241,242,243],[96,98,100,149],[98,102,103,104,106],[98,101,102],[98,102,103],[98,102,103,104,106,107,117,248],[98,246,247],[98,102,103,105],[98,100,102,103,104,112,115,116],[96,100,149,221],[96,100,149,220],[96,100,149,221,222],[149],[223,224,225,226,227,234,235,236,237,238],[149,223,226],[220,233],[220,229],[41,149,220,232],[149,220,233],[149,220,229,230,231],[149,220,228,233],[153],[152],[152,153,154],[151,152,153,154,155,156,157,158,159,160,161,162,163],[154],[160],[167,169,171,172],[168],[160,167,168,169,170,171],[167,170],[176],[175],[174,175,176,177,178,179,180],[150,164,165,166,173,181,182,189,195,217,219],[166],[166,183],[183,184,185,186,187,188],[184],[183,184,186],[183],[166,168,170,186,190,191],[168,170,190,191,192,193,194],[196],[196,198,200,202,203,204],[196,198,200,201],[196,199,200],[199,200],[199],[198,200],[197,199,200,201,202,203,205,206,207,208,209,210,211,216],[196,199],[196,200,202],[165,196,199,215],[196,212,213],[196,214],[196,198,212,213,214,215,218],[196,198,214]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"f2a2522fa7a51e6a5f43967b2cd7dcef802a943459547aad8a1c5b262d118a6c","signature":"04898e68271e4043d0526e2c3f6d94c7ad8478aa2b9bda9a20a4694dec2a76de"},{"version":"b9142b288aa8a3808b23fdca117f896a9ac561ecb332596c0eab59b7ea1d4a60","signature":"110cdce3f7b1553c7744941db008d59a1f689b640fa3986b4047f35e1045ce12"},{"version":"381a220af5714f600dad338b68069669779afe23599eeac095093f3da6466ae7","impliedFormat":99},{"version":"e24d5832166074a40869c38ad30f8beb6049709b46beb0eacfd4749fc155ab8e","signature":"7926dc18445fa591fbe4020249028462588a941b00ae56629463425cf4b5348e"},{"version":"89b6ec2494aa9734544d0d59d8633d718867542df2ecba5cbf3b61b07ebca618","signature":"cf04bd80a0baa1d81b099d7e4f986910cc4a3571d1eaffda00513b3b99043e02"},{"version":"fe4e4f4d70c3bd55f4d87f80090351d5f0db324455063e93c392505b2d226265","signature":"8c82cfa8285a377bb1a47591177c109e736018ac826c8648441736d3010024ab"},{"version":"2122b71f29e80dbd34e98deff25e8ffeddb96a88725f5e059b0cd4e33e8ab93b","signature":"2f81eb2e35a25d9e0e6d85dd5fb87a1ed7fa09c57e91fc42060aedd2694aa8cb"},{"version":"c384d3613b3d9647f0ab2e92767618adc741d44588d91a5152fbf760d35eb766","signature":"e92e42542595efa133db369b579e99513771ace97b28221173ab1f19db559a9e"},{"version":"13f3c69052b2910deb6a23f65ab3a6b920aa121a1df2f2eb7ef478cf4bb236e3","signature":"091a23c79011e2a799d7640aeb7000050737c2dd49ee619f7e8221e9a9970610"},{"version":"53c093a55b5cd4572e979e93b2a7b4070b0076000f292c714558738f70565a8e","impliedFormat":1},{"version":"e176f8c350b7fa94e19e36c4500a6769b869c2d2810d8bec03d70e34eee734fe","impliedFormat":1},{"version":"1c73e98ceb08fc5d0c338e0fd79ff3d8527950678ee50120f7a0d025cab43bc3","impliedFormat":1},{"version":"545d1e528dca7118642e7800c73e7a8386548f3ba291c66315911d89880cd94d","impliedFormat":1},{"version":"a61a287e26244825a395946f76c2c7221898f4451b825a5c12696df1c9535e9f","impliedFormat":1},{"version":"a5dbaad02b1825f9eb1c5a0d90536d614a622c3a11e993b9cabf1836ef243f14","impliedFormat":1},{"version":"59e1a506acb27b1a5ba6645c1d05f854004e9b91d47bf2316cb2876bdd464c81","impliedFormat":1},{"version":"a7ed89de760cd06d952fd6d4c0ae5a21b515eb6cb06bbfb7b9237330a67e9bcd","impliedFormat":1},{"version":"9b419154fafa52f0be6685ae9421d54d4809d0e5f01d0d368762b6f5d4cfb60e","impliedFormat":1},{"version":"8937ac82c7be911e51da3503cebabf1736582fef054316463d44ae254c5f7660","signature":"f42920c90682cbed72eedd5b22bfaf29f854df7de62a80022aea155e667c3b14"},{"version":"b0f95f008a3fc495c51c7fde72d23146d51cb8a20829d7e0b2b07a8111e82860","signature":"7f70c98e0ed0848ebfa0261ecc92caf7d4110056ed3f92faaa095d9b47594f58"},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","706c787ed201e67534e550d765eecfb18a8c39f46e04fcec600d0bb9d1bb6231","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","08521f5befe6ec3f1c3a881651321f875ca6fc79db15a6130283d409f5d47d1b","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","d2c14eeaa5c837048a6ef04e2c1a4f3a53bad9a1a8c34e7584c2fc760c53b877","995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7","68a17e1da58e68e0921d31489ac6731167bd14aef9e10136f7a8c3cfc46abf72","5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","bc3f7915b03647e3e83822de983d6e9c12b42e70fac64f6083a656615d4608b2","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","932cf396945e35e7462ca1cddc06353805dfad9108f52dd63d7a63ee0c126ed3","7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db","f858a10d167e011155bfe5a3532f599e677bced6727c07366f380c02010650d4","465f5d53f09ac1978002bc264b8a4c0aea749c79dd2bd1917dffe57fddcb9543","cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","682a7ae32772cea07918bad4d291797e3e6312c415d814e245ad218c7a1727ef","5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","be77edbe4d276441584b1c7b297bd8596c78913c22c590dc136d987b82a3976c","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","931d70c96033881193232b90c39210c6cd14865f28b339843c56b5688e7fd10d","6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","2c4d14bebf5c2fdddef90b2e6e49ce0b2adea7429d2900f1848f3d01b8a845c7","d4924e2b191fee9b43aaeef651c87a7084281d425a30a9a8cf50de8f92b64f6d","73f7f257234435f66832b1c05ce78d071f41475fb7fbac76f5a71bf1ea1321b8","293e5036d0dd23f18b391ca6f878bc1116a5482d1f26e8535765291553eb9f57","a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15","b86da197c889098bd93ce46049240f5580827b24e6c2ce9919ed4cffd81b4756","a59554ba3751ea9ad27f6948f1c71ef57f1e28bb526a53eacb0dfa76bc1df452","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","da401323d4c96e3f5b8fa8b7ecd200d47a9e340b09cefbea553d2b2b5a345e60","ead4a7fd25e5e2b756a5e71546bd8eae855c7b0ecbffd891f7fb0b6f7d80c0c1","4a81e2e28cab8b353156bef9c19c0b3640958945d655fd3798756d468b50707a","cc44cf86b3ddb7d61f7de3fd32116089decb662a8b6421013bd4a8ee9a079881","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","24a588d942a36d853d18dfe63711e9b180ea0448b956dadce7833f4d6455f0c8","c263cc53a55cc822c360481e94d0fe999acebf92f01f2ca84225a168a182657f","bd0e9a77d36caab3832f67ccdb482a8db24294efd149cb881061517dd6cc7da4","09dbd5c05f35b9ca743ea2a908c48be0d0b685e8ec1c1bcbb76443762fec1131","54b0b4ef21d120cb5267b91ed038d20d0905ba5d928c6eda2b546a0f03572dd7","56cac1d8d4be53381e236d675f43c1b2342161ca45d31dfaaf340b0612d14bc5","a93ea60536dfdeb6d9b1a44a68639e7fdb3a54cf220dec9bd7c1182914a243b4","1dd2073db39016abc797e46c711630cd39c497c28063e3a75993940c72eb9792","46ba01e044b843967d3516ad99c53b2dab67a6287d206cac025a37c285571473","1492a06643311a66d01dc0c15259c0dbe7c4d336e7a85cb7ece67085afd2e84f","47ace7a5fa09cb19907ed7cb83a867b05ecff3e10bb229888e24f82b2c03b869","65f72380cb90b44b22370dfb07890bdd557d2e211ffb023363d8c87621c2535a","a3b964ed1ea0bd077d61c56e5beb931c24b26dbeead5a5a978406e2779a8429c","c1e64c51dadfcea7b7995040c64b5ac7e8f954f2a4adf4eb92e7a462ba5275e8","163944787e14d74c0aa4f0ed2deeade6ef7521682e957dc24b494bcdab9a1bdc","15e170fc85990c9cbdc7d3799b9490183b2d15202f1ccd0794abe5afb6f351eb","2f166c686866f475aee63ff5f7cf42413169d34e60c03fc5c761b2281ea49df0","3c3556af7c4fe1d9298a4188663ecdf527f3ad1c17f184d69dc6ff02a306645e","1dd2df92910c1304d53da9d5f9411228e19ffd14a4cff04bddc54b8eebe91b73","720ae785d5a42f60200705dd3039c58702806e39203a9a36d58226801b81606e","665236eec0c0da8d3f7cdba8f01f98233425d8c065058e513b33385e417a56d2","1e771191631caaa4b5d3429c51e23c23c2f609ea1e99f4183e913c5e7fd2311b","50e8918146f4e8a9240bf867a07cf8aa0deb21fee8d4507e74ff62c8c6af42e9","666640b08e3ce76b6a8c76ce1f9f5b986923d3c76663b7fa4bc36e3af734ec46","bee442fd64d8e508dc335dafcdf34cdae7691eca0da3210ee63fc011621361ce",{"version":"e78c0591055b8277aa8ee12daa5fd2d14d678a5d92e116618c7f4cb9775eccb5","signature":"5590d39cfc02cc0f522f87b6588fa1460ebbcecbab51ac3fb3fa677856565014"},{"version":"7c5c386e53de4068edbf974e3c42540ed35215ac9899d751ae14b191406539ac","signature":"544c34472ee177e29a76d9efc6dab78b220a08f815b6b34bf415058249b28f9d"},{"version":"9ca43dcc46e39928914a89465a753e7adaf6ac29cd9c16487e451238f2f4e352","signature":"e637b5803fb3eb91b8de448f203923c902440f2346e0270232a9a629c573b554"},{"version":"3db4cf4e37acc1e454df1db517d537bedfe9e9278b7150436635b999516bd0f3","signature":"4ffecdd4de8c5637656f8e4303439cacfdffb1a9c22d3cd7108967a12b9a0853"},{"version":"2f46b0cf82fb191976921b43ee942ca4ae20ddaa7e7969fe76e1879b6cfaf670","signature":"f3f275f745eebc5cdf91f5d872229abc7e2c11df21f5103c542714c97521f7f1"},{"version":"b0fddcf88006d043e293acffaa97e6e1140f13064e8c973f9222bb700304e92f","impliedFormat":1},{"version":"a30f1e3083a67b660a56dc4de2fc7cda6643141828a16bea50a8ae041989e665","impliedFormat":1},{"version":"2beb72d1798949a58cb623b5dfdc0537fe45142064f553163a66a250ca11262a","impliedFormat":1},{"version":"a63d6d37bf7f6d07bb595dbb799b6781ec0f3b47ed0bd9b559c5bdc17c6d82b9","signature":"c309f9414a1dea70a234fb20a06fed2439843afc2a9c5e05bb79c8943517356f"},{"version":"80d09be19d792b7839347f1a864aa0a91539b5e84f39f6c66c6da816450d8d59","signature":"10f4f9455a7f943e60a21894ecc20a3914bfe6bed47ddf4b08e087e928ca0093"}],"root":[99,100,[102,107],117,118,[240,244],248,249],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":false,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":false,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[135,2],[124,3],[136,4],[144,5],[147,6],[146,7],[126,8],[129,9],[130,10],[132,11],[133,12],[141,13],[140,14],[142,15],[143,14],[149,16],[148,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[246,47],[247,47],[109,48],[110,48],[111,48],[112,49],[128,50],[127,12],[123,12],[121,12],[122,51],[120,12],[115,52],[116,53],[118,54],[105,55],[241,56],[242,57],[243,57],[244,58],[99,55],[100,59],[107,60],[103,61],[104,62],[249,63],[248,64],[106,65],[117,66],[102,55],[240,55],[222,67],[221,68],[223,69],[224,70],[239,71],[227,72],[234,73],[228,70],[230,74],[233,75],[231,76],[232,77],[229,78],[154,79],[155,80],[153,80],[156,81],[164,82],[158,83],[159,80],[161,84],[160,79],[162,80],[173,85],[169,86],[172,87],[171,88],[177,89],[178,89],[176,90],[181,91],[180,90],[220,92],[183,93],[184,94],[189,95],[185,96],[187,97],[186,98],[192,99],[195,100],[197,101],[205,102],[202,103],[201,104],[199,93],[206,101],[207,105],[208,106],[209,107],[217,108],[210,106],[211,103],[200,109],[203,110],[216,111],[214,112],[215,113],[219,114],[218,115]],"latestChangedDtsFile":"./scene/index.d.ts","version":"5.9.3"}
|
package/dist/canvas.d.ts
CHANGED
|
@@ -1,64 +1,11 @@
|
|
|
1
1
|
import { type ReactNode } from '@lynx-js/react';
|
|
2
|
-
import type { NodesRef
|
|
2
|
+
import type { NodesRef } from '@lynx-js/types';
|
|
3
3
|
import type { BoardController, BoardState } from './board-controller.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { CvExportEvent, CvMessage, CvStrokeStyle, CvTool } from './protocol.js';
|
|
5
5
|
import type { ExElement, ItemStyle } from './scene/types.js';
|
|
6
|
+
export type { G9CanvasElementProps } from './protocol.js';
|
|
6
7
|
import { type G9CanvasWords } from './words.js';
|
|
7
8
|
import './canvas.css';
|
|
8
|
-
/** The attributes and events of `<g9-canvas>`. */
|
|
9
|
-
export interface G9CanvasElementProps extends StandardProps {
|
|
10
|
-
tool?: CvTool;
|
|
11
|
-
editable?: boolean;
|
|
12
|
-
theme?: 'light' | 'dark';
|
|
13
|
-
background?: string;
|
|
14
|
-
accent?: string;
|
|
15
|
-
/** `CvStrokeStyle` as JSON (the live previews). */
|
|
16
|
-
stroke?: string;
|
|
17
|
-
bindcvview?: (event: {
|
|
18
|
-
detail: CvViewEvent;
|
|
19
|
-
}) => void;
|
|
20
|
-
bindcvdown?: (event: {
|
|
21
|
-
detail: CvDownEvent;
|
|
22
|
-
}) => void;
|
|
23
|
-
bindcvtap?: (event: {
|
|
24
|
-
detail: CvTapEvent;
|
|
25
|
-
}) => void;
|
|
26
|
-
bindcvmove?: (event: {
|
|
27
|
-
detail: CvMoveEvent;
|
|
28
|
-
}) => void;
|
|
29
|
-
bindcvtransform?: (event: {
|
|
30
|
-
detail: CvTransformEvent;
|
|
31
|
-
}) => void;
|
|
32
|
-
bindcvbox?: (event: {
|
|
33
|
-
detail: CvBoxEvent;
|
|
34
|
-
}) => void;
|
|
35
|
-
bindcvshape?: (event: {
|
|
36
|
-
detail: CvShapeEvent;
|
|
37
|
-
}) => void;
|
|
38
|
-
bindcvline?: (event: {
|
|
39
|
-
detail: CvLineEvent;
|
|
40
|
-
}) => void;
|
|
41
|
-
bindcvpoint?: (event: {
|
|
42
|
-
detail: CvPointEvent;
|
|
43
|
-
}) => void;
|
|
44
|
-
bindcvstroke?: (event: {
|
|
45
|
-
detail: CvStrokeEvent;
|
|
46
|
-
}) => void;
|
|
47
|
-
bindcverase?: (event: {
|
|
48
|
-
detail: CvEraseEvent;
|
|
49
|
-
}) => void;
|
|
50
|
-
bindcvcursor?: (event: {
|
|
51
|
-
detail: CvCursorEvent;
|
|
52
|
-
}) => void;
|
|
53
|
-
bindcvexport?: (event: {
|
|
54
|
-
detail: CvExportEvent;
|
|
55
|
-
}) => void;
|
|
56
|
-
}
|
|
57
|
-
declare module '@lynx-js/types' {
|
|
58
|
-
interface IntrinsicElements {
|
|
59
|
-
'g9-canvas': G9CanvasElementProps;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
9
|
/** A host that shows the web element in a page of its own (Lynxtron): the app wires it. */
|
|
63
10
|
export interface G9CanvasDesktopHost {
|
|
64
11
|
/** Gets the page ready; false when it cannot be shown. */
|
package/dist/canvas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../src/canvas.tsx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QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,wFAAwF;IACxF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,sDAAsD;IACtD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,mBAAmB,CAAC;CACxC;AAkBD,wEAAwE;AACxE,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,CA4BxD;AAsDD,2CAA2C;AAC3C,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,UAAU,EAAE,eAAe,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,SAAS,EAAE,CAAC;IACxC,8DAA8D;IAC9D,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;CAChC;AA6DD,sHAAsH;AACtH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAoL5E"}
|
package/dist/canvas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.js","sources":["../src/canvas.tsx"],"sourcesContent":["// G9Canvas (2.5.8, from G9Hub item 51): the host's `<g9-canvas>` bound to a board controller — messages go out through\n// the element's `apply` method (only while it exists; mounting sends the whole scene), its events go into the\n// controller. A host without the element (Lynxtron) gives a `desktop` adapter: the web element in a page of its own\n// (a `<webview>`), messages and events over the host. The style panel offers what applies to the tool or selection.\nimport { g9IdProps } from '@g9tm/lynxcontrols/base';\nimport { type ReactNode, useEffect, useMemo, useRef, useState, useSyncExternalStore } from '@lynx-js/react';\nimport type { NodesRef, StandardProps } from '@lynx-js/types';\nimport type { BoardController, BoardState } from './board-controller';\nimport type {\n CvBoxEvent,\n CvCursorEvent,\n CvDownEvent,\n CvEraseEvent,\n CvExportEvent,\n CvLineEvent,\n CvMessage,\n CvMoveEvent,\n CvPointEvent,\n CvShapeEvent,\n CvStrokeEvent,\n CvStrokeStyle,\n CvTapEvent,\n CvTool,\n CvTransformEvent,\n CvViewEvent,\n} from './protocol';\nimport { BACKGROUND_COLORS, FONT_FAMILY, STROKE_COLORS } from './scene/elements';\nimport type { Arrowhead, ExElement, FillStyle, ItemStyle, StrokeStyle, TextAlign } from './scene/types';\nimport { type G9CanvasWords, g9CanvasWordsEn } from './words';\nimport './canvas.css';\n\ndeclare const setTimeout: (callback: () => void, ms: number) => unknown;\ndeclare const clearTimeout: (handle: unknown) => void;\n\n/** The attributes and events of `<g9-canvas>`. */\nexport interface G9CanvasElementProps extends StandardProps {\n tool?: CvTool;\n editable?: boolean;\n theme?: 'light' | 'dark';\n background?: string;\n accent?: string;\n /** `CvStrokeStyle` as JSON (the live previews). */\n stroke?: string;\n bindcvview?: (event: { detail: CvViewEvent }) => void;\n bindcvdown?: (event: { detail: CvDownEvent }) => void;\n bindcvtap?: (event: { detail: CvTapEvent }) => void;\n bindcvmove?: (event: { detail: CvMoveEvent }) => void;\n bindcvtransform?: (event: { detail: CvTransformEvent }) => void;\n bindcvbox?: (event: { detail: CvBoxEvent }) => void;\n bindcvshape?: (event: { detail: CvShapeEvent }) => void;\n bindcvline?: (event: { detail: CvLineEvent }) => void;\n bindcvpoint?: (event: { detail: CvPointEvent }) => void;\n bindcvstroke?: (event: { detail: CvStrokeEvent }) => void;\n bindcverase?: (event: { detail: CvEraseEvent }) => void;\n bindcvcursor?: (event: { detail: CvCursorEvent }) => void;\n bindcvexport?: (event: { detail: CvExportEvent }) => void;\n}\n\ndeclare module '@lynx-js/types' {\n interface IntrinsicElements {\n 'g9-canvas': G9CanvasElementProps;\n }\n}\n\n/** A host that shows the web element in a page of its own (Lynxtron): the app wires it. */\nexport interface G9CanvasDesktopHost {\n /** Gets the page ready; false when it cannot be shown. */\n prepare(): Promise<boolean>;\n /** The page's address for a canvas id (a `<webview src>`), or null. */\n pageUrl(id: string): string | null;\n send(\n id: string,\n message:\n | { type: 'apply'; json: string }\n | { type: 'attrs'; attrs: Record<string, string> }\n | { type: 'export'; params: Record<string, unknown> },\n ): void;\n /** The page's events (`cvready` when it (re)loaded); returns the unsubscribe. */\n onEvent(listener: (event: { id: string; name: string; detail: unknown }) => void): () => void;\n}\n\n/** The controller's way to the element (create it, give it to the controller and to {@link G9Canvas}). */\nexport class G9CanvasPort {\n private target: NodesRef | null = null;\n private desktop: { id: string; host: G9CanvasDesktopHost } | null = null;\n private readonly exports = new Map<string, (event: CvExportEvent) => void>();\n\n /** Sends a message to the element (or the desktop page). */\n send = (message: CvMessage): void => {\n if (this.desktop) {\n this.desktop.host.send(this.desktop.id, { type: 'apply', json: JSON.stringify(message) });\n return;\n }\n this.target?.invoke({ method: 'apply', params: { json: JSON.stringify(message) } }).exec();\n };\n\n attach(target: NodesRef | null): void {\n this.target = target;\n }\n\n attachDesktop(desktop: { id: string; host: G9CanvasDesktopHost } | null): void {\n this.desktop = desktop;\n }\n\n /** The element (or page) exists. */\n get attached(): boolean {\n return this.target !== null || this.desktop !== null;\n }\n\n /** Renders the board to a PNG (the host registers it like a picked file); rejects after 30 s. */\n exportImage(options: {\n scale?: number;\n padding?: number;\n background?: boolean;\n name: string;\n }): Promise<CvExportEvent> {\n const target = this.target;\n const desktop = this.desktop;\n if (!target && !desktop) return Promise.reject(new Error('no_canvas'));\n const token = Math.random().toString(36).slice(2);\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n this.exports.delete(token);\n reject(new Error('export_timeout'));\n }, 30_000);\n this.exports.set(token, (event) => {\n clearTimeout(timer);\n resolve(event);\n });\n if (desktop) desktop.host.send(desktop.id, { type: 'export', params: { token, ...options } });\n else target?.invoke({ method: 'exportImage', params: { token, ...options } }).exec();\n });\n }\n\n /** The element answered an export. */\n exported(event: CvExportEvent): void {\n const done = this.exports.get(event.token);\n this.exports.delete(event.token);\n done?.(event);\n }\n}\n\n/** The controller's state, re-rendering on every change. */\nexport function useG9CanvasState(controller: BoardController): BoardState {\n const version = useRef(0);\n useSyncExternalStore(\n (notify) =>\n controller.subscribe(() => {\n version.current++;\n notify();\n }),\n () => version.current,\n );\n return controller.state;\n}\n\n/** An element event into the controller (the same names on every host). */\nexport function dispatchG9CanvasEvent(\n controller: BoardController,\n port: G9CanvasPort,\n name: string,\n detail: unknown,\n): void {\n const d = detail as never;\n switch (name) {\n case 'cvview':\n controller.onView(d);\n return;\n case 'cvdown':\n controller.onDown(d);\n return;\n case 'cvtap':\n controller.onTap(d);\n return;\n case 'cvmove':\n controller.onMove(d);\n return;\n case 'cvtransform':\n controller.onTransform(d);\n return;\n case 'cvbox':\n controller.onBox(d);\n return;\n case 'cvshape':\n controller.onShape(d);\n return;\n case 'cvline':\n controller.onLine(d);\n return;\n case 'cvpoint':\n controller.onPoint(d);\n return;\n case 'cvstroke':\n controller.onStroke(d);\n return;\n case 'cverase':\n controller.onErase(d);\n return;\n case 'cvcursor': {\n const c = detail as CvCursorEvent;\n controller.onCursor(c.x, c.y, c.down, Boolean(c.gone));\n return;\n }\n case 'cvexport':\n port.exported(detail as CvExportEvent);\n return;\n default:\n }\n}\n\n/** Props of {@link G9Canvas}. */\nexport interface G9CanvasProps {\n readonly id?: string;\n readonly controller: BoardController;\n readonly port: G9CanvasPort;\n readonly tool: CvTool;\n readonly editable: boolean;\n readonly dark?: boolean;\n readonly stroke: CvStrokeStyle;\n /** The board's colour (light; the dark look is the element's filter). Default white. */\n readonly background?: string;\n /** Selection handles. Default Excalidraw's violet. */\n readonly accent?: string;\n readonly className?: string;\n /** A host without the element (Lynxtron). */\n readonly desktop?: G9CanvasDesktopHost;\n}\n\nconst EVENTS = [\n 'cvview',\n 'cvdown',\n 'cvtap',\n 'cvmove',\n 'cvtransform',\n 'cvbox',\n 'cvshape',\n 'cvline',\n 'cvpoint',\n 'cvstroke',\n 'cverase',\n 'cvcursor',\n 'cvexport',\n] as const;\n\n/** A whiteboard on the host's `<g9-canvas>` (or the desktop's page). */\nexport function G9Canvas(props: G9CanvasProps): ReactNode {\n if (props.desktop) return <DesktopCanvas {...props} desktop={props.desktop} />;\n const { controller, port } = props;\n const ref = useRef<NodesRef | null>(null);\n useEffect(() => {\n port.attach(ref.current);\n controller.attach();\n return () => {\n controller.detach();\n port.attach(null);\n };\n }, [controller, port]);\n const handlers: Record<string, (e: { detail: unknown }) => void> = {};\n for (const name of EVENTS) handlers[`bind${name}`] = (e) => dispatchG9CanvasEvent(controller, port, name, e.detail);\n return (\n <g9-canvas\n ref={ref}\n className={`g9-canvas${props.className ? ` ${props.className}` : ''}`}\n {...g9IdProps(props.id)}\n tool={props.tool}\n editable={props.editable}\n theme={props.dark ? 'dark' : 'light'}\n background={props.background ?? '#ffffff'}\n accent={props.accent ?? '#6965db'}\n stroke={JSON.stringify(props.stroke)}\n {...handlers}\n />\n );\n}\n\nlet canvasSeq = 0;\n\nfunction DesktopCanvas(props: G9CanvasProps & { readonly desktop: G9CanvasDesktopHost }): ReactNode {\n const { controller, port, desktop } = props;\n const id = useMemo(() => `g9cv${++canvasSeq}`, [controller]);\n const [ready, setReady] = useState(false);\n const attrs = {\n tool: props.tool,\n editable: props.editable ? 'true' : 'false',\n theme: props.dark ? 'dark' : 'light',\n background: props.background ?? '#ffffff',\n accent: props.accent ?? '#6965db',\n stroke: JSON.stringify(props.stroke),\n };\n const attrsRef = useRef(attrs);\n attrsRef.current = attrs;\n useEffect(() => {\n let live = true;\n const off = desktop.onEvent((event) => {\n if (event.id !== id) return;\n if (event.name === 'cvready') {\n port.attachDesktop({ id, host: desktop });\n desktop.send(id, { type: 'attrs', attrs: attrsRef.current });\n controller.attach();\n return;\n }\n dispatchG9CanvasEvent(controller, port, event.name, event.detail);\n });\n void desktop.prepare().then((ok) => {\n if (live) setReady(ok);\n });\n return () => {\n live = false;\n off();\n controller.detach();\n port.attachDesktop(null);\n };\n }, [controller, port, id]);\n const key = JSON.stringify(attrs);\n useEffect(() => {\n if (port.attached) desktop.send(id, { type: 'attrs', attrs });\n }, [key]);\n const url = desktop.pageUrl(id);\n const cls = `g9-canvas${props.className ? ` ${props.className}` : ''}`;\n if (!url || !ready) return <view className={cls} {...g9IdProps(props.id)} />;\n return (\n <webview src={url} use-osr={true} native-interaction-enabled={true} className={cls} {...g9IdProps(props.id)} />\n );\n}\n\n// ------------------------------------------------------------------------------------------------------ style panel\n\n/** Props of {@link G9CanvasStylePanel}. */\nexport interface G9CanvasStylePanelProps {\n readonly id?: string;\n readonly controller: BoardController;\n readonly style: ItemStyle;\n readonly tool: string;\n readonly selected: readonly ExElement[];\n /** The panel's words (default English: `g9CanvasWordsEn`). */\n readonly words?: G9CanvasWords;\n}\n\nfunction Section(props: { readonly label: string; readonly children?: ReactNode }): ReactNode {\n return (\n <view className=\"g9-cvpanel__section\">\n <text className=\"g9-cvpanel__label\">{props.label}</text>\n <view className=\"g9-cvpanel__row\">{props.children}</view>\n </view>\n );\n}\n\nfunction Swatch(props: {\n readonly color: string;\n readonly active: boolean;\n readonly label: string;\n readonly onTap: () => void;\n readonly id?: string | undefined;\n}): ReactNode {\n const none = props.color === 'transparent';\n return (\n <view\n className={props.active ? 'g9-cvpanel__swatch g9-cvpanel__swatch--on' : 'g9-cvpanel__swatch'}\n {...g9IdProps(props.id)}\n style={{ backgroundColor: none ? '#ffffff' : props.color }}\n bindtap={props.onTap}\n accessibility-element={true}\n accessibility-traits=\"button\"\n accessibility-label={props.label}\n {...(props.active ? { 'accessibility-value': '✓' } : {})}\n >\n {none ? <text className=\"g9-cvpanel__none\">⧄</text> : null}\n </view>\n );\n}\n\nfunction Choice(props: {\n readonly label: string;\n readonly glyph?: string;\n readonly active: boolean;\n readonly onTap: () => void;\n readonly id?: string | undefined;\n}): ReactNode {\n return (\n <view\n className={props.active ? 'g9-cvpanel__choice g9-cvpanel__choice--on' : 'g9-cvpanel__choice'}\n {...g9IdProps(props.id)}\n bindtap={props.onTap}\n accessibility-element={true}\n accessibility-traits=\"button\"\n accessibility-label={props.label}\n {...(props.active ? { 'accessibility-value': '✓' } : {})}\n >\n <text\n className={props.active ? 'g9-cvpanel__choice-text g9-cvpanel__choice-text--on' : 'g9-cvpanel__choice-text'}\n >\n {props.glyph ?? props.label}\n </text>\n </view>\n );\n}\n\n/** The style of the tool in hand or the selection: colours, fill, stroke, sloppiness, edges, text, arrows, layers. */\nexport function G9CanvasStylePanel(props: G9CanvasStylePanelProps): ReactNode {\n const s = (props.words ?? g9CanvasWordsEn).style;\n const types = new Set(props.selected.length ? props.selected.map((e) => e.type) : [props.tool]);\n const has = (...list: string[]) => list.some((t) => types.has(t));\n const shapes = has('rectangle', 'ellipse', 'diamond', 'line', 'freedraw');\n const strokes = has('rectangle', 'ellipse', 'diamond', 'arrow', 'line', 'freedraw');\n const lines = has('rectangle', 'ellipse', 'diamond', 'arrow', 'line');\n const edges = has('rectangle', 'diamond', 'line', 'arrow', 'image');\n const texts = has('text') || props.selected.some((e) => e.boundElements?.some((b) => b.type === 'text'));\n const arrows = has('arrow');\n const style = props.style;\n const set = (patch: Partial<ItemStyle>) => props.controller.setStyle(patch);\n const strokeColor = !(has('image') && types.size === 1);\n const id = (k: string) => (props.id ? `${props.id}_${k}` : undefined);\n const choices = <T,>(key: keyof ItemStyle, list: readonly (readonly [T, string, string?])[]) =>\n list.map(([value, label, glyph]) => (\n <Choice\n key={String(value)}\n id={id(`${String(key)}_${String(value)}`)}\n label={label}\n {...(glyph ? { glyph } : {})}\n active={(style as unknown as Record<string, unknown>)[key] === value}\n onTap={() => set({ [key]: value } as Partial<ItemStyle>)}\n />\n ));\n return (\n <view className=\"g9-cvpanel\" {...g9IdProps(props.id)}>\n {strokeColor ? (\n <Section label={s.stroke}>\n {STROKE_COLORS.map((c) => (\n <Swatch\n key={c}\n id={id(`stroke_${c}`)}\n color={c}\n label={c}\n active={style.strokeColor === c}\n onTap={() => set({ strokeColor: c })}\n />\n ))}\n </Section>\n ) : null}\n {shapes ? (\n <Section label={s.background}>\n {BACKGROUND_COLORS.map((c) => (\n <Swatch\n key={c}\n id={id(`background_${c}`)}\n color={c}\n label={c === 'transparent' ? s.transparent : c}\n active={style.backgroundColor === c}\n onTap={() => set({ backgroundColor: c })}\n />\n ))}\n </Section>\n ) : null}\n {shapes && style.backgroundColor !== 'transparent' ? (\n <Section label={s.fill}>\n {choices<FillStyle>('fillStyle', [\n ['hachure', s.hachure],\n ['cross-hatch', s.crossHatch],\n ['solid', s.solid],\n ])}\n </Section>\n ) : null}\n {strokes ? (\n <Section label={s.strokeWidth}>\n {choices<number>('strokeWidth', [\n [1, s.thin],\n [2, s.bold],\n [4, s.extraBold],\n ])}\n </Section>\n ) : null}\n {lines ? (\n <>\n <Section label={s.strokeStyle}>\n {choices<StrokeStyle>('strokeStyle', [\n ['solid', s.solid],\n ['dashed', s.dashed],\n ['dotted', s.dotted],\n ])}\n </Section>\n <Section label={s.sloppiness}>\n {choices<number>('roughness', [\n [0, s.architect],\n [1, s.artist],\n [2, s.cartoonist],\n ])}\n </Section>\n </>\n ) : null}\n {edges ? (\n <Section label={s.edges}>\n {choices<'sharp' | 'round'>('roundness', [\n ['sharp', s.sharp],\n ['round', s.round],\n ])}\n </Section>\n ) : null}\n {arrows ? (\n <Section label={s.arrowheads}>\n {choices<Arrowhead | null>('endArrowhead', [\n [null, `${s.end}: ${s.none}`],\n ['arrow', `${s.end}: →`],\n ['triangle', `${s.end}: ▶`],\n ['dot', `${s.end}: ●`],\n ['bar', `${s.end}: |`],\n ])}\n {choices<Arrowhead | null>('startArrowhead', [\n [null, `${s.start}: ${s.none}`],\n ['arrow', `${s.start}: ←`],\n ])}\n </Section>\n ) : null}\n {texts || props.tool === 'text' ? (\n <>\n <Section label={s.fontSize}>\n {choices<number>('fontSize', [\n [16, s.small],\n [20, s.medium],\n [28, s.large],\n [36, s.huge],\n ])}\n </Section>\n <Section label={s.fontFamily}>\n {choices<number>('fontFamily', [\n [FONT_FAMILY.Excalifont, s.handDrawn],\n [FONT_FAMILY.Nunito, s.normal],\n [FONT_FAMILY['Comic Shanns'], s.code],\n ])}\n </Section>\n <Section label={s.textAlign}>\n {choices<TextAlign>('textAlign', [\n ['left', s.left],\n ['center', s.center],\n ['right', s.right],\n ])}\n </Section>\n </>\n ) : null}\n <Section label={s.opacity}>\n {choices<number>(\n 'opacity',\n [30, 60, 100].map((v) => [v, `${v}%`] as const),\n )}\n </Section>\n {props.selected.length ? (\n <Section label={s.layers}>\n <Choice\n id={id('back')}\n label={s.toBack}\n glyph=\"⤓\"\n active={false}\n onTap={() => props.controller.reorder('back')}\n />\n <Choice\n id={id('backward')}\n label={s.backward}\n glyph=\"↓\"\n active={false}\n onTap={() => props.controller.reorder('backward')}\n />\n <Choice\n id={id('forward')}\n label={s.forward}\n glyph=\"↑\"\n active={false}\n onTap={() => props.controller.reorder('forward')}\n />\n <Choice\n id={id('front')}\n label={s.toFront}\n glyph=\"⤒\"\n active={false}\n onTap={() => props.controller.reorder('front')}\n />\n </Section>\n ) : null}\n </view>\n );\n}\n"],"names":["G9CanvasPort","target","desktop","options","Promise","Error","token","Math","resolve","reject","timer","setTimeout","event","clearTimeout","done","Map","message","_this_target","JSON","useG9CanvasState","controller","version","useRef","useSyncExternalStore","notify","dispatchG9CanvasEvent","port","name","detail","d","c","Boolean","EVENTS","G9Canvas","props","_props_background","_props_accent","DesktopCanvas","ref","useEffect","handlers","e","g9-canvas","g9IdProps","canvasSeq","id","useMemo","ready","setReady","useState","attrs","attrsRef","live","off","ok","key","url","cls","view","webview","Section","text","Swatch","none","Choice","_props_glyph","G9CanvasStylePanel","_props_words","s","g9CanvasWordsEn","types","Set","has","list","t","shapes","strokes","lines","edges","texts","_e_boundElements","b","arrows","style","set","patch","strokeColor","k","undefined","choices","value","label","glyph","String","STROKE_COLORS","BACKGROUND_COLORS","FONT_FAMILY","v"],"mappings":";;;;;;;;;;;;;;;AAkFO,MAAMA;IAcX,OAAOC,MAAuB,EAAQ;QACpC,IAAI,CAAC,MAAM,GAAGA;IAChB;IAEA,cAAcC,OAAyD,EAAQ;QAC7E,IAAI,CAAC,OAAO,GAAGA;IACjB;IAGA,IAAI,WAAoB;QACtB,OAAO,AAAgB,SAAhB,IAAI,CAAC,MAAM,IAAa,AAAiB,SAAjB,IAAI,CAAC,OAAO;IAC7C;IAGA,YAAYC,OAKX,EAA0B;QACzB,MAAMF,SAAS,IAAI,CAAC,MAAM;QAC1B,MAAMC,UAAU,IAAI,CAAC,OAAO;QAC5B,IAAI,CAACD,UAAU,CAACC,SAAS,OAAOE,QAAQ,MAAM,CAAC,IAAIC,MAAM;QACzD,MAAMC,QAAQC,KAAK,MAAM,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC;QAC/C,OAAO,IAAIH,QAAQ,CAACI,SAASC;YAC3B,MAAMC,QAAQC,WAAW;gBACvB,IAAI,CAAC,OAAO,CAAC,MAAM,CAACL;gBACpBG,OAAO,IAAIJ,MAAM;YACnB,GAAG;YACH,IAAI,CAAC,OAAO,CAAC,GAAG,CAACC,OAAO,CAACM;gBACvBC,aAAaH;gBACbF,QAAQI;YACV;YACA,IAAIV,SAASA,QAAQ,IAAI,CAAC,IAAI,CAACA,QAAQ,EAAE,EAAE;gBAAE,MAAM;gBAAU,QAAQ;oBAAEI;oBAAO,GAAGH,OAAO;gBAAC;YAAE;iBACtFF,QAAAA,UAAAA,OAAQ,MAAM,CAAC;gBAAE,QAAQ;gBAAe,QAAQ;oBAAEK;oBAAO,GAAGH,OAAO;gBAAC;YA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,aACtC;UACF,CAAC8B,OACC,IAAInB,GAAG,UACP,OAAOuB,EAAE,OAAO,EAChB,MAAM,IACN,QAAQ,OACR,OAAO,IAAMlC,MAAM,UAAU,CAAC,OAAO,CAAC,WACtC;QACJ,EAAE0B,WACA,KAAK;IACX,EAAEF;AAEN"}
|
|
1
|
+
{"version":3,"file":"canvas.js","sources":["../src/canvas.tsx"],"sourcesContent":["// G9Canvas (2.5.8, from G9Hub item 51): the host's `<g9-canvas>` bound to a board controller — messages go out through\n// the element's `apply` method (only while it exists; mounting sends the whole scene), its events go into the\n// controller. A host without the element (Lynxtron) gives a `desktop` adapter: the web element in a page of its own\n// (a `<webview>`), messages and events over the host. The style panel offers what applies to the tool or selection.\nimport { g9IdProps } from '@g9tm/lynxcontrols/base';\nimport { type ReactNode, useEffect, useMemo, useRef, useState, useSyncExternalStore } from '@lynx-js/react';\nimport type { NodesRef } from '@lynx-js/types';\nimport type { BoardController, BoardState } from './board-controller';\nimport type {\n CvBoxEvent,\n CvCursorEvent,\n CvDownEvent,\n CvEraseEvent,\n CvExportEvent,\n CvLineEvent,\n CvMessage,\n CvMoveEvent,\n CvPointEvent,\n CvShapeEvent,\n CvStrokeEvent,\n CvStrokeStyle,\n CvTapEvent,\n CvTool,\n CvTransformEvent,\n CvViewEvent,\n G9CanvasElementProps,\n} from './protocol';\nimport { BACKGROUND_COLORS, FONT_FAMILY, STROKE_COLORS } from './scene/elements';\nimport type { Arrowhead, ExElement, FillStyle, ItemStyle, StrokeStyle, TextAlign } from './scene/types';\n\nexport type { G9CanvasElementProps } from './protocol';\n\nimport { type G9CanvasWords, g9CanvasWordsEn } from './words';\nimport './canvas.css';\n\ndeclare const setTimeout: (callback: () => void, ms: number) => unknown;\ndeclare const clearTimeout: (handle: unknown) => void;\n\n/** A host that shows the web element in a page of its own (Lynxtron): the app wires it. */\nexport interface G9CanvasDesktopHost {\n /** Gets the page ready; false when it cannot be shown. */\n prepare(): Promise<boolean>;\n /** The page's address for a canvas id (a `<webview src>`), or null. */\n pageUrl(id: string): string | null;\n send(\n id: string,\n message:\n | { type: 'apply'; json: string }\n | { type: 'attrs'; attrs: Record<string, string> }\n | { type: 'export'; params: Record<string, unknown> },\n ): void;\n /** The page's events (`cvready` when it (re)loaded); returns the unsubscribe. */\n onEvent(listener: (event: { id: string; name: string; detail: unknown }) => void): () => void;\n}\n\n/** The controller's way to the element (create it, give it to the controller and to {@link G9Canvas}). */\nexport class G9CanvasPort {\n private target: NodesRef | null = null;\n private desktop: { id: string; host: G9CanvasDesktopHost } | null = null;\n private readonly exports = new Map<string, (event: CvExportEvent) => void>();\n\n /** Sends a message to the element (or the desktop page). */\n send = (message: CvMessage): void => {\n if (this.desktop) {\n this.desktop.host.send(this.desktop.id, { type: 'apply', json: JSON.stringify(message) });\n return;\n }\n this.target?.invoke({ method: 'apply', params: { json: JSON.stringify(message) } }).exec();\n };\n\n attach(target: NodesRef | null): void {\n this.target = target;\n }\n\n attachDesktop(desktop: { id: string; host: G9CanvasDesktopHost } | null): void {\n this.desktop = desktop;\n }\n\n /** The element (or page) exists. */\n get attached(): boolean {\n return this.target !== null || this.desktop !== null;\n }\n\n /** Renders the board to a PNG (the host registers it like a picked file); rejects after 30 s. */\n exportImage(options: {\n scale?: number;\n padding?: number;\n background?: boolean;\n name: string;\n }): Promise<CvExportEvent> {\n const target = this.target;\n const desktop = this.desktop;\n if (!target && !desktop) return Promise.reject(new Error('no_canvas'));\n const token = Math.random().toString(36).slice(2);\n return new Promise((resolve, reject) => {\n const timer = setTimeout(() => {\n this.exports.delete(token);\n reject(new Error('export_timeout'));\n }, 30_000);\n this.exports.set(token, (event) => {\n clearTimeout(timer);\n resolve(event);\n });\n if (desktop) desktop.host.send(desktop.id, { type: 'export', params: { token, ...options } });\n else target?.invoke({ method: 'exportImage', params: { token, ...options } }).exec();\n });\n }\n\n /** The element answered an export. */\n exported(event: CvExportEvent): void {\n const done = this.exports.get(event.token);\n this.exports.delete(event.token);\n done?.(event);\n }\n}\n\n/** The controller's state, re-rendering on every change. */\nexport function useG9CanvasState(controller: BoardController): BoardState {\n const version = useRef(0);\n useSyncExternalStore(\n (notify) =>\n controller.subscribe(() => {\n version.current++;\n notify();\n }),\n () => version.current,\n );\n return controller.state;\n}\n\n/** An element event into the controller (the same names on every host). */\nexport function dispatchG9CanvasEvent(\n controller: BoardController,\n port: G9CanvasPort,\n name: string,\n detail: unknown,\n): void {\n const d = detail as never;\n switch (name) {\n case 'cvview':\n controller.onView(d);\n return;\n case 'cvdown':\n controller.onDown(d);\n return;\n case 'cvtap':\n controller.onTap(d);\n return;\n case 'cvmove':\n controller.onMove(d);\n return;\n case 'cvtransform':\n controller.onTransform(d);\n return;\n case 'cvbox':\n controller.onBox(d);\n return;\n case 'cvshape':\n controller.onShape(d);\n return;\n case 'cvline':\n controller.onLine(d);\n return;\n case 'cvpoint':\n controller.onPoint(d);\n return;\n case 'cvstroke':\n controller.onStroke(d);\n return;\n case 'cverase':\n controller.onErase(d);\n return;\n case 'cvcursor': {\n const c = detail as CvCursorEvent;\n controller.onCursor(c.x, c.y, c.down, Boolean(c.gone));\n return;\n }\n case 'cvexport':\n port.exported(detail as CvExportEvent);\n return;\n default:\n }\n}\n\n/** Props of {@link G9Canvas}. */\nexport interface G9CanvasProps {\n readonly id?: string;\n readonly controller: BoardController;\n readonly port: G9CanvasPort;\n readonly tool: CvTool;\n readonly editable: boolean;\n readonly dark?: boolean;\n readonly stroke: CvStrokeStyle;\n /** The board's colour (light; the dark look is the element's filter). Default white. */\n readonly background?: string;\n /** Selection handles. Default Excalidraw's violet. */\n readonly accent?: string;\n readonly className?: string;\n /** A host without the element (Lynxtron). */\n readonly desktop?: G9CanvasDesktopHost;\n}\n\nconst EVENTS = [\n 'cvview',\n 'cvdown',\n 'cvtap',\n 'cvmove',\n 'cvtransform',\n 'cvbox',\n 'cvshape',\n 'cvline',\n 'cvpoint',\n 'cvstroke',\n 'cverase',\n 'cvcursor',\n 'cvexport',\n] as const;\n\n/** A whiteboard on the host's `<g9-canvas>` (or the desktop's page). */\nexport function G9Canvas(props: G9CanvasProps): ReactNode {\n if (props.desktop) return <DesktopCanvas {...props} desktop={props.desktop} />;\n const { controller, port } = props;\n const ref = useRef<NodesRef | null>(null);\n useEffect(() => {\n port.attach(ref.current);\n controller.attach();\n return () => {\n controller.detach();\n port.attach(null);\n };\n }, [controller, port]);\n const handlers: Record<string, (e: { detail: unknown }) => void> = {};\n for (const name of EVENTS) handlers[`bind${name}`] = (e) => dispatchG9CanvasEvent(controller, port, name, e.detail);\n return (\n <g9-canvas\n ref={ref}\n className={`g9-canvas${props.className ? ` ${props.className}` : ''}`}\n {...g9IdProps(props.id)}\n tool={props.tool}\n editable={props.editable}\n theme={props.dark ? 'dark' : 'light'}\n background={props.background ?? '#ffffff'}\n accent={props.accent ?? '#6965db'}\n stroke={JSON.stringify(props.stroke)}\n {...handlers}\n />\n );\n}\n\nlet canvasSeq = 0;\n\nfunction DesktopCanvas(props: G9CanvasProps & { readonly desktop: G9CanvasDesktopHost }): ReactNode {\n const { controller, port, desktop } = props;\n const id = useMemo(() => `g9cv${++canvasSeq}`, [controller]);\n const [ready, setReady] = useState(false);\n const attrs = {\n tool: props.tool,\n editable: props.editable ? 'true' : 'false',\n theme: props.dark ? 'dark' : 'light',\n background: props.background ?? '#ffffff',\n accent: props.accent ?? '#6965db',\n stroke: JSON.stringify(props.stroke),\n };\n const attrsRef = useRef(attrs);\n attrsRef.current = attrs;\n useEffect(() => {\n let live = true;\n const off = desktop.onEvent((event) => {\n if (event.id !== id) return;\n if (event.name === 'cvready') {\n port.attachDesktop({ id, host: desktop });\n desktop.send(id, { type: 'attrs', attrs: attrsRef.current });\n controller.attach();\n return;\n }\n dispatchG9CanvasEvent(controller, port, event.name, event.detail);\n });\n void desktop.prepare().then((ok) => {\n if (live) setReady(ok);\n });\n return () => {\n live = false;\n off();\n controller.detach();\n port.attachDesktop(null);\n };\n }, [controller, port, id]);\n const key = JSON.stringify(attrs);\n useEffect(() => {\n if (port.attached) desktop.send(id, { type: 'attrs', attrs });\n }, [key]);\n const url = desktop.pageUrl(id);\n const cls = `g9-canvas${props.className ? ` ${props.className}` : ''}`;\n if (!url || !ready) return <view className={cls} {...g9IdProps(props.id)} />;\n return (\n <webview src={url} use-osr={true} native-interaction-enabled={true} className={cls} {...g9IdProps(props.id)} />\n );\n}\n\n// ------------------------------------------------------------------------------------------------------ style panel\n\n/** Props of {@link G9CanvasStylePanel}. */\nexport interface G9CanvasStylePanelProps {\n readonly id?: string;\n readonly controller: BoardController;\n readonly style: ItemStyle;\n readonly tool: string;\n readonly selected: readonly ExElement[];\n /** The panel's words (default English: `g9CanvasWordsEn`). */\n readonly words?: G9CanvasWords;\n}\n\nfunction Section(props: { readonly label: string; readonly children?: ReactNode }): ReactNode {\n return (\n <view className=\"g9-cvpanel__section\">\n <text className=\"g9-cvpanel__label\">{props.label}</text>\n <view className=\"g9-cvpanel__row\">{props.children}</view>\n </view>\n );\n}\n\nfunction Swatch(props: {\n readonly color: string;\n readonly active: boolean;\n readonly label: string;\n readonly onTap: () => void;\n readonly id?: string | undefined;\n}): ReactNode {\n const none = props.color === 'transparent';\n return (\n <view\n className={props.active ? 'g9-cvpanel__swatch g9-cvpanel__swatch--on' : 'g9-cvpanel__swatch'}\n {...g9IdProps(props.id)}\n style={{ backgroundColor: none ? '#ffffff' : props.color }}\n bindtap={props.onTap}\n accessibility-element={true}\n accessibility-traits=\"button\"\n accessibility-label={props.label}\n {...(props.active ? { 'accessibility-value': '✓' } : {})}\n >\n {none ? <text className=\"g9-cvpanel__none\">⧄</text> : null}\n </view>\n );\n}\n\nfunction Choice(props: {\n readonly label: string;\n readonly glyph?: string;\n readonly active: boolean;\n readonly onTap: () => void;\n readonly id?: string | undefined;\n}): ReactNode {\n return (\n <view\n className={props.active ? 'g9-cvpanel__choice g9-cvpanel__choice--on' : 'g9-cvpanel__choice'}\n {...g9IdProps(props.id)}\n bindtap={props.onTap}\n accessibility-element={true}\n accessibility-traits=\"button\"\n accessibility-label={props.label}\n {...(props.active ? { 'accessibility-value': '✓' } : {})}\n >\n <text\n className={props.active ? 'g9-cvpanel__choice-text g9-cvpanel__choice-text--on' : 'g9-cvpanel__choice-text'}\n >\n {props.glyph ?? props.label}\n </text>\n </view>\n );\n}\n\n/** The style of the tool in hand or the selection: colours, fill, stroke, sloppiness, edges, text, arrows, layers. */\nexport function G9CanvasStylePanel(props: G9CanvasStylePanelProps): ReactNode {\n const s = (props.words ?? g9CanvasWordsEn).style;\n const types = new Set(props.selected.length ? props.selected.map((e) => e.type) : [props.tool]);\n const has = (...list: string[]) => list.some((t) => types.has(t));\n const shapes = has('rectangle', 'ellipse', 'diamond', 'line', 'freedraw');\n const strokes = has('rectangle', 'ellipse', 'diamond', 'arrow', 'line', 'freedraw');\n const lines = has('rectangle', 'ellipse', 'diamond', 'arrow', 'line');\n const edges = has('rectangle', 'diamond', 'line', 'arrow', 'image');\n const texts = has('text') || props.selected.some((e) => e.boundElements?.some((b) => b.type === 'text'));\n const arrows = has('arrow');\n const style = props.style;\n const set = (patch: Partial<ItemStyle>) => props.controller.setStyle(patch);\n const strokeColor = !(has('image') && types.size === 1);\n const id = (k: string) => (props.id ? `${props.id}_${k}` : undefined);\n const choices = <T,>(key: keyof ItemStyle, list: readonly (readonly [T, string, string?])[]) =>\n list.map(([value, label, glyph]) => (\n <Choice\n key={String(value)}\n id={id(`${String(key)}_${String(value)}`)}\n label={label}\n {...(glyph ? { glyph } : {})}\n active={(style as unknown as Record<string, unknown>)[key] === value}\n onTap={() => set({ [key]: value } as Partial<ItemStyle>)}\n />\n ));\n return (\n <view className=\"g9-cvpanel\" {...g9IdProps(props.id)}>\n {strokeColor ? (\n <Section label={s.stroke}>\n {STROKE_COLORS.map((c) => (\n <Swatch\n key={c}\n id={id(`stroke_${c}`)}\n color={c}\n label={c}\n active={style.strokeColor === c}\n onTap={() => set({ strokeColor: c })}\n />\n ))}\n </Section>\n ) : null}\n {shapes ? (\n <Section label={s.background}>\n {BACKGROUND_COLORS.map((c) => (\n <Swatch\n key={c}\n id={id(`background_${c}`)}\n color={c}\n label={c === 'transparent' ? s.transparent : c}\n active={style.backgroundColor === c}\n onTap={() => set({ backgroundColor: c })}\n />\n ))}\n </Section>\n ) : null}\n {shapes && style.backgroundColor !== 'transparent' ? (\n <Section label={s.fill}>\n {choices<FillStyle>('fillStyle', [\n ['hachure', s.hachure],\n ['cross-hatch', s.crossHatch],\n ['solid', s.solid],\n ])}\n </Section>\n ) : null}\n {strokes ? (\n <Section label={s.strokeWidth}>\n {choices<number>('strokeWidth', [\n [1, s.thin],\n [2, s.bold],\n [4, s.extraBold],\n ])}\n </Section>\n ) : null}\n {lines ? (\n <>\n <Section label={s.strokeStyle}>\n {choices<StrokeStyle>('strokeStyle', [\n ['solid', s.solid],\n ['dashed', s.dashed],\n ['dotted', s.dotted],\n ])}\n </Section>\n <Section label={s.sloppiness}>\n {choices<number>('roughness', [\n [0, s.architect],\n [1, s.artist],\n [2, s.cartoonist],\n ])}\n </Section>\n </>\n ) : null}\n {edges ? (\n <Section label={s.edges}>\n {choices<'sharp' | 'round'>('roundness', [\n ['sharp', s.sharp],\n ['round', s.round],\n ])}\n </Section>\n ) : null}\n {arrows ? (\n <Section label={s.arrowheads}>\n {choices<Arrowhead | null>('endArrowhead', [\n [null, `${s.end}: ${s.none}`],\n ['arrow', `${s.end}: →`],\n ['triangle', `${s.end}: ▶`],\n ['dot', `${s.end}: ●`],\n ['bar', `${s.end}: |`],\n ])}\n {choices<Arrowhead | null>('startArrowhead', [\n [null, `${s.start}: ${s.none}`],\n ['arrow', `${s.start}: ←`],\n ])}\n </Section>\n ) : null}\n {texts || props.tool === 'text' ? (\n <>\n <Section label={s.fontSize}>\n {choices<number>('fontSize', [\n [16, s.small],\n [20, s.medium],\n [28, s.large],\n [36, s.huge],\n ])}\n </Section>\n <Section label={s.fontFamily}>\n {choices<number>('fontFamily', [\n [FONT_FAMILY.Excalifont, s.handDrawn],\n [FONT_FAMILY.Nunito, s.normal],\n [FONT_FAMILY['Comic Shanns'], s.code],\n ])}\n </Section>\n <Section label={s.textAlign}>\n {choices<TextAlign>('textAlign', [\n ['left', s.left],\n ['center', s.center],\n ['right', s.right],\n ])}\n </Section>\n </>\n ) : null}\n <Section label={s.opacity}>\n {choices<number>(\n 'opacity',\n [30, 60, 100].map((v) => [v, `${v}%`] as const),\n )}\n </Section>\n {props.selected.length ? (\n <Section label={s.layers}>\n <Choice\n id={id('back')}\n label={s.toBack}\n glyph=\"⤓\"\n active={false}\n onTap={() => props.controller.reorder('back')}\n />\n <Choice\n id={id('backward')}\n label={s.backward}\n glyph=\"↓\"\n active={false}\n onTap={() => props.controller.reorder('backward')}\n />\n <Choice\n id={id('forward')}\n label={s.forward}\n glyph=\"↑\"\n active={false}\n onTap={() => props.controller.reorder('forward')}\n />\n <Choice\n id={id('front')}\n label={s.toFront}\n glyph=\"⤒\"\n active={false}\n onTap={() => props.controller.reorder('front')}\n />\n </Section>\n ) : null}\n </view>\n );\n}\n"],"names":["G9CanvasPort","target","desktop","options","Promise","Error","token","Math","resolve","reject","timer","setTimeout","event","clearTimeout","done","Map","message","_this_target","JSON","useG9CanvasState","controller","version","useRef","useSyncExternalStore","notify","dispatchG9CanvasEvent","port","name","detail","d","c","Boolean","EVENTS","G9Canvas","props","_props_background","_props_accent","DesktopCanvas","ref","useEffect","handlers","e","g9-canvas","g9IdProps","canvasSeq","id","useMemo","ready","setReady","useState","attrs","attrsRef","live","off","ok","key","url","cls","view","webview","Section","text","Swatch","none","Choice","_props_glyph","G9CanvasStylePanel","_props_words","s","g9CanvasWordsEn","types","Set","has","list","t","shapes","strokes","lines","edges","texts","_e_boundElements","b","arrows","style","set","patch","strokeColor","k","undefined","choices","value","label","glyph","String","STROKE_COLORS","BACKGROUND_COLORS","FONT_FAMILY","v"],"mappings":";;;;;;;;;;;;;;;AAwDO,MAAMA;IAcX,OAAOC,MAAuB,EAAQ;QACpC,IAAI,CAAC,MAAM,GAAGA;IAChB;IAEA,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UACV,CAACA,QAAQ,OAAOQ,EAAE,SAAS,EAAE;YAC3B,CAACqB,QAAmB,aAAa;QAC/B;YAAC;YAAQrB,EAAE,IAAI;SAAC;QAChB;YAAC;YAAUA,EAAE,MAAM;SAAC;QACpB;YAAC;YAASA,EAAE,KAAK;SAAC;KACnB,EAAE;UACL,EAAER,QAAQ;QACZ,MACE,KAAK;MACT,CAACA,QAAQ,OAAOQ,EAAE,OAAO,EAAE;QACzB,CAACqB,QACC,WACA;QAAC;QAAI;QAAI;KAAI,CAAC,GAAG,CAAC,CAACQ,IAAM;YAACA;YAAG,GAAGA,EAAE,CAAC,CAAC;SAAC,GACrC;MACJ,EAAErC,QAAQ;MACV,CAAC1B,MAAM,QAAQ,CAAC,MAAM,IACnB0B,QAAQ,OAAOQ,EAAE,MAAM,EAAE;UACxB,CAACJ,OACC,IAAInB,GAAG,SACP,OAAOuB,EAAE,MAAM,EACf,MAAM,IACN,QAAQ,OACR,OAAO,IAAMlC,MAAM,UAAU,CAAC,OAAO,CAAC,UACtC;UACF,CAAC8B,OACC,IAAInB,GAAG,aACP,OAAOuB,EAAE,QAAQ,EACjB,MAAM,IACN,QAAQ,OACR,OAAO,IAAMlC,MAAM,UAAU,CAAC,OAAO,CAAC,cACtC;UACF,CAAC8B,OACC,IAAInB,GAAG,YACP,OAAOuB,EAAE,OAAO,EAChB,MAAM,IACN,QAAQ,OACR,OAAO,IAAMlC,MAAM,UAAU,CAAC,OAAO,CAAC,aACtC;UACF,CAAC8B,OACC,IAAInB,GAAG,UACP,OAAOuB,EAAE,OAAO,EAChB,MAAM,IACN,QAAQ,OACR,OAAO,IAAMlC,MAAM,UAAU,CAAC,OAAO,CAAC,WACtC;QACJ,EAAE0B,WACA,KAAK;IACX,EAAEF;AAEN"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BoardController as G9BoardController, type BoardPeerState as G9BoardPeerState, type BoardState as G9BoardState, type BoardStatus as G9BoardStatus, } from './board-controller.js';
|
|
2
2
|
export * from './board-model.js';
|
|
3
|
-
export { dispatchG9CanvasEvent, G9Canvas, type G9CanvasDesktopHost,
|
|
3
|
+
export { dispatchG9CanvasEvent, G9Canvas, type G9CanvasDesktopHost, G9CanvasPort, type G9CanvasProps, G9CanvasStylePanel, type G9CanvasStylePanelProps, useG9CanvasState, } from './canvas.js';
|
|
4
4
|
export { applyMatrix, CanvasCore as G9CanvasCore, resizeBox, resizeMatrix } from './element-core.js';
|
|
5
5
|
export * from './export.js';
|
|
6
6
|
export * from './protocol.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,cAAc,IAAI,gBAAgB,EACvC,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,WAAW,IAAI,aAAa,GAClC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,KAAK,mBAAmB,EACxB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,IAAI,iBAAiB,EACpC,KAAK,cAAc,IAAI,gBAAgB,EACvC,KAAK,UAAU,IAAI,YAAY,EAC/B,KAAK,WAAW,IAAI,aAAa,GAClC,MAAM,oBAAoB,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,KAAK,mBAAmB,EACxB,YAAY,EACZ,KAAK,aAAa,EAClB,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAE,UAAU,IAAI,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAClG,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,KAAK,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StandardProps } from '@lynx-js/types';
|
|
1
2
|
/** A picture the element wrote (an export): the host's file handle; the app releases it when done. */
|
|
2
3
|
export interface CvFileRef {
|
|
3
4
|
readonly id: string;
|
|
@@ -44,7 +45,12 @@ export interface CvPathOp {
|
|
|
44
45
|
/** Fill rule (`evenodd` for roughjs curves/polygons/paths, else nonzero). */
|
|
45
46
|
eo?: boolean;
|
|
46
47
|
}
|
|
47
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Lines of text; `y` is the first baseline, `lh` the line height (px), `al` the alignment inside width `w`. With font
|
|
50
|
+
* 100 (the host's text font) `y` is the middle of the first line instead: the host centres each line's glyph box
|
|
51
|
+
* (ascent + descent of its font) on it, as G9ImageModule's text overlay does, so the canvas and the render match
|
|
52
|
+
* whatever font the host has.
|
|
53
|
+
*/
|
|
48
54
|
export interface CvTextOp {
|
|
49
55
|
k: 't';
|
|
50
56
|
t: string[];
|
|
@@ -52,8 +58,14 @@ export interface CvTextOp {
|
|
|
52
58
|
y: number;
|
|
53
59
|
lh: number;
|
|
54
60
|
size: number;
|
|
55
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Excalidraw font family id (5 Excalifont, 6 Nunito, 8 Comic Shanns, …); hosts map it to a font they have. 100 = the
|
|
63
|
+
* host's text font (Android: Lynx's `G9` / `G9Semi` / `G9Bold` typefaces, iOS: `G9LCFonts.textFont`, web: the
|
|
64
|
+
* element's computed `font-family`), at weight `wt`.
|
|
65
|
+
*/
|
|
56
66
|
font: number;
|
|
67
|
+
/** The weight (100–900) of font 100; default 400. Other fonts ignore it. */
|
|
68
|
+
wt?: number;
|
|
57
69
|
c: string;
|
|
58
70
|
al: 'left' | 'center' | 'right';
|
|
59
71
|
w: number;
|
|
@@ -255,4 +267,58 @@ export interface CvExportEvent {
|
|
|
255
267
|
}
|
|
256
268
|
/** Excalidraw's dark mode: the canvas is shown through `invert(93%) hue-rotate(180deg)`. */
|
|
257
269
|
export declare const DARK_FILTER = "invert(93%) hue-rotate(180deg)";
|
|
270
|
+
/** The attributes and events of `<g9-canvas>`. */
|
|
271
|
+
export interface G9CanvasElementProps extends StandardProps {
|
|
272
|
+
tool?: CvTool;
|
|
273
|
+
editable?: boolean;
|
|
274
|
+
theme?: 'light' | 'dark';
|
|
275
|
+
background?: string;
|
|
276
|
+
accent?: string;
|
|
277
|
+
/** `CvStrokeStyle` as JSON (the live previews). */
|
|
278
|
+
stroke?: string;
|
|
279
|
+
bindcvview?: (event: {
|
|
280
|
+
detail: CvViewEvent;
|
|
281
|
+
}) => void;
|
|
282
|
+
bindcvdown?: (event: {
|
|
283
|
+
detail: CvDownEvent;
|
|
284
|
+
}) => void;
|
|
285
|
+
bindcvtap?: (event: {
|
|
286
|
+
detail: CvTapEvent;
|
|
287
|
+
}) => void;
|
|
288
|
+
bindcvmove?: (event: {
|
|
289
|
+
detail: CvMoveEvent;
|
|
290
|
+
}) => void;
|
|
291
|
+
bindcvtransform?: (event: {
|
|
292
|
+
detail: CvTransformEvent;
|
|
293
|
+
}) => void;
|
|
294
|
+
bindcvbox?: (event: {
|
|
295
|
+
detail: CvBoxEvent;
|
|
296
|
+
}) => void;
|
|
297
|
+
bindcvshape?: (event: {
|
|
298
|
+
detail: CvShapeEvent;
|
|
299
|
+
}) => void;
|
|
300
|
+
bindcvline?: (event: {
|
|
301
|
+
detail: CvLineEvent;
|
|
302
|
+
}) => void;
|
|
303
|
+
bindcvpoint?: (event: {
|
|
304
|
+
detail: CvPointEvent;
|
|
305
|
+
}) => void;
|
|
306
|
+
bindcvstroke?: (event: {
|
|
307
|
+
detail: CvStrokeEvent;
|
|
308
|
+
}) => void;
|
|
309
|
+
bindcverase?: (event: {
|
|
310
|
+
detail: CvEraseEvent;
|
|
311
|
+
}) => void;
|
|
312
|
+
bindcvcursor?: (event: {
|
|
313
|
+
detail: CvCursorEvent;
|
|
314
|
+
}) => void;
|
|
315
|
+
bindcvexport?: (event: {
|
|
316
|
+
detail: CvExportEvent;
|
|
317
|
+
}) => void;
|
|
318
|
+
}
|
|
319
|
+
declare module '@lynx-js/types' {
|
|
320
|
+
interface IntrinsicElements {
|
|
321
|
+
'g9-canvas': G9CanvasElementProps;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
258
324
|
//# sourceMappingURL=protocol.d.ts.map
|
package/dist/protocol.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,kEAAkE;IAClE,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,uCAAuC;AACvC,MAAM,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAErD,uGAAuG;AACvG,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,GAAG,CAAC;IACP,CAAC,EAAE,MAAM,CAAC;IACV,wDAAwD;IACxD,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,wCAAwC;IACxC,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,6EAA6E;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gB,CAAA;KAAE,KAAK,IAAI,CAAC;IAChE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IACpD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE,KAAK,IAAI,CAAC;IACxD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,KAAK,IAAI,CAAC;IACtD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE,KAAK,IAAI,CAAC;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1D,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,YAAY,CAAA;KAAE,KAAK,IAAI,CAAC;IACxD,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,IAAI,CAAC;IAC1D,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,KAAK,IAAI,CAAC;CAC3D;AAED,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,UAAU,iBAAiB;QACzB,WAAW,EAAE,oBAAoB,CAAC;KACnC;CACF"}
|
package/dist/protocol.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sources":["../src/protocol.ts"],"sourcesContent":["/** A picture the element wrote (an export): the host's file handle; the app releases it when done. */\nexport interface CvFileRef {\n readonly id: string;\n readonly name?: string;\n readonly size?: number;\n readonly mime?: string;\n /** Where the host put it (a path or an address), when it says. */\n readonly uri?: string;\n}\n\n/**\n * `<g9-canvas>` (Plan-Lynx §6, W11): the drawing surface of a whiteboard. The scene (Excalidraw elements), hit-testing,\n * editing, history and sync live in the app (`features/whiteboard/scene`, `board-sync.ts`); the element only draws what\n * the app sends and reports gestures. Everything that must follow a finger at 60 fps happens inside the element without\n * a round trip to the app's background thread: pan, pinch-zoom, the live freehand stroke, the outline of a shape being\n * drawn, moving / resizing / rotating the selection (previewed by transforming the already drawn items), the\n * selection box, the eraser trail. The app answers each finished gesture with the real elements.\n *\n * <g9-canvas ref={el} tool=\"freedraw\" editable theme=\"light\" background=\"#ffffff\" accent=\"#4f46e5\"\n * stroke='{\"color\":\"#1e1e1e\",\"width\":2,\"fill\":\"transparent\",\"roughness\":1}'\n * bindcvview bindcvdown bindcvtap bindcvmove bindcvtransform bindcvbox bindcvshape bindcvline bindcvstroke\n * bindcverase bindcvcursor bindcvexport className=\"flex-1\" />\n * el.invoke({ method: 'apply', params: { json: JSON.stringify(message) } })\n * el.invoke({ method: 'exportImage', params: { token, scale, padding, background, name } }) → cvexport event\n *\n * Coordinates: everything in messages and events is in scene units (Excalidraw's), except `view` (Excalidraw's\n * `scrollX`/`scrollY`/`zoom`: screen = (scene + scroll) × zoom, in the element's px).\n *\n * Hosts: Android `whiteboard/G9CanvasUI.kt` (a `View` drawing on its `Canvas`, scene layer cached in a bitmap), web\n * `client/web/src/canvas.ts` (a custom element with two `<canvas>` layers), desktop — see AIGuides/lynx/W11-whiteboard.md.\n * The gesture rules of `element-core.ts` are the reference both follow.\n */\n\n/** [x1, y1, x2, y2] in scene units. */\nexport type CvBox = [number, number, number, number];\n\n/** A path in SVG path syntax (M L C Q Z, absolute), stroked (`s`, `w`, `dash`) and/or filled (`f`). */\nexport interface CvPathOp {\n k: 'p';\n d: string;\n /** Stroke colour (CSS colour); absent = not stroked. */\n s?: string;\n w?: number;\n dash?: number[];\n /** Fill colour; absent = not filled. */\n f?: string;\n /** Fill rule (`evenodd` for roughjs curves/polygons/paths, else nonzero). */\n eo?: boolean;\n}\n\n/** Lines of text; `y` is the first baseline, `lh` the line height (px), `al` the alignment inside width `w`. */\nexport interface CvTextOp {\n k: 't';\n t: string[];\n x: number;\n y: number;\n lh: number;\n size: number;\n /** Excalidraw font family id (5 Excalifont, 6 Nunito, 8 Comic Shanns, …); hosts map it to a font they have. */\n font: number;\n c: string;\n al: 'left' | 'center' | 'right';\n w: number;\n rtl?: boolean;\n}\n\n/** A picture (`files[file]` is its URL); `crop` in the picture's natural pixels. */\nexport interface CvImageOp {\n k: 'i';\n file: string;\n w: number;\n h: number;\n r?: number;\n crop?: [number, number, number, number];\n}\n\n/** One drawing operation of an item: a path, a text or a picture. */\nexport type CvOp = CvPathOp | CvTextOp | CvImageOp;\n\n/** One element as drawn: ops relative to (x, y), rotated by `a` (radians) about (cx, cy). */\nexport interface CvItem {\n id: string;\n /** The element's version (hosts may skip an unchanged item). */\n v: number;\n x: number;\n y: number;\n a: number;\n cx: number;\n cy: number;\n /** Opacity 0–1. */\n o: number;\n /** Bounds as drawn (culling). */\n b: CvBox;\n ops: CvOp[];\n}\n\n/** A box with its rotation about its centre. */\nexport interface CvRotatedBox {\n b: CvBox;\n a: number;\n}\n\n/** The selection the app sends: the ids that move together, their outlines, the frame with its handles and a line's points. */\nexport interface CvSelection {\n /** Items that move/resize/rotate with the selection (selected elements, their labels, bound arrows' owners…). */\n ids: string[];\n /** Outline per selected element. */\n boxes: CvRotatedBox[];\n /** The box with the handles (null: no handles, e.g. a locked or read-only selection). */\n frame: CvRotatedBox | null;\n /** Which handles the frame has: `all` (8 resize handles + rotation), `corners` (4 corners + rotation), `none`. */\n handles: 'all' | 'corners' | 'none';\n /** A single selected arrow/line: its points (scene), shown as draggable dots. */\n points?: [number, number][];\n}\n\n/** A collaborator: name, colour, pointer (null when away) and what they have selected. */\nexport interface CvPeer {\n id: string;\n name: string;\n color: string;\n /** Null when the pointer left the board. */\n x: number | null;\n y: number | null;\n down?: boolean;\n boxes?: CvRotatedBox[];\n}\n\n/** The camera: scroll (scene units) and zoom. */\nexport interface CvView {\n scrollX: number;\n scrollY: number;\n zoom: number;\n}\n\n/** app → element (`apply`). Fields absent = unchanged. */\nexport interface CvMessage {\n /** Drop every item first (a new scene). */\n reset?: boolean;\n /** Items to add or replace. */\n items?: CvItem[];\n remove?: string[];\n /** The full z-order (bottom first) whenever it changed. */\n order?: string[];\n selection?: CvSelection | null;\n peers?: CvPeer[];\n /** Move the camera (open → fit the content; zoom buttons). */\n view?: CvView;\n /** Picture URLs by file id. */\n files?: Record<string, string>;\n /** Answer to `cvdown`: whether the gesture now drags the (new) selection. */\n gesture?: { id: number; grab: boolean };\n /** Gestures whose preview is now drawn as real items. */\n done?: number[];\n /** Items not to draw (the text being edited in the app's input). */\n hidden?: string[];\n /** Items the eraser marked (drawn faded). */\n faded?: string[];\n}\n\n/** Style of the live previews (attribute `stroke`, JSON). */\nexport interface CvStrokeStyle {\n color: string;\n width: number;\n fill?: string;\n /** Freehand strokes drawn as variable-width outlines (Excalidraw's look) when true. */\n pressure?: boolean;\n}\n\n/** The tool in hand. */\nexport type CvTool =\n | 'selection'\n | 'hand'\n | 'rectangle'\n | 'diamond'\n | 'ellipse'\n | 'arrow'\n | 'line'\n | 'freedraw'\n | 'text'\n | 'eraser'\n | 'image'\n | 'frame'\n | 'laser';\n\n/** A selection handle: a side, a corner or the rotation knob. */\nexport type CvHandle = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw' | 'rotation';\n\n// ------------------------------------------------------------------ element → app (events, `detail`)\n\n/** `cvview`: the camera moved (with the element's size); `settled` once the gesture ended. */\nexport interface CvViewEvent extends CvView {\n width: number;\n height: number;\n}\n\n/** Selection tool: a pointer went down outside the selection's frame. The app answers with `gesture`. */\nexport interface CvDownEvent {\n g: number;\n x: number;\n y: number;\n shift?: boolean;\n}\n\n/** A tap (no drag): any tool. `count` 2 = double tap. */\nexport interface CvTapEvent {\n g: number;\n x: number;\n y: number;\n count: number;\n tool: CvTool;\n shift?: boolean;\n}\n\n/** `cvmove`: the selection was dragged by (`dx`, `dy`); `alt` duplicates it. */\nexport interface CvMoveEvent {\n g: number;\n dx: number;\n dy: number;\n /** Alt-drag duplicates (web/desktop). */\n alt?: boolean;\n}\n\n/** `cvtransform`: a handle resized or rotated the selection from one box to another. */\nexport interface CvTransformEvent {\n g: number;\n handle: CvHandle;\n /** The frame before and after (unrotated, scene). */\n from: CvBox;\n to: CvBox;\n /** Rotation added (radians), `rotation` handle only. */\n angle: number;\n shift?: boolean;\n}\n\n/** `cvbox`: a marquee was drawn (shift adds to the selection). */\nexport interface CvBoxEvent {\n g: number;\n b: CvBox;\n shift?: boolean;\n}\n\n/** `cvshape`: a rectangle, ellipse, diamond or frame was drawn in a box. */\nexport interface CvShapeEvent {\n g: number;\n tool: 'rectangle' | 'ellipse' | 'diamond' | 'frame';\n b: CvBox;\n}\n\n/** `cvline`: a line or an arrow was drawn through points. */\nexport interface CvLineEvent {\n g: number;\n tool: 'arrow' | 'line';\n points: [number, number][];\n}\n\n/** A selected line's point dragged to a new place. */\nexport interface CvPointEvent {\n g: number;\n index: number;\n x: number;\n y: number;\n}\n\n/** `cvstroke`: a free stroke was drawn (flat points, pressures when a pen gave them). */\nexport interface CvStrokeEvent {\n g: number;\n /** Flat [x0, y0, x1, y1, …] in scene units. */\n points: number[];\n /** Pen pressure per point (0–1); null = simulate (touch, mouse). */\n pressures: number[] | null;\n}\n\n/** `cverase`: the eraser passed over points. */\nexport interface CvEraseEvent {\n g: number;\n points: number[];\n}\n\n/** `cvcursor`: the pointer moved (for collaborators); `gone` when it left. */\nexport interface CvCursorEvent {\n x: number;\n y: number;\n down: boolean;\n /** The pointer left the board. */\n gone?: boolean;\n}\n\n/** `cvexport`: the answer to `exportImage` — the picture registered as a file, or an error. */\nexport interface CvExportEvent {\n token: string;\n /** The picture, registered like a picked file; release it when done. */\n file?: CvFileRef;\n error?: string;\n}\n\n/** Excalidraw's dark mode: the canvas is shown through `invert(93%) hue-rotate(180deg)`. */\nexport const DARK_FILTER = 'invert(93%) hue-rotate(180deg)';\n"],"names":["DARK_FILTER"],"mappings":"AAySO,MAAMA,cAAc"}
|
|
1
|
+
{"version":3,"file":"protocol.js","sources":["../src/protocol.ts"],"sourcesContent":["import type { StandardProps } from '@lynx-js/types';\n\n/** A picture the element wrote (an export): the host's file handle; the app releases it when done. */\nexport interface CvFileRef {\n readonly id: string;\n readonly name?: string;\n readonly size?: number;\n readonly mime?: string;\n /** Where the host put it (a path or an address), when it says. */\n readonly uri?: string;\n}\n\n/**\n * `<g9-canvas>` (Plan-Lynx §6, W11): the drawing surface of a whiteboard. The scene (Excalidraw elements), hit-testing,\n * editing, history and sync live in the app (`features/whiteboard/scene`, `board-sync.ts`); the element only draws what\n * the app sends and reports gestures. Everything that must follow a finger at 60 fps happens inside the element without\n * a round trip to the app's background thread: pan, pinch-zoom, the live freehand stroke, the outline of a shape being\n * drawn, moving / resizing / rotating the selection (previewed by transforming the already drawn items), the\n * selection box, the eraser trail. The app answers each finished gesture with the real elements.\n *\n * <g9-canvas ref={el} tool=\"freedraw\" editable theme=\"light\" background=\"#ffffff\" accent=\"#4f46e5\"\n * stroke='{\"color\":\"#1e1e1e\",\"width\":2,\"fill\":\"transparent\",\"roughness\":1}'\n * bindcvview bindcvdown bindcvtap bindcvmove bindcvtransform bindcvbox bindcvshape bindcvline bindcvstroke\n * bindcverase bindcvcursor bindcvexport className=\"flex-1\" />\n * el.invoke({ method: 'apply', params: { json: JSON.stringify(message) } })\n * el.invoke({ method: 'exportImage', params: { token, scale, padding, background, name } }) → cvexport event\n *\n * Coordinates: everything in messages and events is in scene units (Excalidraw's), except `view` (Excalidraw's\n * `scrollX`/`scrollY`/`zoom`: screen = (scene + scroll) × zoom, in the element's px).\n *\n * Hosts: Android `whiteboard/G9CanvasUI.kt` (a `View` drawing on its `Canvas`, scene layer cached in a bitmap), web\n * `client/web/src/canvas.ts` (a custom element with two `<canvas>` layers), desktop — see AIGuides/lynx/W11-whiteboard.md.\n * The gesture rules of `element-core.ts` are the reference both follow.\n */\n\n/** [x1, y1, x2, y2] in scene units. */\nexport type CvBox = [number, number, number, number];\n\n/** A path in SVG path syntax (M L C Q Z, absolute), stroked (`s`, `w`, `dash`) and/or filled (`f`). */\nexport interface CvPathOp {\n k: 'p';\n d: string;\n /** Stroke colour (CSS colour); absent = not stroked. */\n s?: string;\n w?: number;\n dash?: number[];\n /** Fill colour; absent = not filled. */\n f?: string;\n /** Fill rule (`evenodd` for roughjs curves/polygons/paths, else nonzero). */\n eo?: boolean;\n}\n\n/**\n * Lines of text; `y` is the first baseline, `lh` the line height (px), `al` the alignment inside width `w`. With font\n * 100 (the host's text font) `y` is the middle of the first line instead: the host centres each line's glyph box\n * (ascent + descent of its font) on it, as G9ImageModule's text overlay does, so the canvas and the render match\n * whatever font the host has.\n */\nexport interface CvTextOp {\n k: 't';\n t: string[];\n x: number;\n y: number;\n lh: number;\n size: number;\n /**\n * Excalidraw font family id (5 Excalifont, 6 Nunito, 8 Comic Shanns, …); hosts map it to a font they have. 100 = the\n * host's text font (Android: Lynx's `G9` / `G9Semi` / `G9Bold` typefaces, iOS: `G9LCFonts.textFont`, web: the\n * element's computed `font-family`), at weight `wt`.\n */\n font: number;\n /** The weight (100–900) of font 100; default 400. Other fonts ignore it. */\n wt?: number;\n c: string;\n al: 'left' | 'center' | 'right';\n w: number;\n rtl?: boolean;\n}\n\n/** A picture (`files[file]` is its URL); `crop` in the picture's natural pixels. */\nexport interface CvImageOp {\n k: 'i';\n file: string;\n w: number;\n h: number;\n r?: number;\n crop?: [number, number, number, number];\n}\n\n/** One drawing operation of an item: a path, a text or a picture. */\nexport type CvOp = CvPathOp | CvTextOp | CvImageOp;\n\n/** One element as drawn: ops relative to (x, y), rotated by `a` (radians) about (cx, cy). */\nexport interface CvItem {\n id: string;\n /** The element's version (hosts may skip an unchanged item). */\n v: number;\n x: number;\n y: number;\n a: number;\n cx: number;\n cy: number;\n /** Opacity 0–1. */\n o: number;\n /** Bounds as drawn (culling). */\n b: CvBox;\n ops: CvOp[];\n}\n\n/** A box with its rotation about its centre. */\nexport interface CvRotatedBox {\n b: CvBox;\n a: number;\n}\n\n/** The selection the app sends: the ids that move together, their outlines, the frame with its handles and a line's points. */\nexport interface CvSelection {\n /** Items that move/resize/rotate with the selection (selected elements, their labels, bound arrows' owners…). */\n ids: string[];\n /** Outline per selected element. */\n boxes: CvRotatedBox[];\n /** The box with the handles (null: no handles, e.g. a locked or read-only selection). */\n frame: CvRotatedBox | null;\n /** Which handles the frame has: `all` (8 resize handles + rotation), `corners` (4 corners + rotation), `none`. */\n handles: 'all' | 'corners' | 'none';\n /** A single selected arrow/line: its points (scene), shown as draggable dots. */\n points?: [number, number][];\n}\n\n/** A collaborator: name, colour, pointer (null when away) and what they have selected. */\nexport interface CvPeer {\n id: string;\n name: string;\n color: string;\n /** Null when the pointer left the board. */\n x: number | null;\n y: number | null;\n down?: boolean;\n boxes?: CvRotatedBox[];\n}\n\n/** The camera: scroll (scene units) and zoom. */\nexport interface CvView {\n scrollX: number;\n scrollY: number;\n zoom: number;\n}\n\n/** app → element (`apply`). Fields absent = unchanged. */\nexport interface CvMessage {\n /** Drop every item first (a new scene). */\n reset?: boolean;\n /** Items to add or replace. */\n items?: CvItem[];\n remove?: string[];\n /** The full z-order (bottom first) whenever it changed. */\n order?: string[];\n selection?: CvSelection | null;\n peers?: CvPeer[];\n /** Move the camera (open → fit the content; zoom buttons). */\n view?: CvView;\n /** Picture URLs by file id. */\n files?: Record<string, string>;\n /** Answer to `cvdown`: whether the gesture now drags the (new) selection. */\n gesture?: { id: number; grab: boolean };\n /** Gestures whose preview is now drawn as real items. */\n done?: number[];\n /** Items not to draw (the text being edited in the app's input). */\n hidden?: string[];\n /** Items the eraser marked (drawn faded). */\n faded?: string[];\n}\n\n/** Style of the live previews (attribute `stroke`, JSON). */\nexport interface CvStrokeStyle {\n color: string;\n width: number;\n fill?: string;\n /** Freehand strokes drawn as variable-width outlines (Excalidraw's look) when true. */\n pressure?: boolean;\n}\n\n/** The tool in hand. */\nexport type CvTool =\n | 'selection'\n | 'hand'\n | 'rectangle'\n | 'diamond'\n | 'ellipse'\n | 'arrow'\n | 'line'\n | 'freedraw'\n | 'text'\n | 'eraser'\n | 'image'\n | 'frame'\n | 'laser';\n\n/** A selection handle: a side, a corner or the rotation knob. */\nexport type CvHandle = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw' | 'rotation';\n\n// ------------------------------------------------------------------ element → app (events, `detail`)\n\n/** `cvview`: the camera moved (with the element's size); `settled` once the gesture ended. */\nexport interface CvViewEvent extends CvView {\n width: number;\n height: number;\n}\n\n/** Selection tool: a pointer went down outside the selection's frame. The app answers with `gesture`. */\nexport interface CvDownEvent {\n g: number;\n x: number;\n y: number;\n shift?: boolean;\n}\n\n/** A tap (no drag): any tool. `count` 2 = double tap. */\nexport interface CvTapEvent {\n g: number;\n x: number;\n y: number;\n count: number;\n tool: CvTool;\n shift?: boolean;\n}\n\n/** `cvmove`: the selection was dragged by (`dx`, `dy`); `alt` duplicates it. */\nexport interface CvMoveEvent {\n g: number;\n dx: number;\n dy: number;\n /** Alt-drag duplicates (web/desktop). */\n alt?: boolean;\n}\n\n/** `cvtransform`: a handle resized or rotated the selection from one box to another. */\nexport interface CvTransformEvent {\n g: number;\n handle: CvHandle;\n /** The frame before and after (unrotated, scene). */\n from: CvBox;\n to: CvBox;\n /** Rotation added (radians), `rotation` handle only. */\n angle: number;\n shift?: boolean;\n}\n\n/** `cvbox`: a marquee was drawn (shift adds to the selection). */\nexport interface CvBoxEvent {\n g: number;\n b: CvBox;\n shift?: boolean;\n}\n\n/** `cvshape`: a rectangle, ellipse, diamond or frame was drawn in a box. */\nexport interface CvShapeEvent {\n g: number;\n tool: 'rectangle' | 'ellipse' | 'diamond' | 'frame';\n b: CvBox;\n}\n\n/** `cvline`: a line or an arrow was drawn through points. */\nexport interface CvLineEvent {\n g: number;\n tool: 'arrow' | 'line';\n points: [number, number][];\n}\n\n/** A selected line's point dragged to a new place. */\nexport interface CvPointEvent {\n g: number;\n index: number;\n x: number;\n y: number;\n}\n\n/** `cvstroke`: a free stroke was drawn (flat points, pressures when a pen gave them). */\nexport interface CvStrokeEvent {\n g: number;\n /** Flat [x0, y0, x1, y1, …] in scene units. */\n points: number[];\n /** Pen pressure per point (0–1); null = simulate (touch, mouse). */\n pressures: number[] | null;\n}\n\n/** `cverase`: the eraser passed over points. */\nexport interface CvEraseEvent {\n g: number;\n points: number[];\n}\n\n/** `cvcursor`: the pointer moved (for collaborators); `gone` when it left. */\nexport interface CvCursorEvent {\n x: number;\n y: number;\n down: boolean;\n /** The pointer left the board. */\n gone?: boolean;\n}\n\n/** `cvexport`: the answer to `exportImage` — the picture registered as a file, or an error. */\nexport interface CvExportEvent {\n token: string;\n /** The picture, registered like a picked file; release it when done. */\n file?: CvFileRef;\n error?: string;\n}\n\n/** Excalidraw's dark mode: the canvas is shown through `invert(93%) hue-rotate(180deg)`. */\nexport const DARK_FILTER = 'invert(93%) hue-rotate(180deg)';\n\n// ------------------------------------------------------------------ the element in JSX\n\n/** The attributes and events of `<g9-canvas>`. */\nexport interface G9CanvasElementProps extends StandardProps {\n tool?: CvTool;\n editable?: boolean;\n theme?: 'light' | 'dark';\n background?: string;\n accent?: string;\n /** `CvStrokeStyle` as JSON (the live previews). */\n stroke?: string;\n bindcvview?: (event: { detail: CvViewEvent }) => void;\n bindcvdown?: (event: { detail: CvDownEvent }) => void;\n bindcvtap?: (event: { detail: CvTapEvent }) => void;\n bindcvmove?: (event: { detail: CvMoveEvent }) => void;\n bindcvtransform?: (event: { detail: CvTransformEvent }) => void;\n bindcvbox?: (event: { detail: CvBoxEvent }) => void;\n bindcvshape?: (event: { detail: CvShapeEvent }) => void;\n bindcvline?: (event: { detail: CvLineEvent }) => void;\n bindcvpoint?: (event: { detail: CvPointEvent }) => void;\n bindcvstroke?: (event: { detail: CvStrokeEvent }) => void;\n bindcverase?: (event: { detail: CvEraseEvent }) => void;\n bindcvcursor?: (event: { detail: CvCursorEvent }) => void;\n bindcvexport?: (event: { detail: CvExportEvent }) => void;\n}\n\ndeclare module '@lynx-js/types' {\n interface IntrinsicElements {\n 'g9-canvas': G9CanvasElementProps;\n }\n}\n"],"names":["DARK_FILTER"],"mappings":"AAsTO,MAAMA,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g9tm/lynxcontrols-canvas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "A whiteboard for G9LynxControls (G9Hub boards): G9Canvas on the host's <g9-canvas> element (Android, iOS, web) with an Excalidraw-compatible scene (shapes, arrows bound to shapes, free drawing, text, frames, pictures), the board controller (tools, selection, styles, undo, collaborators' pointers) and the style panel.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"build": "rslib build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@g9tm/lynxcontrols-foundation": "2.
|
|
42
|
+
"@g9tm/lynxcontrols-foundation": "2.7.0",
|
|
43
43
|
"fractional-indexing": "3.2.0",
|
|
44
44
|
"path-data-parser": "0.1.0",
|
|
45
45
|
"perfect-freehand": "1.2.0",
|
|
46
46
|
"roughjs": "4.6.4"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@g9tm/lynxcontrols": "2.
|
|
49
|
+
"@g9tm/lynxcontrols": "2.7.0",
|
|
50
50
|
"@lynx-js/react": ">=0.129.3 <0.130.0"
|
|
51
51
|
}
|
|
52
52
|
}
|