kritzel-stencil 0.0.76 → 0.0.78
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/index-BUKRdCPx.js +2 -6
- package/dist/cjs/{kritzel-brush-style_18.cjs.entry.js → kritzel-brush-style_19.cjs.entry.js} +76 -60
- package/dist/cjs/kritzel-brush-style_19.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/stencil.cjs.js +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +18 -2
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +4 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js.map +1 -1
- package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +4 -4
- package/dist/collection/components/ui/kritzel-control-brush-config/kritzel-control-brush-config.js +2 -2
- package/dist/collection/components/ui/kritzel-control-text-config/kritzel-control-text-config.js +2 -2
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +42 -41
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js.map +1 -1
- package/dist/collection/components/ui/kritzel-dummy/kritzel-dummy.js +1 -1
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-control-brush-config.js +1 -1
- package/dist/components/kritzel-control-text-config.js +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-dummy.js +1 -28
- package/dist/components/kritzel-dummy.js.map +1 -1
- package/dist/components/kritzel-editor.js +35 -26
- package/dist/components/kritzel-editor.js.map +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/p-9_JiL_wH.js +33 -0
- package/dist/components/p-9_JiL_wH.js.map +1 -0
- package/dist/components/{p-Dd-jVt1z.js → p-B17z0dHf.js} +4 -4
- package/dist/components/{p-Dd-jVt1z.js.map → p-B17z0dHf.js.map} +1 -1
- package/dist/components/{p-CtzUAFH7.js → p-BfOHORuS.js} +8 -8
- package/dist/components/{p-CtzUAFH7.js.map → p-BfOHORuS.js.map} +1 -1
- package/dist/components/{p-CW800wxH.js → p-BzT7WSFX.js} +7 -7
- package/dist/components/{p-CW800wxH.js.map → p-BzT7WSFX.js.map} +1 -1
- package/dist/components/{p-RyhiTey9.js → p-C25_uk1W.js} +4 -4
- package/dist/components/{p-RyhiTey9.js.map → p-C25_uk1W.js.map} +1 -1
- package/dist/components/{p-ub68lkC1.js → p-CCcFfkWG.js} +3 -3
- package/dist/components/{p-ub68lkC1.js.map → p-CCcFfkWG.js.map} +1 -1
- package/dist/components/{p-D4WPb8MT.js → p-Clp62syd.js} +4 -4
- package/dist/components/{p-D4WPb8MT.js.map → p-Clp62syd.js.map} +1 -1
- package/dist/components/{p-DzVQltWB.js → p-CmwVLwvI.js} +53 -52
- package/dist/components/p-CmwVLwvI.js.map +1 -0
- package/dist/components/{p-DkKI-ulw.js → p-DBL15JoO.js} +3 -3
- package/dist/components/{p-DkKI-ulw.js.map → p-DBL15JoO.js.map} +1 -1
- package/dist/components/{p-CwiXaI-9.js → p-DqnnZDDT.js} +4 -4
- package/dist/components/{p-CwiXaI-9.js.map → p-DqnnZDDT.js.map} +1 -1
- package/dist/components/{p-Vgp7wvdA.js → p-rxaqUiJC.js} +6 -6
- package/dist/components/{p-Vgp7wvdA.js.map → p-rxaqUiJC.js.map} +1 -1
- package/dist/esm/index-CvjcGi0O.js +2 -6
- package/dist/esm/{kritzel-brush-style_18.entry.js → kritzel-brush-style_19.entry.js} +76 -61
- package/dist/esm/kritzel-brush-style_19.entry.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/stencil.js +1 -1
- package/dist/stencil/p-400de083.entry.js +2 -0
- package/dist/stencil/p-400de083.entry.js.map +1 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/components/ui/kritzel-controls/kritzel-controls.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/kritzel-brush-style_18.cjs.entry.js.map +0 -1
- package/dist/cjs/kritzel-dummy.cjs.entry.js +0 -20
- package/dist/cjs/kritzel-dummy.cjs.entry.js.map +0 -1
- package/dist/cjs/kritzel-dummy.entry.cjs.js.map +0 -1
- package/dist/components/p-DzVQltWB.js.map +0 -1
- package/dist/esm/kritzel-brush-style_18.entry.js.map +0 -1
- package/dist/esm/kritzel-dummy.entry.js +0 -18
- package/dist/esm/kritzel-dummy.entry.js.map +0 -1
- package/dist/stencil/kritzel-dummy.entry.esm.js.map +0 -1
- package/dist/stencil/p-1f3fc9e2.entry.js +0 -2
- package/dist/stencil/p-1f3fc9e2.entry.js.map +0 -1
- package/dist/stencil/p-37925d25.entry.js +0 -2
- package/dist/stencil/p-37925d25.entry.js.map +0 -1
|
@@ -90,14 +90,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
90
90
|
}
|
|
91
91
|
switch(bundleId) {
|
|
92
92
|
|
|
93
|
-
case 'kritzel-
|
|
93
|
+
case 'kritzel-brush-style_19.cjs':
|
|
94
94
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
95
95
|
/* webpackMode: "lazy" */
|
|
96
|
-
'./kritzel-
|
|
97
|
-
case 'kritzel-brush-style_18.cjs':
|
|
98
|
-
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
99
|
-
/* webpackMode: "lazy" */
|
|
100
|
-
'./kritzel-brush-style_18.cjs.entry.js')); }).then(processMod, consoleError);
|
|
96
|
+
'./kritzel-brush-style_19.cjs.entry.js')); }).then(processMod, consoleError);
|
|
101
97
|
}
|
|
102
98
|
}
|
|
103
99
|
return (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(
|
package/dist/cjs/{kritzel-brush-style_18.cjs.entry.js → kritzel-brush-style_19.cjs.entry.js}
RENAMED
|
@@ -60,13 +60,13 @@ const KritzelColor = class {
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
const isColorVeryLight = this.isLightColor(this.value);
|
|
63
|
-
return (index.h(index.Host, { key: '
|
|
63
|
+
return (index.h(index.Host, { key: '6771c3aac90292a82070af08b995fdf297061bc1' }, index.h("div", { key: '4bb3e10fee1566db56f8a727dc858351e8a4184f', class: "checkerboard-bg", style: {
|
|
64
64
|
width: `${this.size}px`,
|
|
65
65
|
height: `${this.size}px`,
|
|
66
66
|
borderRadius: '50%',
|
|
67
67
|
display: 'inline-block',
|
|
68
68
|
position: 'relative',
|
|
69
|
-
} }, index.h("div", { key: '
|
|
69
|
+
} }, index.h("div", { key: '290f49b17b686482057d3492752217e35af85d81', class: {
|
|
70
70
|
'color-circle': true,
|
|
71
71
|
'white': isColorVeryLight,
|
|
72
72
|
}, style: {
|
|
@@ -108,7 +108,7 @@ const KritzelColorPalette = class {
|
|
|
108
108
|
render() {
|
|
109
109
|
const displayedColors = this.isExpanded ? this.colors : this.colors.slice(0, 6);
|
|
110
110
|
const expandedHeight = this.isExpanded ? this.calculateHeight() : '32px';
|
|
111
|
-
return (index.h(index.Host, { key: '
|
|
111
|
+
return (index.h(index.Host, { key: 'e3e89140f833e336a3e0c299c1e9c9d4cad21fdb' }, index.h("div", { key: '019b62ab59cf468fc497ba0f6b429b844bcc4584', class: {
|
|
112
112
|
'color-grid': true,
|
|
113
113
|
'expanded': this.isExpanded,
|
|
114
114
|
}, style: {
|
|
@@ -175,14 +175,14 @@ const KritzelControlBrushConfig = class {
|
|
|
175
175
|
this.toolChange.emit(this.tool);
|
|
176
176
|
}
|
|
177
177
|
render() {
|
|
178
|
-
return (index.h(index.Host, { key: '
|
|
178
|
+
return (index.h(index.Host, { key: '57c18e06633951d2d82006d5b28cf863e9414bf4' }, index.h("div", { key: '6e4666f8efb3f1c9f1b1c8362119d2eababcc314', style: {
|
|
179
179
|
display: 'flex',
|
|
180
180
|
flexDirection: 'row',
|
|
181
181
|
alignItems: 'center',
|
|
182
182
|
justifyContent: 'flex-start',
|
|
183
183
|
width: '100%',
|
|
184
184
|
gap: '8px',
|
|
185
|
-
} }, index.h("kritzel-brush-style", { key: '
|
|
185
|
+
} }, index.h("kritzel-brush-style", { key: 'b52b7f8d0a64c0f973fbfbf35aad04c4b17b2b57', type: this.tool.type, onTypeChange: event => this.handleTypeChange(event) }), index.h("button", { key: 'e74f649d44e94e45668aa335935e4c3e05888a85', class: "expand-toggle", onClick: () => this.handleToggleExpand(), title: this.isExpanded ? 'Collapse' : 'Expand', style: this.palette.length > 6 ? { visibillity: 'visible' } : { visibility: 'hidden' } }, index.h("kritzel-icon", { key: '457c7b47b45ac62e696e69459b9674d8679e6736', name: this.isExpanded ? 'chevron-up' : 'chevron-down' }))), index.h("kritzel-color-palette", { key: '3914791059ff9215c082315a4c52170b88cb0908', colors: this.palette, selectedColor: this.tool.color, isExpanded: this.isExpanded, isOpaque: true, onColorChange: color => this.handleColorChange(color) }), index.h("kritzel-stroke-size", { key: '51e8a2080cf27e08b060f099ed4696b352e3d10c', selectedSize: this.tool.size, onSizeChange: event => this.handleSizeChange(event) })));
|
|
186
186
|
}
|
|
187
187
|
static get watchers() { return {
|
|
188
188
|
"tool": ["handleToolChange"]
|
|
@@ -214,14 +214,14 @@ const KritzelControlTextConfig = class {
|
|
|
214
214
|
this.toolChange.emit(this.tool);
|
|
215
215
|
}
|
|
216
216
|
render() {
|
|
217
|
-
return (index.h(index.Host, { key: '
|
|
217
|
+
return (index.h(index.Host, { key: 'dd94cc7171046d9683c5e320a2fef2c5598d6e2a' }, index.h("div", { key: 'c19e1cddc78ffa51e1117db01edc83e89db51158', style: {
|
|
218
218
|
display: 'flex',
|
|
219
219
|
flexDirection: 'row',
|
|
220
220
|
alignItems: 'center',
|
|
221
221
|
justifyContent: 'flex-start',
|
|
222
222
|
width: '100%',
|
|
223
223
|
gap: '8px',
|
|
224
|
-
} }, index.h("kritzel-font-family", { key: '
|
|
224
|
+
} }, index.h("kritzel-font-family", { key: '17dc46439b2e578da30a04551dfa5a47e0fd6328', selectedFontFamily: this.tool.fontFamily, onFontFamilyChange: event => this.handleFamilyChange(event) }), index.h("button", { key: '412b5b812c63d9c067ae43042a457185b8e6af48', class: "expand-toggle", onClick: () => this.handleToggleExpand(), title: this.isExpanded ? 'Collapse' : 'Expand' }, index.h("kritzel-icon", { key: '6b9d098076145e4bb7b500f782baf9df713b666a', name: this.isExpanded ? 'chevron-up' : 'chevron-down' }))), index.h("kritzel-color-palette", { key: '6f58506e220ec54c1c934e38e65bc30d52bfb406', colors: this.tool.palette, selectedColor: this.tool.fontColor, isExpanded: this.isExpanded, onColorChange: event => this.handleColorChange(event) }), index.h("kritzel-font-size", { key: '2d595ab0d6abb342503ad00e439efa577e3f1f49', selectedSize: this.tool.fontSize, fontFamily: this.tool.fontFamily, onSizeChange: event => this.handleSizeChange(event) })));
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
KritzelControlTextConfig.style = kritzelControlTextConfigCss;
|
|
@@ -3057,45 +3057,46 @@ const KritzelControls = class {
|
|
|
3057
3057
|
var _a;
|
|
3058
3058
|
return (_a = this.activeControl) === null || _a === void 0 ? void 0 : _a.tool;
|
|
3059
3059
|
}
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3060
|
+
async componentDidLoad() {
|
|
3061
|
+
console.log('KritzelControls componentDidLoad');
|
|
3062
|
+
this.forceUpdate++;
|
|
3063
|
+
this.controlsReady.emit();
|
|
3064
|
+
this.initializeEngine().then(() => {
|
|
3065
|
+
this.initializeTools()
|
|
3066
|
+
.then(() => {
|
|
3067
|
+
console.info('KritzelControls initialized with tools:', this.controls);
|
|
3068
|
+
this.forceUpdate++;
|
|
3069
|
+
})
|
|
3070
|
+
.catch(error => {
|
|
3071
|
+
console.error('Error initializing tools:', error);
|
|
3072
|
+
});
|
|
3073
|
+
});
|
|
3074
|
+
}
|
|
3075
|
+
async initializeEngine() {
|
|
3076
|
+
this.kritzelEngine = this.host.parentElement.querySelector('kritzel-engine');
|
|
3077
|
+
if (!this.kritzelEngine) {
|
|
3078
|
+
throw new Error('kritzel-engine not found in parent element.');
|
|
3079
|
+
}
|
|
3080
|
+
}
|
|
3081
|
+
async initializeTools() {
|
|
3082
|
+
for (const c of this.controls) {
|
|
3083
|
+
if (c.type === 'tool' && c.tool) {
|
|
3084
|
+
c.tool = await this.kritzelEngine.registerTool(c.name, c.tool, c.config);
|
|
3085
|
+
}
|
|
3086
|
+
if (c.type === 'tool' && c.isDefault && c.tool) {
|
|
3087
|
+
await this.kritzelEngine.changeActiveTool(c.tool);
|
|
3088
|
+
this.activeControl = c;
|
|
3089
|
+
}
|
|
3090
|
+
if (c.type === 'config') {
|
|
3091
|
+
if (this.firstConfig === null) {
|
|
3092
|
+
this.firstConfig = c;
|
|
3093
|
+
}
|
|
3094
|
+
else {
|
|
3095
|
+
console.warn('Only one config control is allowed. The first one will be used.');
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3099
3100
|
async handleActiveToolChange(event) {
|
|
3100
3101
|
var _a;
|
|
3101
3102
|
this.activeControl = this.controls.find(control => control.tool === event.detail) || null;
|
|
@@ -3133,11 +3134,11 @@ const KritzelControls = class {
|
|
|
3133
3134
|
render() {
|
|
3134
3135
|
var _a, _b;
|
|
3135
3136
|
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;
|
|
3136
|
-
return (index.h(index.Host, { key: '
|
|
3137
|
+
return (index.h(index.Host, { key: 'b2ccafa0e74d1a036f1bfd0fb994bd5aa746401d' }, index.h("kritzel-utility-panel", { key: '585a8058b22015956b11df13614e8acf721be969', style: {
|
|
3137
3138
|
position: 'absolute',
|
|
3138
3139
|
bottom: '56px',
|
|
3139
3140
|
left: '12px',
|
|
3140
|
-
}, 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: '
|
|
3141
|
+
}, 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: '56238089b382ba65f6951ee841bdb1cd36159b31', class: "kritzel-controls" }, this.controls.map(control => {
|
|
3141
3142
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3142
3143
|
if (control.type === 'tool') {
|
|
3143
3144
|
return (index.h("button", { class: {
|
|
@@ -3353,6 +3354,18 @@ const KritzelDropdown = class {
|
|
|
3353
3354
|
};
|
|
3354
3355
|
KritzelDropdown.style = kritzelDropdownCss;
|
|
3355
3356
|
|
|
3357
|
+
const kritzelDummyCss = ":host{display:block}";
|
|
3358
|
+
|
|
3359
|
+
const KritzelDummy = class {
|
|
3360
|
+
constructor(hostRef) {
|
|
3361
|
+
index.registerInstance(this, hostRef);
|
|
3362
|
+
}
|
|
3363
|
+
render() {
|
|
3364
|
+
return (index.h(index.Host, { key: 'aff3d5d844af503ead3cd02a1a62f26c885587ef' }, "Dummy Component Works!"));
|
|
3365
|
+
}
|
|
3366
|
+
};
|
|
3367
|
+
KritzelDummy.style = kritzelDummyCss;
|
|
3368
|
+
|
|
3356
3369
|
class KritzelIconRegistry {
|
|
3357
3370
|
static register(name, svgContent) {
|
|
3358
3371
|
if (this.registry.has(name)) {
|
|
@@ -4792,7 +4805,7 @@ const DEFAULT_KRITZEL_CONTROLS = [
|
|
|
4792
4805
|
},
|
|
4793
4806
|
];
|
|
4794
4807
|
|
|
4795
|
-
const kritzelEditorCss = "
|
|
4808
|
+
const kritzelEditorCss = ":host{display:flex;margin:0;position:relative;overflow:hidden;width:100%;height:100%;align-items:center;justify-content:center;touch-action:manipulation;user-select:none;--kritzel-primary-color:blue;--kritzel-selection-box-background-color:rgba(0, 0, 255, 0.2);--kritzel-selection-box-border-color:rgba(0, 0, 255, 0.5);--kritzel-selection-border-color:var(--kritzel-primary-color);--kritzel-selection-border-width:2px;--kritzel-selection-border-style:solid;--kritzel-selection-handle-size:6px;--kritzel-selection-handle-color:#000000;--kritzel-context-menu-background-color:#ffffff;--kritzel-context-menu-border-radius:8px;--kritzel-context-menu-box-shadow:0 1px 6px rgba(0, 0, 0, 0.12);--kritzel-context-menu-border:1px solid hsl(0, 0%, 0%, 4.3%);--kritzel-context-menu-padding:4px;--kritzel-context-menu-item-gap:8px;--kritzel-context-menu-item-padding:8px;--kritzel-context-menu-item-border-radius:8px;--kritzel-context-menu-item-color:#333333;--kritzel-context-menu-item-font-size:14px;--kritzel-context-menu-item-hover-background-color:hsl(0, 0%, 0%, 4.3%);--kritzel-context-menu-item-active-background-color:hsl(0, 0%, 0%, 8.6%);--kritzel-context-menu-item-disabled-color:#aaaaaa;--kritzel-controls-box-shadow:0 0 3px rgba(0, 0, 0, 0.08);--kritzel-controls-border:1px solid hsl(0, 0%, 0%, 4.3%);--kritzel-controls-border-radius:8px;--kritzel-controls-background-color:#ffffff;--kritzel-controls-padding:8px;--kritzel-controls-gap:8px;--kritzel-controls-control-color:#000;--kritzel-controls-control-border-radius:8px;--kritzel-controls-control-padding:8px;--kritzel-controls-control-hover-background-color:hsl(0, 0%, 0%, 4.3%);--kritzel-controls-control-active-background-color:hsl(0, 0%, 0%, 8.6%);--kritzel-controls-control-selected-background-color:var(--kritzel-primary-color);--kritzel-controls-control-selected-color:#ffffff;--kritzel-controls-divider-width:1px;--kritzel-controls-divider-height:24px;--kritzel-controls-divider-background-color:hsl(0, 0%, 0%, 4.3%);--kritzel-controls-tooltip-background-color:#fff;--kritzel-controls-tooltip-color:#000;--kritzel-controls-tooltip-border-radius:8px;--kritzel-controls-tooltip-padding:8px;--kritzel-controls-tooltip-box-shadow:0 1px 6px rgba(0, 0, 0, 0.12);--kritzel-color-palette-hover-background-color:#f0f0f0;--kritzel-color-palette-circle-border-color:#dddcdc;--kritzel-color-palette-selected-border-color:var(--kritzel-primary-color);--kritzel-color-palette-selected-background-color:#f0f0f0;--kritzel-color-palette-expand-toggle-color:#666;--kritzel-color-palette-expand-toggle-hover-color:#333;--kritzel-stroke-size-hover-background-color:#f0f0f0;--kritzel-stroke-size-selected-border-color:var(--kritzel-primary-color);--kritzel-stroke-size-selected-background-color:#f0f0f0;--kritzel-stroke-size-circle-color:#000;--kritzel-cursor-trail-color:rgb(228, 228, 228);--kritzel-cursor-trail-opacity:0.6;--kritzel-engine-background-color:#ffffff}.dummy-top{position:absolute;left:50%;transform:translateX(-50%);top:16px;z-index:1}.dummy-bottom{position:absolute;left:50%;transform:translateX(-50%);bottom:16px;z-index:1}kritzel-controls{position:absolute;left:50%;transform:translateX(-50%);bottom:16px}";
|
|
4796
4809
|
|
|
4797
4810
|
const KritzelEditor = class {
|
|
4798
4811
|
constructor(hostRef) {
|
|
@@ -4829,7 +4842,9 @@ const KritzelEditor = class {
|
|
|
4829
4842
|
}
|
|
4830
4843
|
}
|
|
4831
4844
|
render() {
|
|
4832
|
-
return (index.h(index.Host, { key: '
|
|
4845
|
+
return (index.h(index.Host, { key: '37e291c25a636b65cc751799cfe57de216a14990' }, index.h("kritzel-dummy", { key: '5b3b3e9c6baf1885a85f749f674ca257fa9f109e', class: "dummy-top" }), index.h("kritzel-engine", { key: '11ec65ad0858d842c472b829667c1be7086d92b1', onEngineReady: () => this.handleEngineReady() }), index.h("kritzel-dummy", { key: 'c3e3586692f5f8340aa34cd8b04e7ac1fbd7401b', class: "dummy-bottom" }), index.h("kritzel-controls", { key: '3f999492eeabe6e3179027753138099d387aa541', controls: this.controls, onControlsReady: () => this.handleControlsReady(), style: {
|
|
4846
|
+
visibility: 'hidden'
|
|
4847
|
+
} })));
|
|
4833
4848
|
}
|
|
4834
4849
|
};
|
|
4835
4850
|
KritzelEditor.style = kritzelEditorCss;
|
|
@@ -6078,7 +6093,7 @@ const KritzelFont = class {
|
|
|
6078
6093
|
this.color = '#000000';
|
|
6079
6094
|
}
|
|
6080
6095
|
render() {
|
|
6081
|
-
return (index.h(index.Host, { key: '
|
|
6096
|
+
return (index.h(index.Host, { key: '4e952fbcaea52c332a72cda1ba6fc060696aa107' }, index.h("div", { key: 'db371b9552eceb53470b2bbd964c9c31578bb7e1', class: "font-preview", style: {
|
|
6082
6097
|
fontFamily: this.fontFamily,
|
|
6083
6098
|
fontSize: `${this.size}px`,
|
|
6084
6099
|
color: this.color
|
|
@@ -6143,7 +6158,7 @@ const KritzelFontSize = class {
|
|
|
6143
6158
|
this.sizeChange.emit(size);
|
|
6144
6159
|
}
|
|
6145
6160
|
render() {
|
|
6146
|
-
return (index.h(index.Host, { key: '
|
|
6161
|
+
return (index.h(index.Host, { key: '2cd69fb4d291f46121f2f05acd44153d4fe51801' }, this.sizes.map(size => (index.h("div", { class: {
|
|
6147
6162
|
'size-container': true,
|
|
6148
6163
|
'selected': this.selectedSize === size,
|
|
6149
6164
|
}, onClick: () => this.handleSizeClick(size) }, index.h("kritzel-font", { fontFamily: this.fontFamily, size: size }))))));
|
|
@@ -6187,7 +6202,7 @@ const KritzelStrokeSize = class {
|
|
|
6187
6202
|
this.sizeChange.emit(size);
|
|
6188
6203
|
}
|
|
6189
6204
|
render() {
|
|
6190
|
-
return (index.h(index.Host, { key: '
|
|
6205
|
+
return (index.h(index.Host, { key: '9738591d397c522c72d9744bbb7e0ff7f6976175' }, this.sizes.map(size => (index.h("div", { class: {
|
|
6191
6206
|
'size-container': true,
|
|
6192
6207
|
'selected': this.selectedSize === size,
|
|
6193
6208
|
}, onClick: () => this.handleSizeClick(size) }, index.h("kritzel-color", { value: '#000000', size: size }))))));
|
|
@@ -6236,23 +6251,23 @@ const KritzelTooltip = class {
|
|
|
6236
6251
|
}
|
|
6237
6252
|
}
|
|
6238
6253
|
render() {
|
|
6239
|
-
return (index.h(index.Host, { key: '
|
|
6254
|
+
return (index.h(index.Host, { key: 'a8c55d66efd76aeea390e7a5bdb05dbdb1e35bd2', style: {
|
|
6240
6255
|
position: 'fixed',
|
|
6241
6256
|
zIndex: '9999',
|
|
6242
6257
|
transition: 'opacity 0.3s ease-in-out, transform 0.3s ease-in-out',
|
|
6243
6258
|
visibility: this.isVisible ? 'visible' : 'hidden',
|
|
6244
6259
|
left: !this.isMobileView ? `${this.positionX}px` : '50%',
|
|
6245
6260
|
marginBottom: `${this.offsetY + this.arrowSize}px`,
|
|
6246
|
-
} }, index.h("div", { key: '
|
|
6261
|
+
} }, index.h("div", { key: '5d3ad02c4885e9ee3dc55a7358357bb224ae102e', class: "tooltip-content", onClick: event => event.stopPropagation() }, index.h("slot", { key: '767fb0dbf8fa9a63d184f601d28536fbff677a02' }), index.h("div", { key: '30c0bdd69f56cab6b94fb0f4290de370d990c500', class: "tooltip-arrow-wrapper", style: {
|
|
6247
6262
|
position: 'fixed',
|
|
6248
6263
|
left: this.arrowOffset,
|
|
6249
6264
|
bottom: `-${this.arrowSize * 2}px`,
|
|
6250
|
-
} }, index.h("div", { key: '
|
|
6265
|
+
} }, index.h("div", { key: '2d2197a52e69477308ae7591446b4ca20635e0bc', class: "tooltip-arrow", style: {
|
|
6251
6266
|
borderLeft: `${this.arrowSize}px solid transparent`,
|
|
6252
6267
|
borderRight: `${this.arrowSize}px solid transparent`,
|
|
6253
6268
|
borderTop: `${this.arrowSize}px solid var(--kritzel-controls-tooltip-background-color)`,
|
|
6254
6269
|
filter: 'drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2))',
|
|
6255
|
-
} }), index.h("div", { key: '
|
|
6270
|
+
} }), index.h("div", { key: 'fa932ba1b6b242455c85fbf13b51c58c53ad3e9a', class: "tooltip-arrow-rect", style: {
|
|
6256
6271
|
position: 'relative',
|
|
6257
6272
|
width: `${this.arrowSize * 2}px`,
|
|
6258
6273
|
height: `${this.arrowSize}px`,
|
|
@@ -6286,7 +6301,7 @@ const KritzelUtilityPanel = class {
|
|
|
6286
6301
|
this.redo.emit();
|
|
6287
6302
|
}
|
|
6288
6303
|
render() {
|
|
6289
|
-
return (index.h(index.Host, { key: '
|
|
6304
|
+
return (index.h(index.Host, { key: '41a059b44da75d93169ad9c3ab9e7094a178ce6a' }, index.h("button", { key: 'cb6ce47be3b7b8efa863658b45339c084c006558', class: "utility-button", onClick: event => this.handleUndo(event) }, index.h("kritzel-icon", { key: '2cd0e214a354603a0b6d3c5a20414e5592b57c72', name: "undo" })), index.h("button", { key: '3a2c931d270d1173603722eb6f0be7450905225d', class: "utility-button", onClick: event => this.handleRedo(event) }, index.h("kritzel-icon", { key: '647ee8f80f8ee7991278ae09c824c2d41939b799', name: "redo" })), index.h("div", { key: 'cc8aab4de10a3c7997e8b65682fa5fed4a0e9ee7', class: "utility-separator" }), index.h("button", { key: '8e1f513af08407fafc4d2cfe48dc781120942ebd', class: "utility-button" }, index.h("kritzel-icon", { key: '4758c3bdcbb2a273424982ce4c1a05575199c130', name: "delete", onClick: () => this.delete.emit() }))));
|
|
6290
6305
|
}
|
|
6291
6306
|
};
|
|
6292
6307
|
KritzelUtilityPanel.style = kritzelUtilityPanelCss;
|
|
@@ -6300,6 +6315,7 @@ exports.kritzel_control_text_config = KritzelControlTextConfig;
|
|
|
6300
6315
|
exports.kritzel_controls = KritzelControls;
|
|
6301
6316
|
exports.kritzel_cursor_trail = KritzelCursorTrail;
|
|
6302
6317
|
exports.kritzel_dropdown = KritzelDropdown;
|
|
6318
|
+
exports.kritzel_dummy = KritzelDummy;
|
|
6303
6319
|
exports.kritzel_editor = KritzelEditor;
|
|
6304
6320
|
exports.kritzel_engine = KritzelEngine;
|
|
6305
6321
|
exports.kritzel_font = KritzelFont;
|
|
@@ -6309,6 +6325,6 @@ exports.kritzel_icon = KritzelIcon;
|
|
|
6309
6325
|
exports.kritzel_stroke_size = KritzelStrokeSize;
|
|
6310
6326
|
exports.kritzel_tooltip = KritzelTooltip;
|
|
6311
6327
|
exports.kritzel_utility_panel = KritzelUtilityPanel;
|
|
6312
|
-
//# sourceMappingURL=kritzel-brush-style.kritzel-color.kritzel-color-palette.kritzel-context-menu.kritzel-control-brush-config.kritzel-control-text-config.kritzel-controls.kritzel-cursor-trail.kritzel-dropdown.kritzel-editor.kritzel-engine.kritzel-font.kritzel-font-family.kritzel-font-size.kritzel-icon.kritzel-stroke-size.kritzel-tooltip.kritzel-utility-panel.entry.cjs.js.map
|
|
6328
|
+
//# sourceMappingURL=kritzel-brush-style.kritzel-color.kritzel-color-palette.kritzel-context-menu.kritzel-control-brush-config.kritzel-control-text-config.kritzel-controls.kritzel-cursor-trail.kritzel-dropdown.kritzel-dummy.kritzel-editor.kritzel-engine.kritzel-font.kritzel-font-family.kritzel-font-size.kritzel-icon.kritzel-stroke-size.kritzel-tooltip.kritzel-utility-panel.entry.cjs.js.map
|
|
6313
6329
|
|
|
6314
|
-
//# sourceMappingURL=kritzel-brush-
|
|
6330
|
+
//# sourceMappingURL=kritzel-brush-style_19.cjs.entry.js.map
|