kritzel-stencil 0.0.65 → 0.0.66
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 +11 -4
- package/dist/cjs/kritzel-brush-style_18.cjs.entry.js.map +1 -1
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +11 -4
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js.map +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-editor.js +1 -1
- package/dist/components/{p-Ct7CWjRC.js → p-BMhWrn-u.js} +13 -6
- package/dist/components/p-BMhWrn-u.js.map +1 -0
- package/dist/esm/kritzel-brush-style_18.entry.js +11 -4
- package/dist/esm/kritzel-brush-style_18.entry.js.map +1 -1
- package/dist/stencil/p-cda77348.entry.js +2 -0
- package/dist/stencil/p-cda77348.entry.js.map +1 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-Ct7CWjRC.js.map +0 -1
- package/dist/stencil/p-4ac961fb.entry.js +0 -2
- package/dist/stencil/p-4ac961fb.entry.js.map +0 -1
|
@@ -3057,9 +3057,16 @@ const KritzelControls = class {
|
|
|
3057
3057
|
return (_a = this.activeControl) === null || _a === void 0 ? void 0 : _a.tool;
|
|
3058
3058
|
}
|
|
3059
3059
|
async componentDidLoad() {
|
|
3060
|
-
await this.initializeEngine();
|
|
3061
|
-
await this.initializeTools();
|
|
3062
3060
|
this.controlsReady.emit();
|
|
3061
|
+
this.initializeEngine().then(() => {
|
|
3062
|
+
this.initializeTools()
|
|
3063
|
+
.then(() => {
|
|
3064
|
+
console.info('KritzelControls initialized with tools:', this.controls);
|
|
3065
|
+
})
|
|
3066
|
+
.catch(error => {
|
|
3067
|
+
console.error('Error initializing tools:', error);
|
|
3068
|
+
});
|
|
3069
|
+
});
|
|
3063
3070
|
}
|
|
3064
3071
|
async initializeEngine() {
|
|
3065
3072
|
await customElements.whenDefined('kritzel-engine');
|
|
@@ -3124,11 +3131,11 @@ const KritzelControls = class {
|
|
|
3124
3131
|
render() {
|
|
3125
3132
|
var _a, _b;
|
|
3126
3133
|
const hasNoConfig = ((_a = this.activeControl) === null || _a === void 0 ? void 0 : _a.config) === undefined || ((_b = this.activeControl) === null || _b === void 0 ? void 0 : _b.config) === null;
|
|
3127
|
-
return (index.h(index.Host, { key: '
|
|
3134
|
+
return (index.h(index.Host, { key: '67f9678645348eb32cdc07bde7cb3538bab7d7ec' }, index.h("kritzel-utility-panel", { key: 'b73e532e010c6bb6d800aa7b03edecaee1082018', style: {
|
|
3128
3135
|
position: 'absolute',
|
|
3129
3136
|
bottom: '56px',
|
|
3130
3137
|
left: '12px',
|
|
3131
|
-
}, onUndo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.undo(); }, onRedo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.redo(); }, onDelete: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.delete(); } }), index.h("div", { key: '
|
|
3138
|
+
}, onUndo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.undo(); }, onRedo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.redo(); }, onDelete: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.delete(); } }), index.h("div", { key: '8fd6be09c6a9b794ab177d5082d5a1f29b0204fe', class: "kritzel-controls" }, this.controls.map(control => {
|
|
3132
3139
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3133
3140
|
if (control.type === 'tool') {
|
|
3134
3141
|
return (index.h("button", { class: {
|