kritzel-stencil 0.0.106 → 0.0.107
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 +51 -66
- package/dist/cjs/kritzel-brush-style_18.cjs.entry.js.map +1 -1
- package/dist/collection/classes/tools/text-tool.class.js +3 -0
- package/dist/collection/classes/tools/text-tool.class.js.map +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +1 -42
- 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 +2 -2
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/helpers/keyboard.helper.js +23 -0
- package/dist/collection/helpers/keyboard.helper.js.map +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-editor.js +13 -53
- package/dist/components/kritzel-editor.js.map +1 -1
- package/dist/components/kritzel-engine.js +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-BFlJumTk.js → p-BXJ8s30N.js} +8 -8
- package/dist/components/{p-BFlJumTk.js.map → p-BXJ8s30N.js.map} +1 -1
- package/dist/components/{p-CF5pcRGS.js → p-CPjl7Inl.js} +4 -4
- package/dist/components/{p-CF5pcRGS.js.map → p-CPjl7Inl.js.map} +1 -1
- package/dist/components/{p-BcQCX1Z6.js → p-CesjDLvT.js} +36 -3
- package/dist/components/p-CesjDLvT.js.map +1 -0
- package/dist/components/{p-D9nf_Yw4.js → p-CmckGlXt.js} +3 -3
- package/dist/components/{p-D9nf_Yw4.js.map → p-CmckGlXt.js.map} +1 -1
- package/dist/components/{p-Bhfk_puI.js → p-DFhbw-Fr.js} +4 -4
- package/dist/components/{p-Bhfk_puI.js.map → p-DFhbw-Fr.js.map} +1 -1
- package/dist/components/{p-wUZba7Vi.js → p-DHT5gK0E.js} +4 -4
- package/dist/components/{p-wUZba7Vi.js.map → p-DHT5gK0E.js.map} +1 -1
- package/dist/components/{p-9IX8ss5J.js → p-DInF8Iby.js} +6 -6
- package/dist/components/{p-9IX8ss5J.js.map → p-DInF8Iby.js.map} +1 -1
- package/dist/components/{p-DIxwvThL.js → p-DTcfnx4-.js} +14 -14
- package/dist/components/{p-DIxwvThL.js.map → p-DTcfnx4-.js.map} +1 -1
- package/dist/components/{p-B1tJ3Woq.js → p-Ddfewfv9.js} +3 -3
- package/dist/components/{p-B1tJ3Woq.js.map → p-Ddfewfv9.js.map} +1 -1
- package/dist/components/{p-I1jXruHK.js → p-DfMdBA8L.js} +4 -4
- package/dist/components/{p-I1jXruHK.js.map → p-DfMdBA8L.js.map} +1 -1
- package/dist/components/{p-CkPd1oL1.js → p-_3gCPfqz.js} +3 -11
- package/dist/components/{p-CkPd1oL1.js.map → p-_3gCPfqz.js.map} +1 -1
- package/dist/components/{p-JvUh5Cky.js → p-maiDeBe9.js} +7 -7
- package/dist/components/{p-JvUh5Cky.js.map → p-maiDeBe9.js.map} +1 -1
- package/dist/esm/kritzel-brush-style_18.entry.js +51 -66
- package/dist/esm/kritzel-brush-style_18.entry.js.map +1 -1
- package/dist/stencil/p-e596d004.entry.js +2 -0
- package/dist/stencil/p-e596d004.entry.js.map +1 -0
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/components/core/kritzel-editor/kritzel-editor.d.ts +1 -6
- package/dist/types/helpers/keyboard.helper.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/p-BcQCX1Z6.js.map +0 -1
- package/dist/stencil/p-7aaf3e49.entry.js +0 -2
- package/dist/stencil/p-7aaf3e49.entry.js.map +0 -1
|
@@ -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: '19ad3872a132c885c612dc3b96698a0c8dc7214d' }, index.h("div", { key: 'f67108e82396cbaa3d070c8dfc83da2b080ddf47', 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: '1af0cc3e9f6eebc04cae2367510ef3b98420a818', 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: '0f0d176e1c8b199a973dbdb23b84e4a8d4d57f59' }, index.h("div", { key: '1d4707cdb30752d21a5058dbbef5fb32934bd3bd', 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: '8e7930fcc093f7277ed088d8ec5e54e4cd051b86' }, index.h("div", { key: '08bd37b90decc9054c05d646aabbba0a4985d04c', 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: 'f79744fb6523d0b4fa67c324cbf8ff3eb8a0308d', type: this.tool.type, onTypeChange: event => this.handleTypeChange(event) }), index.h("button", { key: 'dc3bdd90cebb29f2357e13dbc8d2dcaf02ae056e', 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: '6e9e6de7fc7c708aad700498e030d2ad7364a9f3', name: this.isExpanded ? 'chevron-up' : 'chevron-down' }))), index.h("kritzel-color-palette", { key: 'c1ffd48a475754bb1447e9d866b494fd3476f050', colors: this.palette, selectedColor: this.tool.color, isExpanded: this.isExpanded, isOpaque: true, onColorChange: color => this.handleColorChange(color) }), index.h("kritzel-stroke-size", { key: '38e265b42fe09d0105e0385d7ec8e7d8d318abb0', 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: '27d47c47987fb7644313a4face4a7023dfbe454d' }, index.h("div", { key: '835b8072267da18b39a5c02a6c989e1f7b81e9a5', 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: 'b7a0bde2e9cf53c9ae7c3a32b424825ca9f757c4', selectedFontFamily: this.tool.fontFamily, onFontFamilyChange: event => this.handleFamilyChange(event) }), index.h("button", { key: '41aba583656195c4825a15ddc12c5e1efed0d8d2', class: "expand-toggle", onClick: () => this.handleToggleExpand(), title: this.isExpanded ? 'Collapse' : 'Expand' }, index.h("kritzel-icon", { key: '5ff979420066703b5d5e886d12f89687392006e3', name: this.isExpanded ? 'chevron-up' : 'chevron-down' }))), index.h("kritzel-color-palette", { key: '30fbcc05f80b15fba7f1f5ac6413732d0149ee9b', colors: this.tool.palette, selectedColor: this.tool.fontColor, isExpanded: this.isExpanded, onColorChange: event => this.handleColorChange(event) }), index.h("kritzel-font-size", { key: '2a0d3c4578316b37bc1a25b6e065ecf565eca2b3', selectedSize: this.tool.fontSize, fontFamily: this.tool.fontFamily, onSizeChange: event => this.handleSizeChange(event) })));
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
KritzelControlTextConfig.style = kritzelControlTextConfigCss;
|
|
@@ -936,6 +936,37 @@ class KritzelToolRegistry {
|
|
|
936
936
|
}
|
|
937
937
|
KritzelToolRegistry.registry = {};
|
|
938
938
|
|
|
939
|
+
class KritzelKeyboardHelper {
|
|
940
|
+
static forceHideKeyboard() {
|
|
941
|
+
if (document.activeElement instanceof HTMLElement) {
|
|
942
|
+
document.activeElement.blur();
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
static enableInteractiveWidget() {
|
|
946
|
+
const meta = document.querySelector('meta[name="viewport"][content*="interactive-widget=resizes-content"]');
|
|
947
|
+
if (meta) {
|
|
948
|
+
let currentContent = meta.getAttribute('content');
|
|
949
|
+
if (!currentContent.includes('interactive-widget=resizes-content')) {
|
|
950
|
+
currentContent += ', interactive-widget=resizes-content';
|
|
951
|
+
}
|
|
952
|
+
meta.setAttribute('content', currentContent);
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
static disableInteractiveWidget() {
|
|
956
|
+
const meta = document.querySelector('meta[name="viewport"][content*="interactive-widget=resizes-content"]');
|
|
957
|
+
if (meta) {
|
|
958
|
+
let currentContent = meta.getAttribute('content');
|
|
959
|
+
let newContent = currentContent.replace(/\s*interactive-widget=resizes-content\s*[,;]?/g, '');
|
|
960
|
+
newContent = newContent
|
|
961
|
+
.replace(/,(\s*,)+/g, ',')
|
|
962
|
+
.replace(/^,/, '')
|
|
963
|
+
.replace(/,$/, '')
|
|
964
|
+
.trim();
|
|
965
|
+
meta.setAttribute('content', newContent);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
939
970
|
class KritzelTextTool extends KritzelBaseTool {
|
|
940
971
|
constructor(store) {
|
|
941
972
|
super(store);
|
|
@@ -1018,6 +1049,7 @@ class KritzelTextTool extends KritzelBaseTool {
|
|
|
1018
1049
|
if (this._store.state.touchCount > 1) {
|
|
1019
1050
|
return;
|
|
1020
1051
|
}
|
|
1052
|
+
KritzelKeyboardHelper.disableInteractiveWidget();
|
|
1021
1053
|
const clientX = Math.round(event.touches[0].clientX - this._store.offsetX);
|
|
1022
1054
|
const clientY = Math.round(event.touches[0].clientY - this._store.offsetY);
|
|
1023
1055
|
const text = KritzelText.create(this._store, this.fontSize, this.fontFamily);
|
|
@@ -1032,6 +1064,7 @@ class KritzelTextTool extends KritzelBaseTool {
|
|
|
1032
1064
|
var _a, _b;
|
|
1033
1065
|
(_a = this._store.state.activeText) === null || _a === void 0 ? void 0 : _a.focus();
|
|
1034
1066
|
(_b = this._store.state.activeText) === null || _b === void 0 ? void 0 : _b.adjustTextareaSize();
|
|
1067
|
+
KritzelKeyboardHelper.enableInteractiveWidget();
|
|
1035
1068
|
}
|
|
1036
1069
|
}
|
|
1037
1070
|
|
|
@@ -1125,11 +1158,11 @@ const KritzelControls = class {
|
|
|
1125
1158
|
render() {
|
|
1126
1159
|
var _a, _b;
|
|
1127
1160
|
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;
|
|
1128
|
-
return (index.h(index.Host, { key: '
|
|
1161
|
+
return (index.h(index.Host, { key: '2b13783ef0f1638ad76bfcef22c17c3eeb849d67' }, index.h("kritzel-utility-panel", { key: '1babeb88133cebc9057c85723b812b99152316c6', style: {
|
|
1129
1162
|
position: 'absolute',
|
|
1130
1163
|
bottom: '56px',
|
|
1131
1164
|
left: '12px',
|
|
1132
|
-
}, 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: '
|
|
1165
|
+
}, 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: '8fafebdf6726dd2bffe85cb2b3ada5f4885a2bf8', class: "kritzel-controls" }, this.controls.map(control => {
|
|
1133
1166
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1134
1167
|
if (control.type === 'tool') {
|
|
1135
1168
|
return (index.h("button", { class: {
|
|
@@ -2812,7 +2845,6 @@ const KritzelEditor = class {
|
|
|
2812
2845
|
this.controls = DEFAULT_KRITZEL_CONTROLS;
|
|
2813
2846
|
this.customSvgIcons = {};
|
|
2814
2847
|
this.hideControls = false;
|
|
2815
|
-
this.text = null;
|
|
2816
2848
|
}
|
|
2817
2849
|
handleTouchStart(event) {
|
|
2818
2850
|
if (event.cancelable) {
|
|
@@ -2822,52 +2854,13 @@ const KritzelEditor = class {
|
|
|
2822
2854
|
componentWillLoad() {
|
|
2823
2855
|
this.registerCustomSvgIcons();
|
|
2824
2856
|
}
|
|
2825
|
-
addTextObject() {
|
|
2826
|
-
const obj = new KritzelText({
|
|
2827
|
-
translateX: 100,
|
|
2828
|
-
translateY: 100,
|
|
2829
|
-
width: 200,
|
|
2830
|
-
height: 50,
|
|
2831
|
-
value: 'New Text',
|
|
2832
|
-
fontSize: 16,
|
|
2833
|
-
fontFamily: 'Arial',
|
|
2834
|
-
fontColor: '#000000',
|
|
2835
|
-
scale: 1,
|
|
2836
|
-
});
|
|
2837
|
-
this.engineRef.addObject(obj).then((text) => this.text = text);
|
|
2838
|
-
}
|
|
2839
|
-
getTextObject() {
|
|
2840
|
-
var _a;
|
|
2841
|
-
this.engineRef.getObjectById(((_a = this.text) === null || _a === void 0 ? void 0 : _a.id) || '').then((object) => {
|
|
2842
|
-
console.log('Retrieved Text Object:', object);
|
|
2843
|
-
});
|
|
2844
|
-
}
|
|
2845
|
-
updateTextObject() {
|
|
2846
|
-
const updatedText = {
|
|
2847
|
-
value: 'Updated Text',
|
|
2848
|
-
translateX: 150,
|
|
2849
|
-
translateY: 150,
|
|
2850
|
-
rotation: Math.PI / 2
|
|
2851
|
-
};
|
|
2852
|
-
this.engineRef.updateObject(this.text, updatedText)
|
|
2853
|
-
.then((text) => {
|
|
2854
|
-
this.text = text;
|
|
2855
|
-
console.log('Updated Text Object:', text);
|
|
2856
|
-
});
|
|
2857
|
-
}
|
|
2858
|
-
removeTextObject() {
|
|
2859
|
-
this.engineRef.removeObject(this.text).then((text) => {
|
|
2860
|
-
console.log('Text Object removed', text);
|
|
2861
|
-
this.text = null;
|
|
2862
|
-
});
|
|
2863
|
-
}
|
|
2864
2857
|
registerCustomSvgIcons() {
|
|
2865
2858
|
for (const [name, svg] of Object.entries(this.customSvgIcons)) {
|
|
2866
2859
|
KritzelIconRegistry.register(name, svg);
|
|
2867
2860
|
}
|
|
2868
2861
|
}
|
|
2869
2862
|
render() {
|
|
2870
|
-
return (index.h(index.Host, { key: '
|
|
2863
|
+
return (index.h(index.Host, { key: 'f86e43f5b908d682ba2e20e55466dcdf9f128140' }, index.h("kritzel-engine", { key: '11d72009fd277ea4379b596d57aa2a1b19b9d6bd', ref: el => (this.engineRef = el) }), index.h("kritzel-controls", { key: '4a575354c9bf117b12db7deaafaffcdcb9461bc6', ref: el => (this.controlsRef = el), controls: this.controls, style: this.hideControls ? { display: 'none' } : { display: 'flex' } })));
|
|
2871
2864
|
}
|
|
2872
2865
|
get host() { return index.getElement(this); }
|
|
2873
2866
|
};
|
|
@@ -3650,14 +3643,6 @@ class KritzelKeyHandler extends KritzelBaseHandler {
|
|
|
3650
3643
|
}
|
|
3651
3644
|
}
|
|
3652
3645
|
|
|
3653
|
-
class KritzelKeyboardHelper {
|
|
3654
|
-
static forceHideKeyboard() {
|
|
3655
|
-
if (document.activeElement instanceof HTMLElement) {
|
|
3656
|
-
document.activeElement.blur();
|
|
3657
|
-
}
|
|
3658
|
-
}
|
|
3659
|
-
}
|
|
3660
|
-
|
|
3661
3646
|
class KritzelContextMenuHandler extends KritzelBaseHandler {
|
|
3662
3647
|
constructor(store, globalContextMenuItems, objectContextMenuItems) {
|
|
3663
3648
|
super(store);
|
|
@@ -4172,7 +4157,7 @@ const KritzelFont = class {
|
|
|
4172
4157
|
this.color = '#000000';
|
|
4173
4158
|
}
|
|
4174
4159
|
render() {
|
|
4175
|
-
return (index.h(index.Host, { key: '
|
|
4160
|
+
return (index.h(index.Host, { key: 'd0378237899c5641ae4354f3bffb14e3f8bafb59' }, index.h("div", { key: '1475a6ae39ffc97eb780b30c85015c22cecafa6e', class: "font-preview", style: {
|
|
4176
4161
|
fontFamily: this.fontFamily,
|
|
4177
4162
|
fontSize: `${this.size}px`,
|
|
4178
4163
|
color: this.color
|
|
@@ -4237,7 +4222,7 @@ const KritzelFontSize = class {
|
|
|
4237
4222
|
this.sizeChange.emit(size);
|
|
4238
4223
|
}
|
|
4239
4224
|
render() {
|
|
4240
|
-
return (index.h(index.Host, { key: '
|
|
4225
|
+
return (index.h(index.Host, { key: '1c09a403f1e8278d30b2675c3a6e17e12ec79afa' }, this.sizes.map(size => (index.h("div", { class: {
|
|
4241
4226
|
'size-container': true,
|
|
4242
4227
|
'selected': this.selectedSize === size,
|
|
4243
4228
|
}, onClick: () => this.handleSizeClick(size) }, index.h("kritzel-font", { fontFamily: this.fontFamily, size: size }))))));
|
|
@@ -4281,7 +4266,7 @@ const KritzelStrokeSize = class {
|
|
|
4281
4266
|
this.sizeChange.emit(size);
|
|
4282
4267
|
}
|
|
4283
4268
|
render() {
|
|
4284
|
-
return (index.h(index.Host, { key: '
|
|
4269
|
+
return (index.h(index.Host, { key: '2e2a4d38920e25e1e60788deabe4912b510d0b10' }, this.sizes.map(size => (index.h("div", { class: {
|
|
4285
4270
|
'size-container': true,
|
|
4286
4271
|
'selected': this.selectedSize === size,
|
|
4287
4272
|
}, onClick: () => this.handleSizeClick(size) }, index.h("kritzel-color", { value: '#000000', size: size }))))));
|
|
@@ -4330,23 +4315,23 @@ const KritzelTooltip = class {
|
|
|
4330
4315
|
}
|
|
4331
4316
|
}
|
|
4332
4317
|
render() {
|
|
4333
|
-
return (index.h(index.Host, { key: '
|
|
4318
|
+
return (index.h(index.Host, { key: '3161826337f6957d2e568f52cfe3f57d705af0ed', style: {
|
|
4334
4319
|
position: 'fixed',
|
|
4335
4320
|
zIndex: '9999',
|
|
4336
4321
|
transition: 'opacity 0.3s ease-in-out, transform 0.3s ease-in-out',
|
|
4337
4322
|
visibility: this.isVisible ? 'visible' : 'hidden',
|
|
4338
4323
|
left: !this.isMobileView ? `${this.positionX}px` : '50%',
|
|
4339
4324
|
marginBottom: `${this.offsetY + this.arrowSize}px`,
|
|
4340
|
-
} }, index.h("div", { key: '
|
|
4325
|
+
} }, index.h("div", { key: '12fc4bc05b7be756102ce3779c9be1d51f3fe13b', class: "tooltip-content", onClick: event => event.stopPropagation() }, index.h("slot", { key: '90f645f8f7cec371aaeda7207a9fb420b02b2ae4' }), index.h("div", { key: '73380e2c6df22bc4a97479a52315e7b34d069fa1', class: "tooltip-arrow-wrapper", style: {
|
|
4341
4326
|
position: 'fixed',
|
|
4342
4327
|
left: this.arrowOffset,
|
|
4343
4328
|
bottom: `-${this.arrowSize * 2}px`,
|
|
4344
|
-
} }, index.h("div", { key: '
|
|
4329
|
+
} }, index.h("div", { key: '2e13cb01a3282e161d3212f4970a93b20ca1a0fe', class: "tooltip-arrow", style: {
|
|
4345
4330
|
borderLeft: `${this.arrowSize}px solid transparent`,
|
|
4346
4331
|
borderRight: `${this.arrowSize}px solid transparent`,
|
|
4347
4332
|
borderTop: `${this.arrowSize}px solid var(--kritzel-controls-tooltip-background-color, #ffffff)`,
|
|
4348
4333
|
filter: 'drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2))',
|
|
4349
|
-
} }), index.h("div", { key: '
|
|
4334
|
+
} }), index.h("div", { key: '30ddbd00b928c0c734656d6309eaefbae5baf264', class: "tooltip-arrow-rect", style: {
|
|
4350
4335
|
position: 'relative',
|
|
4351
4336
|
width: `${this.arrowSize * 2}px`,
|
|
4352
4337
|
height: `${this.arrowSize}px`,
|
|
@@ -4380,7 +4365,7 @@ const KritzelUtilityPanel = class {
|
|
|
4380
4365
|
this.redo.emit();
|
|
4381
4366
|
}
|
|
4382
4367
|
render() {
|
|
4383
|
-
return (index.h(index.Host, { key: '
|
|
4368
|
+
return (index.h(index.Host, { key: '496ed78323c9899ad363e7f7732a1464d99e1b3b' }, index.h("button", { key: '7b6b9cd238a8d254f032d5752f184d567e9a3096', class: "utility-button", onClick: event => this.handleUndo(event) }, index.h("kritzel-icon", { key: '8ac19f36c6b82f7cc4a0249e60cf429f75c09218', name: "undo" })), index.h("button", { key: '1164727510a968356042507c1e302b85a135baf8', class: "utility-button", onClick: event => this.handleRedo(event) }, index.h("kritzel-icon", { key: '1c6cc414d5841a06853f99316eee7a0a609d5c92', name: "redo" })), index.h("div", { key: 'e6f3342569b1c6b5a6b267cc215bc8e5d259e302', class: "utility-separator" }), index.h("button", { key: '0aa486a543df924c224f3637857cdcdb06f995ea', class: "utility-button" }, index.h("kritzel-icon", { key: '9ee324e03f5df5297916549743539f7f19950768', name: "delete", onClick: () => this.delete.emit() }))));
|
|
4384
4369
|
}
|
|
4385
4370
|
};
|
|
4386
4371
|
KritzelUtilityPanel.style = kritzelUtilityPanelCss;
|