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
|
@@ -58,13 +58,13 @@ const KritzelColor = class {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
const isColorVeryLight = this.isLightColor(this.value);
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '6771c3aac90292a82070af08b995fdf297061bc1' }, h("div", { key: '4bb3e10fee1566db56f8a727dc858351e8a4184f', class: "checkerboard-bg", style: {
|
|
62
62
|
width: `${this.size}px`,
|
|
63
63
|
height: `${this.size}px`,
|
|
64
64
|
borderRadius: '50%',
|
|
65
65
|
display: 'inline-block',
|
|
66
66
|
position: 'relative',
|
|
67
|
-
} }, h("div", { key: '
|
|
67
|
+
} }, h("div", { key: '290f49b17b686482057d3492752217e35af85d81', class: {
|
|
68
68
|
'color-circle': true,
|
|
69
69
|
'white': isColorVeryLight,
|
|
70
70
|
}, style: {
|
|
@@ -106,7 +106,7 @@ const KritzelColorPalette = class {
|
|
|
106
106
|
render() {
|
|
107
107
|
const displayedColors = this.isExpanded ? this.colors : this.colors.slice(0, 6);
|
|
108
108
|
const expandedHeight = this.isExpanded ? this.calculateHeight() : '32px';
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: 'e3e89140f833e336a3e0c299c1e9c9d4cad21fdb' }, h("div", { key: '019b62ab59cf468fc497ba0f6b429b844bcc4584', class: {
|
|
110
110
|
'color-grid': true,
|
|
111
111
|
'expanded': this.isExpanded,
|
|
112
112
|
}, style: {
|
|
@@ -173,14 +173,14 @@ const KritzelControlBrushConfig = class {
|
|
|
173
173
|
this.toolChange.emit(this.tool);
|
|
174
174
|
}
|
|
175
175
|
render() {
|
|
176
|
-
return (h(Host, { key: '
|
|
176
|
+
return (h(Host, { key: '57c18e06633951d2d82006d5b28cf863e9414bf4' }, h("div", { key: '6e4666f8efb3f1c9f1b1c8362119d2eababcc314', style: {
|
|
177
177
|
display: 'flex',
|
|
178
178
|
flexDirection: 'row',
|
|
179
179
|
alignItems: 'center',
|
|
180
180
|
justifyContent: 'flex-start',
|
|
181
181
|
width: '100%',
|
|
182
182
|
gap: '8px',
|
|
183
|
-
} }, h("kritzel-brush-style", { key: '
|
|
183
|
+
} }, h("kritzel-brush-style", { key: 'b52b7f8d0a64c0f973fbfbf35aad04c4b17b2b57', type: this.tool.type, onTypeChange: event => this.handleTypeChange(event) }), h("button", { key: 'e74f649d44e94e45668aa335935e4c3e05888a85', class: "expand-toggle", onClick: () => this.handleToggleExpand(), title: this.isExpanded ? 'Collapse' : 'Expand', style: this.palette.length > 6 ? { visibillity: 'visible' } : { visibility: 'hidden' } }, h("kritzel-icon", { key: '457c7b47b45ac62e696e69459b9674d8679e6736', name: this.isExpanded ? 'chevron-up' : 'chevron-down' }))), h("kritzel-color-palette", { key: '3914791059ff9215c082315a4c52170b88cb0908', colors: this.palette, selectedColor: this.tool.color, isExpanded: this.isExpanded, isOpaque: true, onColorChange: color => this.handleColorChange(color) }), h("kritzel-stroke-size", { key: '51e8a2080cf27e08b060f099ed4696b352e3d10c', selectedSize: this.tool.size, onSizeChange: event => this.handleSizeChange(event) })));
|
|
184
184
|
}
|
|
185
185
|
static get watchers() { return {
|
|
186
186
|
"tool": ["handleToolChange"]
|
|
@@ -212,14 +212,14 @@ const KritzelControlTextConfig = class {
|
|
|
212
212
|
this.toolChange.emit(this.tool);
|
|
213
213
|
}
|
|
214
214
|
render() {
|
|
215
|
-
return (h(Host, { key: '
|
|
215
|
+
return (h(Host, { key: 'dd94cc7171046d9683c5e320a2fef2c5598d6e2a' }, h("div", { key: 'c19e1cddc78ffa51e1117db01edc83e89db51158', style: {
|
|
216
216
|
display: 'flex',
|
|
217
217
|
flexDirection: 'row',
|
|
218
218
|
alignItems: 'center',
|
|
219
219
|
justifyContent: 'flex-start',
|
|
220
220
|
width: '100%',
|
|
221
221
|
gap: '8px',
|
|
222
|
-
} }, h("kritzel-font-family", { key: '
|
|
222
|
+
} }, h("kritzel-font-family", { key: '17dc46439b2e578da30a04551dfa5a47e0fd6328', selectedFontFamily: this.tool.fontFamily, onFontFamilyChange: event => this.handleFamilyChange(event) }), h("button", { key: '412b5b812c63d9c067ae43042a457185b8e6af48', class: "expand-toggle", onClick: () => this.handleToggleExpand(), title: this.isExpanded ? 'Collapse' : 'Expand' }, h("kritzel-icon", { key: '6b9d098076145e4bb7b500f782baf9df713b666a', name: this.isExpanded ? 'chevron-up' : 'chevron-down' }))), h("kritzel-color-palette", { key: '6f58506e220ec54c1c934e38e65bc30d52bfb406', colors: this.tool.palette, selectedColor: this.tool.fontColor, isExpanded: this.isExpanded, onColorChange: event => this.handleColorChange(event) }), h("kritzel-font-size", { key: '2d595ab0d6abb342503ad00e439efa577e3f1f49', selectedSize: this.tool.fontSize, fontFamily: this.tool.fontFamily, onSizeChange: event => this.handleSizeChange(event) })));
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
KritzelControlTextConfig.style = kritzelControlTextConfigCss;
|
|
@@ -3055,45 +3055,46 @@ const KritzelControls = class {
|
|
|
3055
3055
|
var _a;
|
|
3056
3056
|
return (_a = this.activeControl) === null || _a === void 0 ? void 0 : _a.tool;
|
|
3057
3057
|
}
|
|
3058
|
-
|
|
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
|
-
|
|
3058
|
+
async componentDidLoad() {
|
|
3059
|
+
console.log('KritzelControls componentDidLoad');
|
|
3060
|
+
this.forceUpdate++;
|
|
3061
|
+
this.controlsReady.emit();
|
|
3062
|
+
this.initializeEngine().then(() => {
|
|
3063
|
+
this.initializeTools()
|
|
3064
|
+
.then(() => {
|
|
3065
|
+
console.info('KritzelControls initialized with tools:', this.controls);
|
|
3066
|
+
this.forceUpdate++;
|
|
3067
|
+
})
|
|
3068
|
+
.catch(error => {
|
|
3069
|
+
console.error('Error initializing tools:', error);
|
|
3070
|
+
});
|
|
3071
|
+
});
|
|
3072
|
+
}
|
|
3073
|
+
async initializeEngine() {
|
|
3074
|
+
this.kritzelEngine = this.host.parentElement.querySelector('kritzel-engine');
|
|
3075
|
+
if (!this.kritzelEngine) {
|
|
3076
|
+
throw new Error('kritzel-engine not found in parent element.');
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
async initializeTools() {
|
|
3080
|
+
for (const c of this.controls) {
|
|
3081
|
+
if (c.type === 'tool' && c.tool) {
|
|
3082
|
+
c.tool = await this.kritzelEngine.registerTool(c.name, c.tool, c.config);
|
|
3083
|
+
}
|
|
3084
|
+
if (c.type === 'tool' && c.isDefault && c.tool) {
|
|
3085
|
+
await this.kritzelEngine.changeActiveTool(c.tool);
|
|
3086
|
+
this.activeControl = c;
|
|
3087
|
+
}
|
|
3088
|
+
if (c.type === 'config') {
|
|
3089
|
+
if (this.firstConfig === null) {
|
|
3090
|
+
this.firstConfig = c;
|
|
3091
|
+
}
|
|
3092
|
+
else {
|
|
3093
|
+
console.warn('Only one config control is allowed. The first one will be used.');
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3097
3098
|
async handleActiveToolChange(event) {
|
|
3098
3099
|
var _a;
|
|
3099
3100
|
this.activeControl = this.controls.find(control => control.tool === event.detail) || null;
|
|
@@ -3131,11 +3132,11 @@ const KritzelControls = class {
|
|
|
3131
3132
|
render() {
|
|
3132
3133
|
var _a, _b;
|
|
3133
3134
|
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;
|
|
3134
|
-
return (h(Host, { key: '
|
|
3135
|
+
return (h(Host, { key: 'b2ccafa0e74d1a036f1bfd0fb994bd5aa746401d' }, h("kritzel-utility-panel", { key: '585a8058b22015956b11df13614e8acf721be969', style: {
|
|
3135
3136
|
position: 'absolute',
|
|
3136
3137
|
bottom: '56px',
|
|
3137
3138
|
left: '12px',
|
|
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(); } }), h("div", { key: '
|
|
3139
|
+
}, 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(); } }), h("div", { key: '56238089b382ba65f6951ee841bdb1cd36159b31', class: "kritzel-controls" }, this.controls.map(control => {
|
|
3139
3140
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3140
3141
|
if (control.type === 'tool') {
|
|
3141
3142
|
return (h("button", { class: {
|
|
@@ -3351,6 +3352,18 @@ const KritzelDropdown = class {
|
|
|
3351
3352
|
};
|
|
3352
3353
|
KritzelDropdown.style = kritzelDropdownCss;
|
|
3353
3354
|
|
|
3355
|
+
const kritzelDummyCss = ":host{display:block}";
|
|
3356
|
+
|
|
3357
|
+
const KritzelDummy = class {
|
|
3358
|
+
constructor(hostRef) {
|
|
3359
|
+
registerInstance(this, hostRef);
|
|
3360
|
+
}
|
|
3361
|
+
render() {
|
|
3362
|
+
return (h(Host, { key: 'aff3d5d844af503ead3cd02a1a62f26c885587ef' }, "Dummy Component Works!"));
|
|
3363
|
+
}
|
|
3364
|
+
};
|
|
3365
|
+
KritzelDummy.style = kritzelDummyCss;
|
|
3366
|
+
|
|
3354
3367
|
class KritzelIconRegistry {
|
|
3355
3368
|
static register(name, svgContent) {
|
|
3356
3369
|
if (this.registry.has(name)) {
|
|
@@ -4790,7 +4803,7 @@ const DEFAULT_KRITZEL_CONTROLS = [
|
|
|
4790
4803
|
},
|
|
4791
4804
|
];
|
|
4792
4805
|
|
|
4793
|
-
const kritzelEditorCss = "
|
|
4806
|
+
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}";
|
|
4794
4807
|
|
|
4795
4808
|
const KritzelEditor = class {
|
|
4796
4809
|
constructor(hostRef) {
|
|
@@ -4827,7 +4840,9 @@ const KritzelEditor = class {
|
|
|
4827
4840
|
}
|
|
4828
4841
|
}
|
|
4829
4842
|
render() {
|
|
4830
|
-
return (h(Host, { key: '
|
|
4843
|
+
return (h(Host, { key: '37e291c25a636b65cc751799cfe57de216a14990' }, h("kritzel-dummy", { key: '5b3b3e9c6baf1885a85f749f674ca257fa9f109e', class: "dummy-top" }), h("kritzel-engine", { key: '11ec65ad0858d842c472b829667c1be7086d92b1', onEngineReady: () => this.handleEngineReady() }), h("kritzel-dummy", { key: 'c3e3586692f5f8340aa34cd8b04e7ac1fbd7401b', class: "dummy-bottom" }), h("kritzel-controls", { key: '3f999492eeabe6e3179027753138099d387aa541', controls: this.controls, onControlsReady: () => this.handleControlsReady(), style: {
|
|
4844
|
+
visibility: 'hidden'
|
|
4845
|
+
} })));
|
|
4831
4846
|
}
|
|
4832
4847
|
};
|
|
4833
4848
|
KritzelEditor.style = kritzelEditorCss;
|
|
@@ -6076,7 +6091,7 @@ const KritzelFont = class {
|
|
|
6076
6091
|
this.color = '#000000';
|
|
6077
6092
|
}
|
|
6078
6093
|
render() {
|
|
6079
|
-
return (h(Host, { key: '
|
|
6094
|
+
return (h(Host, { key: '4e952fbcaea52c332a72cda1ba6fc060696aa107' }, h("div", { key: 'db371b9552eceb53470b2bbd964c9c31578bb7e1', class: "font-preview", style: {
|
|
6080
6095
|
fontFamily: this.fontFamily,
|
|
6081
6096
|
fontSize: `${this.size}px`,
|
|
6082
6097
|
color: this.color
|
|
@@ -6141,7 +6156,7 @@ const KritzelFontSize = class {
|
|
|
6141
6156
|
this.sizeChange.emit(size);
|
|
6142
6157
|
}
|
|
6143
6158
|
render() {
|
|
6144
|
-
return (h(Host, { key: '
|
|
6159
|
+
return (h(Host, { key: '2cd69fb4d291f46121f2f05acd44153d4fe51801' }, this.sizes.map(size => (h("div", { class: {
|
|
6145
6160
|
'size-container': true,
|
|
6146
6161
|
'selected': this.selectedSize === size,
|
|
6147
6162
|
}, onClick: () => this.handleSizeClick(size) }, h("kritzel-font", { fontFamily: this.fontFamily, size: size }))))));
|
|
@@ -6185,7 +6200,7 @@ const KritzelStrokeSize = class {
|
|
|
6185
6200
|
this.sizeChange.emit(size);
|
|
6186
6201
|
}
|
|
6187
6202
|
render() {
|
|
6188
|
-
return (h(Host, { key: '
|
|
6203
|
+
return (h(Host, { key: '9738591d397c522c72d9744bbb7e0ff7f6976175' }, this.sizes.map(size => (h("div", { class: {
|
|
6189
6204
|
'size-container': true,
|
|
6190
6205
|
'selected': this.selectedSize === size,
|
|
6191
6206
|
}, onClick: () => this.handleSizeClick(size) }, h("kritzel-color", { value: '#000000', size: size }))))));
|
|
@@ -6234,23 +6249,23 @@ const KritzelTooltip = class {
|
|
|
6234
6249
|
}
|
|
6235
6250
|
}
|
|
6236
6251
|
render() {
|
|
6237
|
-
return (h(Host, { key: '
|
|
6252
|
+
return (h(Host, { key: 'a8c55d66efd76aeea390e7a5bdb05dbdb1e35bd2', style: {
|
|
6238
6253
|
position: 'fixed',
|
|
6239
6254
|
zIndex: '9999',
|
|
6240
6255
|
transition: 'opacity 0.3s ease-in-out, transform 0.3s ease-in-out',
|
|
6241
6256
|
visibility: this.isVisible ? 'visible' : 'hidden',
|
|
6242
6257
|
left: !this.isMobileView ? `${this.positionX}px` : '50%',
|
|
6243
6258
|
marginBottom: `${this.offsetY + this.arrowSize}px`,
|
|
6244
|
-
} }, h("div", { key: '
|
|
6259
|
+
} }, h("div", { key: '5d3ad02c4885e9ee3dc55a7358357bb224ae102e', class: "tooltip-content", onClick: event => event.stopPropagation() }, h("slot", { key: '767fb0dbf8fa9a63d184f601d28536fbff677a02' }), h("div", { key: '30c0bdd69f56cab6b94fb0f4290de370d990c500', class: "tooltip-arrow-wrapper", style: {
|
|
6245
6260
|
position: 'fixed',
|
|
6246
6261
|
left: this.arrowOffset,
|
|
6247
6262
|
bottom: `-${this.arrowSize * 2}px`,
|
|
6248
|
-
} }, h("div", { key: '
|
|
6263
|
+
} }, h("div", { key: '2d2197a52e69477308ae7591446b4ca20635e0bc', class: "tooltip-arrow", style: {
|
|
6249
6264
|
borderLeft: `${this.arrowSize}px solid transparent`,
|
|
6250
6265
|
borderRight: `${this.arrowSize}px solid transparent`,
|
|
6251
6266
|
borderTop: `${this.arrowSize}px solid var(--kritzel-controls-tooltip-background-color)`,
|
|
6252
6267
|
filter: 'drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2))',
|
|
6253
|
-
} }), h("div", { key: '
|
|
6268
|
+
} }), h("div", { key: 'fa932ba1b6b242455c85fbf13b51c58c53ad3e9a', class: "tooltip-arrow-rect", style: {
|
|
6254
6269
|
position: 'relative',
|
|
6255
6270
|
width: `${this.arrowSize * 2}px`,
|
|
6256
6271
|
height: `${this.arrowSize}px`,
|
|
@@ -6284,12 +6299,12 @@ const KritzelUtilityPanel = class {
|
|
|
6284
6299
|
this.redo.emit();
|
|
6285
6300
|
}
|
|
6286
6301
|
render() {
|
|
6287
|
-
return (h(Host, { key: '
|
|
6302
|
+
return (h(Host, { key: '41a059b44da75d93169ad9c3ab9e7094a178ce6a' }, h("button", { key: 'cb6ce47be3b7b8efa863658b45339c084c006558', class: "utility-button", onClick: event => this.handleUndo(event) }, h("kritzel-icon", { key: '2cd0e214a354603a0b6d3c5a20414e5592b57c72', name: "undo" })), h("button", { key: '3a2c931d270d1173603722eb6f0be7450905225d', class: "utility-button", onClick: event => this.handleRedo(event) }, h("kritzel-icon", { key: '647ee8f80f8ee7991278ae09c824c2d41939b799', name: "redo" })), h("div", { key: 'cc8aab4de10a3c7997e8b65682fa5fed4a0e9ee7', class: "utility-separator" }), h("button", { key: '8e1f513af08407fafc4d2cfe48dc781120942ebd', class: "utility-button" }, h("kritzel-icon", { key: '4758c3bdcbb2a273424982ce4c1a05575199c130', name: "delete", onClick: () => this.delete.emit() }))));
|
|
6288
6303
|
}
|
|
6289
6304
|
};
|
|
6290
6305
|
KritzelUtilityPanel.style = kritzelUtilityPanelCss;
|
|
6291
6306
|
|
|
6292
|
-
export { KritzelBrushStyle as kritzel_brush_style, KritzelColor as kritzel_color, KritzelColorPalette as kritzel_color_palette, KritzelContextMenu as kritzel_context_menu, KritzelControlBrushConfig as kritzel_control_brush_config, KritzelControlTextConfig as kritzel_control_text_config, KritzelControls as kritzel_controls, KritzelCursorTrail as kritzel_cursor_trail, KritzelDropdown as kritzel_dropdown, KritzelEditor as kritzel_editor, KritzelEngine as kritzel_engine, KritzelFont as kritzel_font, KritzelFontFamily as kritzel_font_family, KritzelFontSize as kritzel_font_size, KritzelIcon as kritzel_icon, KritzelStrokeSize as kritzel_stroke_size, KritzelTooltip as kritzel_tooltip, KritzelUtilityPanel as kritzel_utility_panel };
|
|
6293
|
-
//# 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.js.map
|
|
6307
|
+
export { KritzelBrushStyle as kritzel_brush_style, KritzelColor as kritzel_color, KritzelColorPalette as kritzel_color_palette, KritzelContextMenu as kritzel_context_menu, KritzelControlBrushConfig as kritzel_control_brush_config, KritzelControlTextConfig as kritzel_control_text_config, KritzelControls as kritzel_controls, KritzelCursorTrail as kritzel_cursor_trail, KritzelDropdown as kritzel_dropdown, KritzelDummy as kritzel_dummy, KritzelEditor as kritzel_editor, KritzelEngine as kritzel_engine, KritzelFont as kritzel_font, KritzelFontFamily as kritzel_font_family, KritzelFontSize as kritzel_font_size, KritzelIcon as kritzel_icon, KritzelStrokeSize as kritzel_stroke_size, KritzelTooltip as kritzel_tooltip, KritzelUtilityPanel as kritzel_utility_panel };
|
|
6308
|
+
//# 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.js.map
|
|
6294
6309
|
|
|
6295
|
-
//# sourceMappingURL=kritzel-brush-
|
|
6310
|
+
//# sourceMappingURL=kritzel-brush-style_19.entry.js.map
|