kritzel-stencil 0.0.120 → 0.0.121
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/dist/cjs/kritzel-brush-style_18.cjs.entry.js +6 -5
- package/dist/cjs/kritzel-brush-style_18.cjs.entry.js.map +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +3 -3
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js.map +1 -1
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +4 -3
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kritzel-editor.js +3 -3
- package/dist/components/kritzel-editor.js.map +1 -1
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/{p-eS30Bqrc.js → p-q-xqpmae.js} +6 -5
- package/dist/components/{p-eS30Bqrc.js.map → p-q-xqpmae.js.map} +1 -1
- package/dist/esm/kritzel-brush-style_18.entry.js +6 -5
- package/dist/esm/kritzel-brush-style_18.entry.js.map +1 -1
- package/dist/stencil/p-3797c300.entry.js +2 -0
- package/dist/stencil/p-3797c300.entry.js.map +1 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/stencil/p-0ae72b0d.entry.js +0 -2
- package/dist/stencil/p-0ae72b0d.entry.js.map +0 -1
|
@@ -723,7 +723,7 @@ const KritzelEditor = class {
|
|
|
723
723
|
label: 'Paste',
|
|
724
724
|
icon: 'paste',
|
|
725
725
|
disabled: async () => (await this.engineRef.getCopiedObjects()).length === 0,
|
|
726
|
-
action: menu => this.engineRef.paste(menu.x, menu.y)
|
|
726
|
+
action: (menu, _) => this.engineRef.paste(menu.x, menu.y)
|
|
727
727
|
},
|
|
728
728
|
{ label: 'Delete', icon: 'delete', action: () => this.engineRef.delete() },
|
|
729
729
|
{ label: 'Bring to Front', icon: 'bring-to-front', action: () => this.engineRef.moveToTop() },
|
|
@@ -802,7 +802,7 @@ const KritzelEditor = class {
|
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
render() {
|
|
805
|
-
return (index.h(index.Host, { key: '
|
|
805
|
+
return (index.h(index.Host, { key: '2b269b9caee7c54eaea7782e22b0aa4620a89787' }, index.h("kritzel-engine", { key: '9ba5fbb01d673fdc74c1d9789640f3e513d290d2', ref: el => (this.engineRef = el), onIsEngineReady: () => (this.isEngineReady = true), scaleMax: this.scaleMax, scaleMin: this.scaleMin, globalContextMenuItems: this.globalContextMenuItems, objectContextMenuItems: this.objectContextMenuItems }), index.h("kritzel-controls", { key: 'f21688e22f401430966561f5992049c9faf077c1', ref: el => (this.controlsRef = el), controls: this.controls, isUtilityPanelVisible: this.isUtilityPanelVisible, style: this.isControlsVisible ? { display: 'flex' } : { display: 'none' }, onIsControlsReady: () => (this.isControlsReady = true) })));
|
|
806
806
|
}
|
|
807
807
|
get host() { return index.getElement(this); }
|
|
808
808
|
static get watchers() { return {
|
|
@@ -2042,18 +2042,19 @@ const KritzelEngine = class {
|
|
|
2042
2042
|
transform: (_x = this.store.state.currentPath) === null || _x === void 0 ? void 0 : _x.transformationMatrix,
|
|
2043
2043
|
transformOrigin: 'top left',
|
|
2044
2044
|
overflow: 'visible',
|
|
2045
|
-
}, viewBox: (_y = this.store.state.currentPath) === null || _y === void 0 ? void 0 : _y.viewBox }, index.h("path", { key: 'ac88c3b66d642bbe42a0ac5345b4f4d6cddef5a3', d: (_z = this.store.state.currentPath) === null || _z === void 0 ? void 0 : _z.d, fill: (_0 = this.store.state.currentPath) === null || _0 === void 0 ? void 0 : _0.fill, stroke: (_1 = this.store.state.currentPath) === null || _1 === void 0 ? void 0 : _1.stroke }))), this.store.state.isContextMenuVisible && (index.h("kritzel-context-menu", { key: '
|
|
2045
|
+
}, viewBox: (_y = this.store.state.currentPath) === null || _y === void 0 ? void 0 : _y.viewBox }, index.h("path", { key: 'ac88c3b66d642bbe42a0ac5345b4f4d6cddef5a3', d: (_z = this.store.state.currentPath) === null || _z === void 0 ? void 0 : _z.d, fill: (_0 = this.store.state.currentPath) === null || _0 === void 0 ? void 0 : _0.fill, stroke: (_1 = this.store.state.currentPath) === null || _1 === void 0 ? void 0 : _1.stroke }))), this.store.state.isContextMenuVisible && (index.h("kritzel-context-menu", { key: '8dc7ef8180a94bc1b4bf25c969574421ca4d0c4e', class: "context-menu", ref: el => (this.contextMenuElement = el), items: this.store.state.contextMenuItems, objects: ((_2 = this.store.state.selectionGroup) === null || _2 === void 0 ? void 0 : _2.objects) || [], style: {
|
|
2046
2046
|
position: 'fixed',
|
|
2047
2047
|
left: `${this.store.state.contextMenuX}px`,
|
|
2048
2048
|
top: `${this.store.state.contextMenuY}px`,
|
|
2049
2049
|
zIndex: '10000',
|
|
2050
2050
|
}, onActionSelected: event => {
|
|
2051
|
+
var _a;
|
|
2051
2052
|
event.detail.action({
|
|
2052
2053
|
x: (-this.store.state.translateX + this.store.state.contextMenuX) / this.store.state.scale,
|
|
2053
2054
|
y: (-this.store.state.translateY + this.store.state.contextMenuY) / this.store.state.scale,
|
|
2054
|
-
}, this.store.state.selectionGroup.objects);
|
|
2055
|
+
}, (_a = this.store.state.selectionGroup) === null || _a === void 0 ? void 0 : _a.objects);
|
|
2055
2056
|
this.hideContextMenu();
|
|
2056
|
-
} })), ((_3 = this.store.state) === null || _3 === void 0 ? void 0 : _3.activeTool) instanceof index$1.KritzelEraserTool && !this.store.state.isScaling && index.h("kritzel-cursor-trail", { key: '
|
|
2057
|
+
} })), ((_3 = this.store.state) === null || _3 === void 0 ? void 0 : _3.activeTool) instanceof index$1.KritzelEraserTool && !this.store.state.isScaling && index.h("kritzel-cursor-trail", { key: 'c4cd252caaae9e0b1f8f2dd6a669cf4c24154e17', store: this.store })));
|
|
2057
2058
|
}
|
|
2058
2059
|
get host() { return index.getElement(this); }
|
|
2059
2060
|
static get watchers() { return {
|