kritzel-stencil 0.4.30 → 0.4.31
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/LICENSE +21 -21
- package/LICENSE.md +49 -49
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_46.cjs.entry.js +112 -112
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
- package/dist/cjs/{schema.constants-CcvqL5nJ.js → schema.constants-0ySX0cg3.js} +6 -6
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
- package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
- package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +160 -160
- package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +18 -18
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +80 -80
- package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +21 -21
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.css +29 -29
- package/dist/collection/components/core/kritzel-watermark/kritzel-watermark.js +2 -2
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
- package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
- package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
- package/dist/collection/components/shared/kritzel-button/kritzel-button.css +73 -73
- package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
- package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
- package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
- package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
- package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +209 -209
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
- package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
- package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
- package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
- package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +2 -2
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
- package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
- package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
- package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
- package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
- package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
- package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
- package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +166 -166
- package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
- package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
- package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +68 -68
- package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
- package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
- package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
- package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
- package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
- package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
- package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
- package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
- package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
- package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +112 -112
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +331 -331
- package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +6 -6
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
- package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +39 -39
- package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
- package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.css +54 -54
- package/dist/collection/components/ui/kritzel-loading-overlay/kritzel-loading-overlay.js +1 -1
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
- package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +58 -58
- package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
- package/dist/collection/components/ui/kritzel-notification-card/kritzel-notification-card.css +101 -101
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +137 -137
- package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +150 -150
- package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
- package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
- package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
- package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +16 -16
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.css +72 -72
- package/dist/collection/components/ui/kritzel-zoom-panel/kritzel-zoom-panel.js +1 -1
- package/dist/collection/constants/version.js +1 -1
- package/dist/collection/helpers/cursor.helper.js +6 -6
- package/dist/collection/helpers/svg-export.helper.js +41 -41
- package/dist/components/index.js +2 -2
- package/dist/components/kritzel-active-users.js +1 -1
- package/dist/components/kritzel-avatar.js +1 -1
- package/dist/components/kritzel-awareness-cursors.js +1 -1
- package/dist/components/kritzel-back-to-content.js +1 -1
- package/dist/components/kritzel-brush-style.js +2 -2
- package/dist/components/kritzel-button.js +1 -1
- package/dist/components/kritzel-color-palette.js +1 -1
- package/dist/components/kritzel-color.js +1 -1
- package/dist/components/kritzel-controls.js +1 -1
- package/dist/components/kritzel-current-user-dialog.js +1 -1
- package/dist/components/kritzel-current-user.js +1 -1
- package/dist/components/kritzel-cursor-trail.js +1 -1
- package/dist/components/kritzel-dialog.js +1 -1
- package/dist/components/kritzel-dropdown.js +1 -1
- package/dist/components/kritzel-editor.js +51 -51
- package/dist/components/kritzel-engine.js +1 -1
- package/dist/components/kritzel-export.js +1 -1
- package/dist/components/kritzel-font-family.js +1 -1
- package/dist/components/kritzel-font-size.js +1 -1
- package/dist/components/kritzel-font.js +1 -1
- package/dist/components/kritzel-input.js +1 -1
- package/dist/components/kritzel-line-endings.js +1 -1
- package/dist/components/kritzel-loading-overlay.js +1 -1
- package/dist/components/kritzel-login-dialog.js +1 -1
- package/dist/components/kritzel-master-detail.js +1 -1
- package/dist/components/kritzel-menu-item.js +1 -1
- package/dist/components/kritzel-menu.js +1 -1
- package/dist/components/kritzel-more-menu.js +1 -1
- package/dist/components/kritzel-numeric-input.js +1 -1
- package/dist/components/kritzel-opacity-slider.js +1 -1
- package/dist/components/kritzel-pill-tabs.js +1 -1
- package/dist/components/kritzel-portal.js +1 -1
- package/dist/components/kritzel-settings.js +1 -1
- package/dist/components/kritzel-shape-fill.js +1 -1
- package/dist/components/kritzel-share-dialog.js +1 -1
- package/dist/components/kritzel-slide-toggle.js +1 -1
- package/dist/components/kritzel-split-button.js +1 -1
- package/dist/components/kritzel-stroke-size.js +1 -1
- package/dist/components/kritzel-tool-config.js +1 -1
- package/dist/components/kritzel-tooltip.js +1 -1
- package/dist/components/kritzel-utility-panel.js +1 -1
- package/dist/components/kritzel-watermark.js +1 -1
- package/dist/components/kritzel-workspace-manager.js +1 -1
- package/dist/components/kritzel-zoom-panel.js +1 -1
- package/dist/components/{p-DTB3ykgO.js → p-B65Z2K81.js} +1 -1
- package/dist/components/{p-4uoSa0Xl.js → p-B6cwfdo3.js} +2 -2
- package/dist/components/{p-ChPs27Fd.js → p-BBA9F6Bi.js} +4 -4
- package/dist/components/{p-Dvn6ad4a.js → p-BCrNNQKI.js} +1 -1
- package/dist/components/{p-CoXN583u.js → p-BGJ-1pXX.js} +3 -3
- package/dist/components/{p-CBrn5AIB.js → p-BTRiw0VC.js} +1 -1
- package/dist/components/{p-DoxFuOy1.js → p-Bu6TjCs0.js} +2 -2
- package/dist/components/{p-Ce1j1-Hg.js → p-BvpI1eL4.js} +3 -3
- package/dist/components/{p-CAXR5-S9.js → p-BwC3bHai.js} +4 -4
- package/dist/components/{p-DX2nriaq.js → p-C2NV0SgA.js} +1 -1
- package/dist/components/{p-BPzdPKWE.js → p-CAGey5Xt.js} +3 -3
- package/dist/components/{p-C0FEC_gS.js → p-C_4J10HD.js} +2 -2
- package/dist/components/{p-NOWtUeeQ.js → p-C_fBqaep.js} +1 -1
- package/dist/components/{p-Ba0c-tu2.js → p-CzibK3BJ.js} +2 -2
- package/dist/components/{p-Cm33td2O.js → p-D0SKmg_J.js} +1 -1
- package/dist/components/{p-OUl5CA4Y.js → p-D497dAd-.js} +1 -1
- package/dist/components/{p-BmBebQMI.js → p-DC7noKZD.js} +7 -7
- package/dist/components/{p-CXpv9Rxe.js → p-DGcug5rp.js} +2 -2
- package/dist/components/{p-DkHYY72B.js → p-DIE74Wkf.js} +2 -2
- package/dist/components/{p-DOTdJ3JQ.js → p-DKkQMbfN.js} +3 -3
- package/dist/components/{p-DnmVD1Mz.js → p-DKuxmP3T.js} +2 -2
- package/dist/components/{p-bAacqNHq.js → p-DQX5iqJB.js} +2 -2
- package/dist/components/{p-DUmLsjKb.js → p-DTzNzE9j.js} +1 -1
- package/dist/components/{p-Df3BwVGy.js → p-D_XWdMC3.js} +2 -2
- package/dist/components/{p-B38_9BJg.js → p-Da56LiC2.js} +1 -1
- package/dist/components/{p-CeffYwAK.js → p-DaE8xcJ8.js} +19 -19
- package/dist/components/{p-CYwoBiqy.js → p-DcG-UAoL.js} +50 -50
- package/dist/components/{p-BeSKOETx.js → p-Dm6TZsys.js} +2 -2
- package/dist/components/{p-DhabvHJM.js → p-DuyNKEne.js} +3 -3
- package/dist/components/{p-DFMZEarE.js → p-DyWg1f0y.js} +1 -1
- package/dist/components/{p-DN9p3G9K.js → p-FDwfHj3U.js} +3 -3
- package/dist/components/{p-DK0anxtL.js → p-P70dtHet.js} +1 -1
- package/dist/components/{p-CucCT7Qn.js → p-R6NeY_RA.js} +2 -2
- package/dist/components/{p-BFYtCsZu.js → p-XOXeNvvd.js} +2 -2
- package/dist/components/{p-jIKskj3S.js → p-ZwkkxMNZ.js} +1 -1
- package/dist/components/{p-BprEDRpA.js → p-auUCvUOc.js} +2 -2
- package/dist/components/{p-D0Ed8epW.js → p-b5XSApfh.js} +4 -4
- package/dist/components/{p-djJSnjAX.js → p-fp1y_eAN.js} +2 -2
- package/dist/components/{p-Dpm75DfV.js → p-mCRS0Vii.js} +5 -5
- package/dist/components/{p-DOl-95VY.js → p-ml3LLPFB.js} +10 -10
- package/dist/components/{p-D_cyY7Nd.js → p-xFCFDper.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/kritzel-active-users_46.entry.js +112 -112
- package/dist/esm/kritzel-brush-style.entry.js +1 -1
- package/dist/esm/{schema.constants-De_S50eB.js → schema.constants-D3OqvrMh.js} +6 -6
- package/dist/stencil/index.esm.js +2 -2
- package/dist/stencil/{p-1a398b42.entry.js → p-307b09bd.entry.js} +112 -112
- package/dist/stencil/{p-fb32cd8f.entry.js → p-905f7ab4.entry.js} +1 -1
- package/dist/stencil/{p-De_S50eB.js → p-D3OqvrMh.js} +6 -6
- package/dist/stencil/stencil.esm.js +1 -1
- package/dist/types/constants/version.d.ts +1 -1
- package/package.json +2 -1
- package/readme.md +10 -10
|
@@ -23,7 +23,7 @@ const KritzelBrushStyle = class {
|
|
|
23
23
|
value: option.value,
|
|
24
24
|
label: option.label,
|
|
25
25
|
}));
|
|
26
|
-
return (index.h(index.Host, { key: '
|
|
26
|
+
return (index.h(index.Host, { key: '51a7f84685032fd8fc967b22bee7c0711e811a54' }, index.h("kritzel-dropdown", { key: 'e49d7062c695458d345738d88a0adfc96b575e61', options: dropdownOptions, value: this.type, onValueChanged: event => this.handleDropdownValueChange(event) }, index.h("button", { key: 'ebbbf1a55b89e91012ca44c5cf30acfb77332b50', class: "brush-style-button", slot: "prefix" }, index.h("kritzel-icon", { key: 'dae002c9ab5e3486c726202426eb076a8f33b109', name: this.type, size: 16 })))));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
KritzelBrushStyle.style = kritzelBrushStyleCss();
|
|
@@ -22880,12 +22880,12 @@ class KritzelCursorHelper {
|
|
|
22880
22880
|
// We rotate around the center of the SVG canvas
|
|
22881
22881
|
const center = size / 2;
|
|
22882
22882
|
// We use a group to apply the rotation
|
|
22883
|
-
const svg = `
|
|
22884
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 ${size} ${size}">
|
|
22885
|
-
<g transform="rotate(${rotation} ${center} ${center})">
|
|
22886
|
-
${content}
|
|
22887
|
-
</g>
|
|
22888
|
-
</svg>
|
|
22883
|
+
const svg = `
|
|
22884
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="${size}" height="${size}" viewBox="0 0 ${size} ${size}">
|
|
22885
|
+
<g transform="rotate(${rotation} ${center} ${center})">
|
|
22886
|
+
${content}
|
|
22887
|
+
</g>
|
|
22888
|
+
</svg>
|
|
22889
22889
|
`;
|
|
22890
22890
|
// Encode the SVG for use in a data URI
|
|
22891
22891
|
// We need to be careful with encoding to ensure it works across browsers
|
package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
width: 100vw;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
pointer-events: none;
|
|
9
|
-
z-index: 1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.awareness-cursor {
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
left: 0;
|
|
16
|
-
transition: transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
17
|
-
opacity 300ms ease;
|
|
18
|
-
will-change: transform;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.awareness-cursor.stale {
|
|
22
|
-
opacity: 0;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.awareness-cursor.tracking-object {
|
|
26
|
-
transition-duration: 0ms;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.cursor-arrow {
|
|
30
|
-
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.cursor-label {
|
|
34
|
-
position: absolute;
|
|
35
|
-
left: 16px;
|
|
36
|
-
top: 16px;
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
39
|
-
font-size: var(--kritzel-awareness-cursor-label-font-size, 12px);
|
|
40
|
-
color: var(--kritzel-awareness-cursor-label-text-color, #ffffff);
|
|
41
|
-
padding: 2px 8px;
|
|
42
|
-
border-radius: 4px;
|
|
43
|
-
line-height: 1.4;
|
|
44
|
-
font-weight: 500;
|
|
45
|
-
pointer-events: none;
|
|
46
|
-
user-select: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.edge-indicator {
|
|
50
|
-
position: absolute;
|
|
51
|
-
top: -12px;
|
|
52
|
-
left: -12px;
|
|
53
|
-
width: 24px;
|
|
54
|
-
height: 24px;
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
justify-content: center;
|
|
58
|
-
transition: transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
59
|
-
opacity 300ms ease;
|
|
60
|
-
will-change: transform;
|
|
61
|
-
pointer-events: auto;
|
|
62
|
-
user-select: none;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.edge-indicator.stale {
|
|
67
|
-
opacity: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.edge-indicator.tracking-object {
|
|
71
|
-
transition-duration: 0ms;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.edge-arrow {
|
|
75
|
-
position: absolute;
|
|
76
|
-
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
|
|
77
|
-
transition: opacity 300ms ease;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.edge-arrow.stale {
|
|
81
|
-
opacity: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.edge-label {
|
|
85
|
-
position: absolute;
|
|
86
|
-
white-space: nowrap;
|
|
87
|
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
88
|
-
font-size: var(--kritzel-awareness-cursor-label-font-size, 12px);
|
|
89
|
-
color: var(--kritzel-awareness-cursor-label-text-color, #ffffff);
|
|
90
|
-
padding: 2px 8px;
|
|
91
|
-
border-radius: 4px;
|
|
92
|
-
line-height: 1.4;
|
|
93
|
-
font-weight: 500;
|
|
94
|
-
pointer-events: none;
|
|
95
|
-
opacity: 0;
|
|
96
|
-
transform-origin: center;
|
|
97
|
-
transition: opacity 150ms ease;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.edge-indicator:hover .edge-label {
|
|
101
|
-
opacity: 1;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.remote-selection-box {
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 0;
|
|
107
|
-
left: 0;
|
|
108
|
-
border-width: 2px;
|
|
109
|
-
border-style: solid;
|
|
110
|
-
pointer-events: none;
|
|
111
|
-
will-change: transform, width, height;
|
|
112
|
-
transition: transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
113
|
-
width var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
114
|
-
height var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out;
|
|
115
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
width: 100vw;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
z-index: 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.awareness-cursor {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
transition: transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
17
|
+
opacity 300ms ease;
|
|
18
|
+
will-change: transform;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.awareness-cursor.stale {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.awareness-cursor.tracking-object {
|
|
26
|
+
transition-duration: 0ms;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cursor-arrow {
|
|
30
|
+
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.cursor-label {
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 16px;
|
|
36
|
+
top: 16px;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
39
|
+
font-size: var(--kritzel-awareness-cursor-label-font-size, 12px);
|
|
40
|
+
color: var(--kritzel-awareness-cursor-label-text-color, #ffffff);
|
|
41
|
+
padding: 2px 8px;
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
line-height: 1.4;
|
|
44
|
+
font-weight: 500;
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
user-select: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.edge-indicator {
|
|
50
|
+
position: absolute;
|
|
51
|
+
top: -12px;
|
|
52
|
+
left: -12px;
|
|
53
|
+
width: 24px;
|
|
54
|
+
height: 24px;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
transition: transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
59
|
+
opacity 300ms ease;
|
|
60
|
+
will-change: transform;
|
|
61
|
+
pointer-events: auto;
|
|
62
|
+
user-select: none;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.edge-indicator.stale {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.edge-indicator.tracking-object {
|
|
71
|
+
transition-duration: 0ms;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.edge-arrow {
|
|
75
|
+
position: absolute;
|
|
76
|
+
filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
|
|
77
|
+
transition: opacity 300ms ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.edge-arrow.stale {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.edge-label {
|
|
85
|
+
position: absolute;
|
|
86
|
+
white-space: nowrap;
|
|
87
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
88
|
+
font-size: var(--kritzel-awareness-cursor-label-font-size, 12px);
|
|
89
|
+
color: var(--kritzel-awareness-cursor-label-text-color, #ffffff);
|
|
90
|
+
padding: 2px 8px;
|
|
91
|
+
border-radius: 4px;
|
|
92
|
+
line-height: 1.4;
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
transform-origin: center;
|
|
97
|
+
transition: opacity 150ms ease;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.edge-indicator:hover .edge-label {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.remote-selection-box {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 0;
|
|
107
|
+
left: 0;
|
|
108
|
+
border-width: 2px;
|
|
109
|
+
border-style: solid;
|
|
110
|
+
pointer-events: none;
|
|
111
|
+
will-change: transform, width, height;
|
|
112
|
+
transition: transform var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
113
|
+
width var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out,
|
|
114
|
+
height var(--kritzel-awareness-cursor-transition-duration, 100ms) ease-out;
|
|
115
|
+
}
|
package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js
CHANGED
|
@@ -210,7 +210,7 @@ export class KritzelAwarenessCursors {
|
|
|
210
210
|
void _ty;
|
|
211
211
|
void this.objectVersion;
|
|
212
212
|
const cursors = Array.from(this.remoteCursors.values());
|
|
213
|
-
return (h(Host, { key: '
|
|
213
|
+
return (h(Host, { key: 'b157f337127f7e5852acc0d6a246fa42e944a501' }, cursors.map(remoteCursor => {
|
|
214
214
|
if (!remoteCursor.cursor)
|
|
215
215
|
return null;
|
|
216
216
|
// When a remote user is actively drawing, derive cursor position from
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
left: 0;
|
|
6
|
-
width: 100vw;
|
|
7
|
-
height: 100vh;
|
|
8
|
-
pointer-events: none;
|
|
9
|
-
z-index: 9000;
|
|
10
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
width: 100vw;
|
|
7
|
+
height: 100vh;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
z-index: 9000;
|
|
10
|
+
}
|
|
@@ -63,7 +63,7 @@ export class KritzelCursorTrail {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'cf2cf1c689bdc8ea393a7ea8f32698cfcdb0e375' }, this.cursorTrailPoints.length > 1 && (h("svg", { key: 'df38c45537217982f7fb9513b954f3b0fa27acea', class: "cursor-trail-svg", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
67
67
|
position: 'absolute',
|
|
68
68
|
left: '0',
|
|
69
69
|
top: '0',
|
|
@@ -1,161 +1,161 @@
|
|
|
1
|
-
kritzel-editor{
|
|
2
|
-
display: flex;
|
|
3
|
-
margin: 0;
|
|
4
|
-
position: relative;
|
|
5
|
-
container-type: inline-size;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
width: 100%;
|
|
8
|
-
height: 100%;
|
|
9
|
-
align-items: center;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
touch-action: manipulation;
|
|
12
|
-
user-select: none;
|
|
13
|
-
-webkit-touch-callout: none;
|
|
14
|
-
-webkit-user-select: none;
|
|
15
|
-
-khtml-user-select: none;
|
|
16
|
-
-moz-user-select: none;
|
|
17
|
-
-ms-user-select: none;
|
|
18
|
-
user-select: none;
|
|
19
|
-
text-align: start;
|
|
20
|
-
line-height: normal;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.editor-content {
|
|
24
|
-
position: absolute;
|
|
25
|
-
inset: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.editor-content > kritzel-engine {
|
|
29
|
-
position: absolute;
|
|
30
|
-
inset: 0;
|
|
31
|
-
z-index: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
kritzel-controls {
|
|
35
|
-
position: absolute;
|
|
36
|
-
z-index: 2;
|
|
37
|
-
left: 0;
|
|
38
|
-
right: 0;
|
|
39
|
-
margin-inline: auto;
|
|
40
|
-
width: max-content;
|
|
41
|
-
max-width: calc(100% - 16px);
|
|
42
|
-
bottom: var(--kritzel-editor-controls-bottom, 14px);
|
|
43
|
-
transition: transform var(--kritzel-editor-controls-transition-duration, 0.1s) var(--kritzel-editor-controls-transition, ease-in-out);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
kritzel-controls.keyboard-open {
|
|
47
|
-
transform: var(--kritzel-editor-controls-transform, translateY(300%));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.top-left-buttons {
|
|
51
|
-
position: absolute;
|
|
52
|
-
z-index: 2;
|
|
53
|
-
top: var(--kritzel-editor-top-left-buttons-top, 14px);
|
|
54
|
-
left: var(--kritzel-editor-top-left-buttons-left, 14px);
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: flex-start;
|
|
57
|
-
gap: 8px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.top-center-notification-layer {
|
|
61
|
-
position: absolute;
|
|
62
|
-
top: var(--kritzel-editor-top-center-notification-top, 14px);
|
|
63
|
-
left: 0;
|
|
64
|
-
right: 0;
|
|
65
|
-
z-index: var(--kritzel-editor-top-center-notification-z-index, 10001);
|
|
66
|
-
display: flex;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
pointer-events: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.top-center-notification-container {
|
|
72
|
-
width: min(90vw, 420px);
|
|
73
|
-
pointer-events: auto;
|
|
74
|
-
animation: kritzel-notification-slide-in var(--kritzel-editor-notification-animation-duration, 220ms)
|
|
75
|
-
var(--kritzel-editor-notification-animation-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.top-center-notification-container.is-dismissing {
|
|
79
|
-
animation: kritzel-notification-fade-out var(--kritzel-editor-notification-dismiss-animation-duration, 180ms)
|
|
80
|
-
var(--kritzel-editor-notification-dismiss-animation-easing, ease-in) forwards;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@keyframes kritzel-notification-slide-in {
|
|
84
|
-
from {
|
|
85
|
-
opacity: 0;
|
|
86
|
-
transform: translateY(-10px);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
to {
|
|
90
|
-
opacity: 1;
|
|
91
|
-
transform: translateY(0);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@keyframes kritzel-notification-fade-out {
|
|
96
|
-
from {
|
|
97
|
-
opacity: 1;
|
|
98
|
-
transform: translateY(0);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
to {
|
|
102
|
-
opacity: 0;
|
|
103
|
-
transform: translateY(-6px);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@media (prefers-reduced-motion: reduce) {
|
|
108
|
-
.top-center-notification-container {
|
|
109
|
-
animation: none;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.top-right-buttons {
|
|
114
|
-
position: absolute;
|
|
115
|
-
z-index: 2;
|
|
116
|
-
top: var(--kritzel-editor-top-right-buttons-top, 14px);
|
|
117
|
-
right: var(--kritzel-editor-top-right-buttons-right, 14px);
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
gap: 8px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.bottom-left-buttons {
|
|
124
|
-
position: absolute;
|
|
125
|
-
z-index: 2;
|
|
126
|
-
left: var(--kritzel-editor-top-left-buttons-left, 14px);
|
|
127
|
-
bottom: var(--kritzel-editor-controls-bottom, 14px);
|
|
128
|
-
display: flex;
|
|
129
|
-
align-items: flex-end;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/* Hide the zoom panel when the editor container is narrow. */
|
|
133
|
-
@container (max-width: 767px) {
|
|
134
|
-
.bottom-left-buttons {
|
|
135
|
-
display: none;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.top-right-button {
|
|
140
|
-
display: flex;
|
|
141
|
-
align-items: center;
|
|
142
|
-
justify-content: center;
|
|
143
|
-
width: 50px;
|
|
144
|
-
height: 50px;
|
|
145
|
-
padding: 0;
|
|
146
|
-
border: var(--kritzel-split-button-border, 1px solid #ebebeb);
|
|
147
|
-
border-radius: var(--kritzel-split-button-border-radius, 12px);
|
|
148
|
-
background-color: var(--kritzel-split-button-background-color, #ffffff);
|
|
149
|
-
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
150
|
-
box-shadow: var(--kritzel-split-button-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
|
|
151
|
-
transition: background-color 150ms ease;
|
|
152
|
-
-webkit-tap-highlight-color: transparent;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.top-right-button:hover {
|
|
156
|
-
background-color: #f5f5f5;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.top-right-button:active {
|
|
160
|
-
background-color: #ebebeb;
|
|
1
|
+
kritzel-editor{
|
|
2
|
+
display: flex;
|
|
3
|
+
margin: 0;
|
|
4
|
+
position: relative;
|
|
5
|
+
container-type: inline-size;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
touch-action: manipulation;
|
|
12
|
+
user-select: none;
|
|
13
|
+
-webkit-touch-callout: none;
|
|
14
|
+
-webkit-user-select: none;
|
|
15
|
+
-khtml-user-select: none;
|
|
16
|
+
-moz-user-select: none;
|
|
17
|
+
-ms-user-select: none;
|
|
18
|
+
user-select: none;
|
|
19
|
+
text-align: start;
|
|
20
|
+
line-height: normal;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.editor-content {
|
|
24
|
+
position: absolute;
|
|
25
|
+
inset: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.editor-content > kritzel-engine {
|
|
29
|
+
position: absolute;
|
|
30
|
+
inset: 0;
|
|
31
|
+
z-index: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
kritzel-controls {
|
|
35
|
+
position: absolute;
|
|
36
|
+
z-index: 2;
|
|
37
|
+
left: 0;
|
|
38
|
+
right: 0;
|
|
39
|
+
margin-inline: auto;
|
|
40
|
+
width: max-content;
|
|
41
|
+
max-width: calc(100% - 16px);
|
|
42
|
+
bottom: var(--kritzel-editor-controls-bottom, 14px);
|
|
43
|
+
transition: transform var(--kritzel-editor-controls-transition-duration, 0.1s) var(--kritzel-editor-controls-transition, ease-in-out);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
kritzel-controls.keyboard-open {
|
|
47
|
+
transform: var(--kritzel-editor-controls-transform, translateY(300%));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.top-left-buttons {
|
|
51
|
+
position: absolute;
|
|
52
|
+
z-index: 2;
|
|
53
|
+
top: var(--kritzel-editor-top-left-buttons-top, 14px);
|
|
54
|
+
left: var(--kritzel-editor-top-left-buttons-left, 14px);
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: flex-start;
|
|
57
|
+
gap: 8px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.top-center-notification-layer {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: var(--kritzel-editor-top-center-notification-top, 14px);
|
|
63
|
+
left: 0;
|
|
64
|
+
right: 0;
|
|
65
|
+
z-index: var(--kritzel-editor-top-center-notification-z-index, 10001);
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
pointer-events: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.top-center-notification-container {
|
|
72
|
+
width: min(90vw, 420px);
|
|
73
|
+
pointer-events: auto;
|
|
74
|
+
animation: kritzel-notification-slide-in var(--kritzel-editor-notification-animation-duration, 220ms)
|
|
75
|
+
var(--kritzel-editor-notification-animation-easing, cubic-bezier(0.22, 1, 0.36, 1));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.top-center-notification-container.is-dismissing {
|
|
79
|
+
animation: kritzel-notification-fade-out var(--kritzel-editor-notification-dismiss-animation-duration, 180ms)
|
|
80
|
+
var(--kritzel-editor-notification-dismiss-animation-easing, ease-in) forwards;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes kritzel-notification-slide-in {
|
|
84
|
+
from {
|
|
85
|
+
opacity: 0;
|
|
86
|
+
transform: translateY(-10px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
to {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
transform: translateY(0);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@keyframes kritzel-notification-fade-out {
|
|
96
|
+
from {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
transform: translateY(0);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
to {
|
|
102
|
+
opacity: 0;
|
|
103
|
+
transform: translateY(-6px);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@media (prefers-reduced-motion: reduce) {
|
|
108
|
+
.top-center-notification-container {
|
|
109
|
+
animation: none;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.top-right-buttons {
|
|
114
|
+
position: absolute;
|
|
115
|
+
z-index: 2;
|
|
116
|
+
top: var(--kritzel-editor-top-right-buttons-top, 14px);
|
|
117
|
+
right: var(--kritzel-editor-top-right-buttons-right, 14px);
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: 8px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.bottom-left-buttons {
|
|
124
|
+
position: absolute;
|
|
125
|
+
z-index: 2;
|
|
126
|
+
left: var(--kritzel-editor-top-left-buttons-left, 14px);
|
|
127
|
+
bottom: var(--kritzel-editor-controls-bottom, 14px);
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: flex-end;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Hide the zoom panel when the editor container is narrow. */
|
|
133
|
+
@container (max-width: 767px) {
|
|
134
|
+
.bottom-left-buttons {
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.top-right-button {
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
width: 50px;
|
|
144
|
+
height: 50px;
|
|
145
|
+
padding: 0;
|
|
146
|
+
border: var(--kritzel-split-button-border, 1px solid #ebebeb);
|
|
147
|
+
border-radius: var(--kritzel-split-button-border-radius, 12px);
|
|
148
|
+
background-color: var(--kritzel-split-button-background-color, #ffffff);
|
|
149
|
+
cursor: var(--kritzel-global-pointer-cursor, pointer);
|
|
150
|
+
box-shadow: var(--kritzel-split-button-box-shadow, 0 0 3px rgba(0, 0, 0, 0.08));
|
|
151
|
+
transition: background-color 150ms ease;
|
|
152
|
+
-webkit-tap-highlight-color: transparent;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.top-right-button:hover {
|
|
156
|
+
background-color: #f5f5f5;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.top-right-button:active {
|
|
160
|
+
background-color: #ebebeb;
|
|
161
161
|
}
|