kritzel-stencil 0.4.17 → 0.4.18
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-Xav9JFHg.js → index-Dn19mGl-.js} +47 -11
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kritzel-active-users_47.cjs.entry.js +113 -113
- package/dist/cjs/kritzel-brush-style.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{schema.constants-CjN-B633.js → schema.constants-CY0WWJYd.js} +44 -20
- package/dist/cjs/stencil.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- 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-sync-indicator/kritzel-sync-indicator.css +50 -50
- package/dist/collection/components/shared/kritzel-sync-indicator/kritzel-sync-indicator.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 +50 -50
- 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 +3 -3
- 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 +4 -4
- 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-context-menu.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 +56 -56
- 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-icon.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-notification-card.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-sync-indicator.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-jIKskj3S.js → p-1Q4VnThv.js} +3 -3
- package/dist/components/{p-Cm33td2O.js → p-3tBE7SyG.js} +2 -2
- package/dist/components/{p-fL9rl200.js → p-BFYT03fw.js} +3 -3
- package/dist/components/{p-D9WOTj4k.js → p-BL0aCu3R.js} +9 -9
- package/dist/components/{p-DtnMdWWB.js → p-BShrnlam.js} +2 -2
- package/dist/components/{p-BsLI_BWq.js → p-BXUx_C0N.js} +2 -2
- package/dist/components/{p-CzW58DHM.js → p-BZZ3KRPk.js} +3 -3
- package/dist/components/{p-D1rjfWgJ.js → p-BkXQL5Dl.js} +5 -5
- package/dist/components/{p-eZXIu4yK.js → p-BppcoKoo.js} +5 -5
- package/dist/components/{p-DDTMGbtA.js → p-BrA9NBEE.js} +21 -21
- package/dist/components/{p-Czhdc844.js → p-BrqSjRJN.js} +3 -3
- package/dist/components/{p-CAoN_STZ.js → p-Bxi-Bm49.js} +2 -2
- package/dist/components/{p-B43upypT.js → p-C9_yBEoX.js} +30 -10
- package/dist/components/{p-Df3BwVGy.js → p-CHoOe3FD.js} +3 -3
- package/dist/components/{p-2WiGyky4.js → p-CLAz6RJc.js} +3 -3
- package/dist/components/{p-B5SWPDuq.js → p-CSKToqUl.js} +4 -4
- package/dist/components/{p-CF8pLc07.js → p-CSWCmyzb.js} +5 -5
- package/dist/components/{p-HoO86l1o.js → p-CWAChRD5.js} +12 -12
- package/dist/components/{p-DwMqCX2P.js → p-Ch-KG9To.js} +3 -3
- package/dist/components/{p-CSuU8frA.js → p-Ck-87E2G.js} +1 -1
- package/dist/components/{p-BFYtCsZu.js → p-Covorf4C.js} +3 -3
- package/dist/components/{p-BZAIIz5-.js → p-Csxx9TbU.js} +90 -66
- package/dist/components/{p-BoN700-O.js → p-Cx-L_28S.js} +3 -3
- package/dist/components/{p-vqEUQ-4Q.js → p-D0Trc3IQ.js} +5 -5
- package/dist/components/{p-BrNsOp2v.js → p-D2VcPEtL.js} +6 -6
- package/dist/components/{p-CSPYkLLH.js → p-D3BzgkIE.js} +2 -2
- package/dist/components/{p-bAacqNHq.js → p-D6JycG-I.js} +3 -3
- package/dist/components/{p-DB58Oa5V.js → p-DPsbNStn.js} +2 -2
- package/dist/components/{p-CwZ3KKFq.js → p-DT_WBwsw.js} +6 -6
- package/dist/components/{p-BPsKYMH6.js → p-DYPA7jpg.js} +2 -2
- package/dist/components/{p-DBqoPgev.js → p-DafP9PAA.js} +2 -2
- package/dist/components/{p-Dt7-I2Xz.js → p-DcUIO14-.js} +4 -4
- package/dist/components/{p-CXpv9Rxe.js → p-Di--2boB.js} +3 -3
- package/dist/components/{p-djJSnjAX.js → p-DjXQxw9R.js} +3 -3
- package/dist/components/{p-DVXTPI71.js → p-Dp1CD4gK.js} +2 -2
- package/dist/components/{p-DKGg-76-.js → p-Dznwo6oc.js} +2 -2
- package/dist/components/{p-BozrueXV.js → p-ME1sDz3f.js} +2 -2
- package/dist/components/{p-B-585egz.js → p-MhQxGUvY.js} +3 -3
- package/dist/components/{p-DX2nriaq.js → p-QSyeAy8R.js} +2 -2
- package/dist/components/{p-PjPPCHVL.js → p-Qdo3E8dr.js} +2 -2
- package/dist/components/{p-dsxHDlQ3.js → p-b0J2ktAm.js} +7 -7
- package/dist/components/{p-C98Eb3_R.js → p-dAXnRkjA.js} +5 -5
- package/dist/components/{p-GKmqCI8r.js → p-fSV6KVTC.js} +3 -3
- package/dist/components/{p-CaBbajU2.js → p-o3NYKrVL.js} +3 -3
- package/dist/components/{p-CrHvaLRV.js → p-vDCa_ZDm.js} +3 -3
- package/dist/components/{p-4SPnZZkH.js → p-zG-WUBGF.js} +4 -4
- package/dist/esm/{index-Dhio9uis.js → index-2va1Pk9z.js} +47 -11
- package/dist/esm/index.js +2 -2
- package/dist/esm/kritzel-active-users_47.entry.js +113 -113
- package/dist/esm/kritzel-brush-style.entry.js +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{schema.constants-DfvqHmxc.js → schema.constants-DBvUmuDH.js} +44 -20
- package/dist/esm/stencil.js +3 -3
- package/dist/stencil/index.esm.js +2 -2
- package/dist/stencil/{p-2ba5e7ef.entry.js → p-0250005e.entry.js} +113 -113
- package/dist/stencil/{p-Dhio9uis.js → p-2va1Pk9z.js} +47 -11
- package/dist/stencil/{p-DfvqHmxc.js → p-DBvUmuDH.js} +44 -20
- package/dist/stencil/{p-fb32cd8f.entry.js → p-df06ca3a.entry.js} +2 -2
- package/dist/stencil/stencil.esm.js +4 -4
- package/dist/types/constants/version.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +12 -0
- package/loader/index.d.ts +1 -1
- package/package.json +1 -1
- package/readme.md +10 -10
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
position: relative;
|
|
4
|
-
height: 100%;
|
|
5
|
-
width: 100%;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
isolation: isolate;
|
|
8
|
-
background-color: var(--kritzel-engine-background-color, #ffffff);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host,
|
|
12
|
-
:host * {
|
|
13
|
-
touch-action: none;
|
|
14
|
-
user-select: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ProseMirror {
|
|
18
|
-
outline: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
p, h1, h2, h3, h4, h5, h6, blockquote, pre {
|
|
22
|
-
margin: 0;
|
|
23
|
-
padding: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.debug-panel {
|
|
27
|
-
position: absolute;
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
top: 0;
|
|
30
|
-
right: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.origin {
|
|
34
|
-
position: relative;
|
|
35
|
-
top: 0;
|
|
36
|
-
left: 0;
|
|
37
|
-
height: 0;
|
|
38
|
-
width: 0;
|
|
39
|
-
pointer-events: none;
|
|
40
|
-
-webkit-transform-origin: top left;
|
|
41
|
-
-moz-transform-origin: top left;
|
|
42
|
-
transform-origin: top left;
|
|
43
|
-
overflow: visible;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.object {
|
|
47
|
-
overflow: visible;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.kritzel-image-object--first-reveal {
|
|
51
|
-
animation: kritzel-image-first-reveal 180ms ease-out both;
|
|
52
|
-
will-change: filter;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
@keyframes kritzel-image-first-reveal {
|
|
56
|
-
from {
|
|
57
|
-
filter: opacity(0);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
to {
|
|
61
|
-
filter: opacity(1);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media (prefers-reduced-motion: reduce) {
|
|
66
|
-
.kritzel-image-object--first-reveal {
|
|
67
|
-
animation: none;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.PlaygroundEditorTheme__quote {
|
|
72
|
-
margin: 0;
|
|
73
|
-
margin-left: 20px;
|
|
74
|
-
margin-bottom: 10px;
|
|
75
|
-
font-size: 15px;
|
|
76
|
-
color: rgb(101, 103, 107);
|
|
77
|
-
border-left-color: rgb(206, 208, 212);
|
|
78
|
-
border-left-width: 4px;
|
|
79
|
-
border-left-style: solid;
|
|
80
|
-
padding-left: 16px;
|
|
1
|
+
:host {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
isolation: isolate;
|
|
8
|
+
background-color: var(--kritzel-engine-background-color, #ffffff);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host,
|
|
12
|
+
:host * {
|
|
13
|
+
touch-action: none;
|
|
14
|
+
user-select: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ProseMirror {
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
p, h1, h2, h3, h4, h5, h6, blockquote, pre {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.debug-panel {
|
|
27
|
+
position: absolute;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
top: 0;
|
|
30
|
+
right: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.origin {
|
|
34
|
+
position: relative;
|
|
35
|
+
top: 0;
|
|
36
|
+
left: 0;
|
|
37
|
+
height: 0;
|
|
38
|
+
width: 0;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
-webkit-transform-origin: top left;
|
|
41
|
+
-moz-transform-origin: top left;
|
|
42
|
+
transform-origin: top left;
|
|
43
|
+
overflow: visible;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.object {
|
|
47
|
+
overflow: visible;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.kritzel-image-object--first-reveal {
|
|
51
|
+
animation: kritzel-image-first-reveal 180ms ease-out both;
|
|
52
|
+
will-change: filter;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@keyframes kritzel-image-first-reveal {
|
|
56
|
+
from {
|
|
57
|
+
filter: opacity(0);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
to {
|
|
61
|
+
filter: opacity(1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.kritzel-image-object--first-reveal {
|
|
67
|
+
animation: none;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.PlaygroundEditorTheme__quote {
|
|
72
|
+
margin: 0;
|
|
73
|
+
margin-left: 20px;
|
|
74
|
+
margin-bottom: 10px;
|
|
75
|
+
font-size: 15px;
|
|
76
|
+
color: rgb(101, 103, 107);
|
|
77
|
+
border-left-color: rgb(206, 208, 212);
|
|
78
|
+
border-left-width: 4px;
|
|
79
|
+
border-left-style: solid;
|
|
80
|
+
padding-left: 16px;
|
|
81
81
|
}
|
|
@@ -2970,7 +2970,7 @@ export class KritzelEngine {
|
|
|
2970
2970
|
"optional": true,
|
|
2971
2971
|
"docs": {
|
|
2972
2972
|
"tags": [],
|
|
2973
|
-
"text": "Configuration for binary asset storage (e.g., images).\n\nThe Yjs document only persists asset ids; the actual bytes are stored\nby the providers listed here. Defaults to IndexedDB-only storage. To\nsupport cross-device image sync alongside a networked sync provider\n(Hocuspocus, WebSocket), configure at least one remote asset provider\nsuch as `HttpAssetProvider` or `PresignedAssetProvider`."
|
|
2973
|
+
"text": "Configuration for binary asset storage (e.g., images).\r\n\r\nThe Yjs document only persists asset ids; the actual bytes are stored\r\nby the providers listed here. Defaults to IndexedDB-only storage. To\r\nsupport cross-device image sync alongside a networked sync provider\r\n(Hocuspocus, WebSocket), configure at least one remote asset provider\r\nsuch as `HttpAssetProvider` or `PresignedAssetProvider`."
|
|
2974
2974
|
},
|
|
2975
2975
|
"getter": false,
|
|
2976
2976
|
"setter": false
|
|
@@ -4399,7 +4399,7 @@ export class KritzelEngine {
|
|
|
4399
4399
|
"return": "Promise<void>"
|
|
4400
4400
|
},
|
|
4401
4401
|
"docs": {
|
|
4402
|
-
"text": "Programmatically opens the context menu at a specified world-coordinate position.\nIf `objectId` is provided and found, the object context menu is shown for that object.\nIf no `objectId` is provided but a selection group already exists, the object context menu is shown.\nOtherwise, the global context menu is shown.",
|
|
4402
|
+
"text": "Programmatically opens the context menu at a specified world-coordinate position.\r\nIf `objectId` is provided and found, the object context menu is shown for that object.\r\nIf no `objectId` is provided but a selection group already exists, the object context menu is shown.\r\nOtherwise, the global context menu is shown.",
|
|
4403
4403
|
"tags": [{
|
|
4404
4404
|
"name": "param",
|
|
4405
4405
|
"text": "options.x - The X position in world (canvas) coordinates."
|
|
@@ -4509,7 +4509,7 @@ export class KritzelEngine {
|
|
|
4509
4509
|
"return": "Promise<T[]>"
|
|
4510
4510
|
},
|
|
4511
4511
|
"docs": {
|
|
4512
|
-
"text": "Returns all objects that match the given predicate function.\nExcludes internal selection-related objects (selection groups and selection boxes).",
|
|
4512
|
+
"text": "Returns all objects that match the given predicate function.\r\nExcludes internal selection-related objects (selection groups and selection boxes).",
|
|
4513
4513
|
"tags": [{
|
|
4514
4514
|
"name": "param",
|
|
4515
4515
|
"text": "predicate - A filter function called for each object. Return `true` to include."
|
|
@@ -4518,7 +4518,7 @@ export class KritzelEngine {
|
|
|
4518
4518
|
"text": "An array of matching objects."
|
|
4519
4519
|
}, {
|
|
4520
4520
|
"name": "example",
|
|
4521
|
-
"text": "```ts\n// Find all text objects\nconst texts = await engine.findObjects(obj => obj.__class__ === 'KritzelText');\n\n// Find objects at a point\nconst hits = await engine.findObjects(obj => obj.hitTest(100, 200));\n\n// Combine criteria\nconst filtered = await engine.findObjects(obj => obj.__class__ === 'KritzelPath' && obj.opacity < 0.5);\n```"
|
|
4521
|
+
"text": "```ts\r\n// Find all text objects\r\nconst texts = await engine.findObjects(obj => obj.__class__ === 'KritzelText');\r\n\r\n// Find objects at a point\r\nconst hits = await engine.findObjects(obj => obj.hitTest(100, 200));\r\n\r\n// Combine criteria\r\nconst filtered = await engine.findObjects(obj => obj.__class__ === 'KritzelPath' && obj.opacity < 0.5);\r\n```"
|
|
4522
4522
|
}]
|
|
4523
4523
|
}
|
|
4524
4524
|
},
|
|
@@ -4651,7 +4651,7 @@ export class KritzelEngine {
|
|
|
4651
4651
|
"return": "Promise<T[]>"
|
|
4652
4652
|
},
|
|
4653
4653
|
"docs": {
|
|
4654
|
-
"text": "Adds multiple objects to the canvas in a single batch operation.\nAll objects are inserted within one Yjs transaction (single undo step),\ntriggering only one rerender cycle. Intended for programmatic streaming\nscenarios where per-object overhead would cause stutter.",
|
|
4654
|
+
"text": "Adds multiple objects to the canvas in a single batch operation.\r\nAll objects are inserted within one Yjs transaction (single undo step),\r\ntriggering only one rerender cycle. Intended for programmatic streaming\r\nscenarios where per-object overhead would cause stutter.",
|
|
4655
4655
|
"tags": [{
|
|
4656
4656
|
"name": "param",
|
|
4657
4657
|
"text": "objects - The object instances to add."
|
|
@@ -4773,7 +4773,7 @@ export class KritzelEngine {
|
|
|
4773
4773
|
"return": "Promise<T[]>"
|
|
4774
4774
|
},
|
|
4775
4775
|
"docs": {
|
|
4776
|
-
"text": "Removes multiple objects from the canvas in a single batch operation.\nAll removals happen within one Yjs transaction (single undo step),\ntriggering only one rerender cycle. Intended for programmatic streaming\nscenarios where per-object overhead would cause stutter.",
|
|
4776
|
+
"text": "Removes multiple objects from the canvas in a single batch operation.\r\nAll removals happen within one Yjs transaction (single undo step),\r\ntriggering only one rerender cycle. Intended for programmatic streaming\r\nscenarios where per-object overhead would cause stutter.",
|
|
4777
4777
|
"tags": [{
|
|
4778
4778
|
"name": "param",
|
|
4779
4779
|
"text": "objects - The objects to remove."
|
|
@@ -4961,7 +4961,7 @@ export class KritzelEngine {
|
|
|
4961
4961
|
"return": "Promise<void>"
|
|
4962
4962
|
},
|
|
4963
4963
|
"docs": {
|
|
4964
|
-
"text": "Pans the viewport to center on the given object without changing the zoom level.\nUnlike `centerObjectInViewport`, this moves the camera \u2014 not the object.",
|
|
4964
|
+
"text": "Pans the viewport to center on the given object without changing the zoom level.\r\nUnlike `centerObjectInViewport`, this moves the camera \u2014 not the object.",
|
|
4965
4965
|
"tags": [{
|
|
4966
4966
|
"name": "param",
|
|
4967
4967
|
"text": "object - The object whose center the viewport should pan to."
|
|
@@ -4981,7 +4981,7 @@ export class KritzelEngine {
|
|
|
4981
4981
|
"return": "Promise<boolean>"
|
|
4982
4982
|
},
|
|
4983
4983
|
"docs": {
|
|
4984
|
-
"text": "Pans and zooms the viewport to fit the nearest content, with padding.\nUseful when the user has panned away from all objects.",
|
|
4984
|
+
"text": "Pans and zooms the viewport to fit the nearest content, with padding.\r\nUseful when the user has panned away from all objects.",
|
|
4985
4985
|
"tags": [{
|
|
4986
4986
|
"name": "returns",
|
|
4987
4987
|
"text": "`true` if content was found and the viewport was adjusted, `false` otherwise."
|
|
@@ -5005,7 +5005,7 @@ export class KritzelEngine {
|
|
|
5005
5005
|
"return": "Promise<boolean>"
|
|
5006
5006
|
},
|
|
5007
5007
|
"docs": {
|
|
5008
|
-
"text": "Pans and zooms the viewport to fit ALL objects on the canvas, including those not currently rendered.\nCalculates the combined bounding box of all objects and centers the viewport to show them.",
|
|
5008
|
+
"text": "Pans and zooms the viewport to fit ALL objects on the canvas, including those not currently rendered.\r\nCalculates the combined bounding box of all objects and centers the viewport to show them.",
|
|
5009
5009
|
"tags": [{
|
|
5010
5010
|
"name": "param",
|
|
5011
5011
|
"text": "animate - Whether to animate the viewport transition (default: true)."
|
|
@@ -5042,7 +5042,7 @@ export class KritzelEngine {
|
|
|
5042
5042
|
"return": "Promise<boolean>"
|
|
5043
5043
|
},
|
|
5044
5044
|
"docs": {
|
|
5045
|
-
"text": "Pans and zooms the viewport to fit the provided objects.\nCalculates the combined bounding box of the given objects and centers the viewport to show them.",
|
|
5045
|
+
"text": "Pans and zooms the viewport to fit the provided objects.\r\nCalculates the combined bounding box of the given objects and centers the viewport to show them.",
|
|
5046
5046
|
"tags": [{
|
|
5047
5047
|
"name": "param",
|
|
5048
5048
|
"text": "objects - The objects to center and fit in the viewport."
|
|
@@ -5149,7 +5149,7 @@ export class KritzelEngine {
|
|
|
5149
5149
|
"return": "Promise<void>"
|
|
5150
5150
|
},
|
|
5151
5151
|
"docs": {
|
|
5152
|
-
"text": "Zooms the viewport to the given scale level.\nOptionally centers on a world point; if omitted, zooms around the viewport center.",
|
|
5152
|
+
"text": "Zooms the viewport to the given scale level.\r\nOptionally centers on a world point; if omitted, zooms around the viewport center.",
|
|
5153
5153
|
"tags": [{
|
|
5154
5154
|
"name": "param",
|
|
5155
5155
|
"text": "scale - Target scale level."
|
|
@@ -5467,7 +5467,7 @@ export class KritzelEngine {
|
|
|
5467
5467
|
"return": "Promise<KritzelObjectExportFormat[]>"
|
|
5468
5468
|
},
|
|
5469
5469
|
"docs": {
|
|
5470
|
-
"text": "Returns export formats supported by the currently selected object.\nOnly returns formats when exactly one object is selected.",
|
|
5470
|
+
"text": "Returns export formats supported by the currently selected object.\r\nOnly returns formats when exactly one object is selected.",
|
|
5471
5471
|
"tags": []
|
|
5472
5472
|
}
|
|
5473
5473
|
},
|
|
@@ -5494,7 +5494,7 @@ export class KritzelEngine {
|
|
|
5494
5494
|
"return": "Promise<boolean>"
|
|
5495
5495
|
},
|
|
5496
5496
|
"docs": {
|
|
5497
|
-
"text": "Checks whether the currently selected object supports a specific export format.\nReturns false when none or multiple objects are selected.",
|
|
5497
|
+
"text": "Checks whether the currently selected object supports a specific export format.\r\nReturns false when none or multiple objects are selected.",
|
|
5498
5498
|
"tags": []
|
|
5499
5499
|
}
|
|
5500
5500
|
},
|
|
@@ -5521,7 +5521,7 @@ export class KritzelEngine {
|
|
|
5521
5521
|
"return": "Promise<void>"
|
|
5522
5522
|
},
|
|
5523
5523
|
"docs": {
|
|
5524
|
-
"text": "Exports the currently selected object in the requested format and triggers a file download.\nOnly supports single selection.",
|
|
5524
|
+
"text": "Exports the currently selected object in the requested format and triggers a file download.\r\nOnly supports single selection.",
|
|
5525
5525
|
"tags": []
|
|
5526
5526
|
}
|
|
5527
5527
|
},
|
|
@@ -5542,7 +5542,7 @@ export class KritzelEngine {
|
|
|
5542
5542
|
"return": "Promise<string>"
|
|
5543
5543
|
},
|
|
5544
5544
|
"docs": {
|
|
5545
|
-
"text": "Exports the current workspace and all its objects as a JSON string.\nThe exported data includes workspace metadata (id, name, viewport) and all canvas objects.",
|
|
5545
|
+
"text": "Exports the current workspace and all its objects as a JSON string.\r\nThe exported data includes workspace metadata (id, name, viewport) and all canvas objects.",
|
|
5546
5546
|
"tags": [{
|
|
5547
5547
|
"name": "returns",
|
|
5548
5548
|
"text": "A JSON string representing the complete workspace state."
|
|
@@ -5576,7 +5576,7 @@ export class KritzelEngine {
|
|
|
5576
5576
|
"return": "Promise<void>"
|
|
5577
5577
|
},
|
|
5578
5578
|
"docs": {
|
|
5579
|
-
"text": "Imports a workspace from a JSON string into a new workspace.\nCreates a new workspace with the imported data and automatically switches to it.",
|
|
5579
|
+
"text": "Imports a workspace from a JSON string into a new workspace.\r\nCreates a new workspace with the imported data and automatically switches to it.",
|
|
5580
5580
|
"tags": [{
|
|
5581
5581
|
"name": "param",
|
|
5582
5582
|
"text": "json - A JSON string containing workspace data (from exportAsJson)."
|
|
@@ -5613,7 +5613,7 @@ export class KritzelEngine {
|
|
|
5613
5613
|
"return": "Promise<number>"
|
|
5614
5614
|
},
|
|
5615
5615
|
"docs": {
|
|
5616
|
-
"text": "Loads objects from a workspace JSON string into the current workspace.\nUnlike importFromJson, this does not create a new workspace - it adds objects to the existing one.\nUseful for initializing a workspace with pre-existing content after the editor is ready.",
|
|
5616
|
+
"text": "Loads objects from a workspace JSON string into the current workspace.\r\nUnlike importFromJson, this does not create a new workspace - it adds objects to the existing one.\r\nUseful for initializing a workspace with pre-existing content after the editor is ready.",
|
|
5617
5617
|
"tags": [{
|
|
5618
5618
|
"name": "param",
|
|
5619
5619
|
"text": "json - A JSON string containing workspace data (from exportAsJson)."
|
|
@@ -5673,7 +5673,7 @@ export class KritzelEngine {
|
|
|
5673
5673
|
"return": "Promise<void>"
|
|
5674
5674
|
},
|
|
5675
5675
|
"docs": {
|
|
5676
|
-
"text": "Opens a file picker dialog and imports the selected JSON file into the workspace.\nThis method creates a hidden file input, triggers the browser's file chooser,\nreads the selected JSON file, and imports it using importFromJson.",
|
|
5676
|
+
"text": "Opens a file picker dialog and imports the selected JSON file into the workspace.\r\nThis method creates a hidden file input, triggers the browser's file chooser,\r\nreads the selected JSON file, and imports it using importFromJson.",
|
|
5677
5677
|
"tags": [{
|
|
5678
5678
|
"name": "returns",
|
|
5679
5679
|
"text": "A promise that resolves when the import is complete or rejects on error/cancel."
|
|
@@ -5856,7 +5856,7 @@ export class KritzelEngine {
|
|
|
5856
5856
|
"return": "Promise<void>"
|
|
5857
5857
|
},
|
|
5858
5858
|
"docs": {
|
|
5859
|
-
"text": "Loads a shared workspace by token.\nIf the workspace exists locally, it switches to it.\nIf it doesn't exist, it adds it to the local workspaces list and then switches to it.",
|
|
5859
|
+
"text": "Loads a shared workspace by token.\r\nIf the workspace exists locally, it switches to it.\r\nIf it doesn't exist, it adds it to the local workspaces list and then switches to it.",
|
|
5860
5860
|
"tags": [{
|
|
5861
5861
|
"name": "param",
|
|
5862
5862
|
"text": "token - The connection token identifying the shared workspace"
|
|
@@ -5876,7 +5876,7 @@ export class KritzelEngine {
|
|
|
5876
5876
|
"return": "Promise<void>"
|
|
5877
5877
|
},
|
|
5878
5878
|
"docs": {
|
|
5879
|
-
"text": "Reinitializes sync by performing a full teardown and re-initialization.\nDestroys the current Yjs documents and providers, then rebuilds everything\nfrom the current syncConfig. Data reloads from IndexedDB nearly instantly.\nCall this after updating the syncConfig prop (e.g. after authentication state changes).",
|
|
5879
|
+
"text": "Reinitializes sync by performing a full teardown and re-initialization.\r\nDestroys the current Yjs documents and providers, then rebuilds everything\r\nfrom the current syncConfig. Data reloads from IndexedDB nearly instantly.\r\nCall this after updating the syncConfig prop (e.g. after authentication state changes).",
|
|
5880
5880
|
"tags": []
|
|
5881
5881
|
}
|
|
5882
5882
|
},
|
|
@@ -6139,7 +6139,7 @@ export class KritzelEngine {
|
|
|
6139
6139
|
"return": "Promise<Partial<Record<keyof KritzelTerms, string>>>"
|
|
6140
6140
|
},
|
|
6141
6141
|
"docs": {
|
|
6142
|
-
"text": "Resolves every known term key for the active locale into a flat map.\nUseful for UI layers that need to localize many strings at once.",
|
|
6142
|
+
"text": "Resolves every known term key for the active locale into a flat map.\r\nUseful for UI layers that need to localize many strings at once.",
|
|
6143
6143
|
"tags": []
|
|
6144
6144
|
}
|
|
6145
6145
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
position: absolute;
|
|
3
|
-
bottom: var(--kritzel-watermark-offset-bottom, 12px);
|
|
4
|
-
right: var(--kritzel-watermark-offset-right, 12px);
|
|
5
|
-
z-index: 10000;
|
|
6
|
-
pointer-events: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.watermark-link {
|
|
10
|
-
pointer-events: auto;
|
|
11
|
-
display: inline-flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding: 4px 8px;
|
|
14
|
-
border-radius: var(--kritzel-watermark-border-radius, 6px);
|
|
15
|
-
font-family: var(--kritzel-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
16
|
-
font-size: var(--kritzel-watermark-font-size, 11px);
|
|
17
|
-
line-height: 1;
|
|
18
|
-
text-decoration: none;
|
|
19
|
-
color: var(--kritzel-watermark-color, rgba(60, 60, 60, 0.75));
|
|
20
|
-
background-color: var(--kritzel-watermark-background, rgba(255, 255, 255, 0.6));
|
|
21
|
-
box-shadow: var(--kritzel-watermark-box-shadow, 0 1px 2px rgba(0, 0, 0, 0.12));
|
|
22
|
-
opacity: var(--kritzel-watermark-opacity, 0.85);
|
|
23
|
-
transition: opacity 150ms ease;
|
|
24
|
-
user-select: none;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.watermark-link:hover {
|
|
28
|
-
opacity: 1;
|
|
29
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
position: absolute;
|
|
3
|
+
bottom: var(--kritzel-watermark-offset-bottom, 12px);
|
|
4
|
+
right: var(--kritzel-watermark-offset-right, 12px);
|
|
5
|
+
z-index: 10000;
|
|
6
|
+
pointer-events: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.watermark-link {
|
|
10
|
+
pointer-events: auto;
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: 4px 8px;
|
|
14
|
+
border-radius: var(--kritzel-watermark-border-radius, 6px);
|
|
15
|
+
font-family: var(--kritzel-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
16
|
+
font-size: var(--kritzel-watermark-font-size, 11px);
|
|
17
|
+
line-height: 1;
|
|
18
|
+
text-decoration: none;
|
|
19
|
+
color: var(--kritzel-watermark-color, rgba(60, 60, 60, 0.75));
|
|
20
|
+
background-color: var(--kritzel-watermark-background, rgba(255, 255, 255, 0.6));
|
|
21
|
+
box-shadow: var(--kritzel-watermark-box-shadow, 0 1px 2px rgba(0, 0, 0, 0.12));
|
|
22
|
+
opacity: var(--kritzel-watermark-opacity, 0.85);
|
|
23
|
+
transition: opacity 150ms ease;
|
|
24
|
+
user-select: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.watermark-link:hover {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
@@ -19,7 +19,7 @@ export class KritzelWatermark {
|
|
|
19
19
|
label;
|
|
20
20
|
render() {
|
|
21
21
|
const label = this.label ?? this.core.localizationManager.translate('watermark.poweredBy');
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'de81b568421f5517fe19897bd4a4a5d58d1f622d' }, h("a", { key: '6278f78180869650afc181aac5c37aa401c09040', class: "watermark-link", href: KRITZEL_WEBSITE_URL, target: "_blank", rel: "noopener noreferrer", part: "watermark", onPointerDown: (ev) => ev.stopPropagation(), onPointerUp: (ev) => ev.stopPropagation() }, label)));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "kritzel-watermark"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,7 @@ export class KritzelWatermark {
|
|
|
71
71
|
"optional": true,
|
|
72
72
|
"docs": {
|
|
73
73
|
"tags": [],
|
|
74
|
-
"text": "Resolved \"Powered by Kritzel\" label. Passed in by the engine so the badge\nre-renders when the active locale changes. Falls back to resolving the term\nfrom the core when not provided."
|
|
74
|
+
"text": "Resolved \"Powered by Kritzel\" label. Passed in by the engine so the badge\r\nre-renders when the active locale changes. Falls back to resolving the term\r\nfrom the core when not provided."
|
|
75
75
|
},
|
|
76
76
|
"getter": false,
|
|
77
77
|
"setter": false,
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
justify-content: center;
|
|
4
|
-
align-items: center;
|
|
5
|
-
border-radius: 50%;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
user-select: none;
|
|
8
|
-
flex-shrink: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.avatar-image {
|
|
12
|
-
display: block;
|
|
13
|
-
width: 100%;
|
|
14
|
-
height: 100%;
|
|
15
|
-
object-fit: cover;
|
|
16
|
-
border-radius: 50%;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.avatar-initials {
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
width: 100%;
|
|
24
|
-
height: 100%;
|
|
25
|
-
border-radius: 50%;
|
|
26
|
-
color: var(--kritzel-avatar-initials-color, #ffffff);
|
|
27
|
-
font-weight: var(--kritzel-avatar-initials-font-weight, 500);
|
|
28
|
-
font-family: var(--kritzel-avatar-initials-font-family, sans-serif);
|
|
29
|
-
line-height: 1;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.avatar-default {
|
|
33
|
-
display: flex;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 100%;
|
|
38
|
-
border-radius: 50%;
|
|
39
|
-
background-color: var(--kritzel-avatar-default-background, #e0e0e0);
|
|
40
|
-
color: var(--kritzel-avatar-default-color, #9e9e9e);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.avatar-default svg {
|
|
44
|
-
width: 60%;
|
|
45
|
-
height: 60%;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
:host(.has-image) {
|
|
49
|
-
border: var(--kritzel-avatar-border, none);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host(.has-initials) {
|
|
53
|
-
border: var(--kritzel-avatar-border, none);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host(.has-default) {
|
|
57
|
-
border: var(--kritzel-avatar-border, none);
|
|
58
|
-
}
|
|
1
|
+
:host {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
border-radius: 50%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
user-select: none;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.avatar-image {
|
|
12
|
+
display: block;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
object-fit: cover;
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.avatar-initials {
|
|
20
|
+
display: flex;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: 100%;
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
color: var(--kritzel-avatar-initials-color, #ffffff);
|
|
27
|
+
font-weight: var(--kritzel-avatar-initials-font-weight, 500);
|
|
28
|
+
font-family: var(--kritzel-avatar-initials-font-family, sans-serif);
|
|
29
|
+
line-height: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.avatar-default {
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background-color: var(--kritzel-avatar-default-background, #e0e0e0);
|
|
40
|
+
color: var(--kritzel-avatar-default-color, #9e9e9e);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.avatar-default svg {
|
|
44
|
+
width: 60%;
|
|
45
|
+
height: 60%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host(.has-image) {
|
|
49
|
+
border: var(--kritzel-avatar-border, none);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host(.has-initials) {
|
|
53
|
+
border: var(--kritzel-avatar-border, none);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:host(.has-default) {
|
|
57
|
+
border: var(--kritzel-avatar-border, none);
|
|
58
|
+
}
|
|
@@ -81,16 +81,16 @@ export class KritzelAvatar {
|
|
|
81
81
|
height: `${this.size}px`,
|
|
82
82
|
fontSize: `${Math.round(this.size * 0.4)}px`,
|
|
83
83
|
};
|
|
84
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '020217baf0aa2736af33c5a003e89406322e5fdc', style: containerStyles, class: {
|
|
85
85
|
'has-image': !!showImage,
|
|
86
86
|
'has-initials': !!showInitials,
|
|
87
87
|
'has-default': !!showDefaultIcon,
|
|
88
|
-
}, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: '
|
|
88
|
+
}, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: '2f54dad2260ebf38cfe8c57e28899c98729e7e38', src: imageUrl, alt: "", class: "avatar-image", ref: (el) => {
|
|
89
89
|
if (el) {
|
|
90
90
|
el.referrerPolicy = 'no-referrer';
|
|
91
91
|
el.crossOrigin = 'anonymous';
|
|
92
92
|
}
|
|
93
|
-
}, onError: this.handleImageError })), showInitials && (h("span", { key: '
|
|
93
|
+
}, onError: this.handleImageError })), showInitials && (h("span", { key: 'a97435d30044a37f15ce72ed51439e9c682c0aa3', class: "avatar-initials", style: { backgroundColor: this.getBackgroundColor() } }, initials)), showDefaultIcon && (h("span", { key: '6d0893d3f15a2d68a93f3fcf1b0fbd36786be0eb', class: "avatar-default" }, h("svg", { key: '688a9a1f88e22f4f3c3085675618b5f5f460d8f7', viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: 'd12c67677e162534b2ad92535acc6a836df179c7', d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }))))));
|
|
94
94
|
}
|
|
95
95
|
static get is() { return "kritzel-avatar"; }
|
|
96
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: flex-start;
|
|
4
|
-
gap: 8px;
|
|
5
|
-
padding: 8px;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
width: 100%;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.brush-style-button {
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
|
-
align-items: center;
|
|
14
|
-
width: 42px;
|
|
15
|
-
height: 32px;
|
|
16
|
-
padding: 0;
|
|
17
|
-
border: none;
|
|
18
|
-
outline: none;
|
|
19
|
-
background: none;
|
|
20
|
-
border-radius: 0;
|
|
21
|
-
color: var(--control-text-color);
|
|
22
|
-
font-weight: bold;
|
|
23
|
-
-webkit-tap-highlight-color: transparent;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.font-style-button:not(:last-child) {
|
|
27
|
-
border-right: 1px solid #333333;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.font-style-button:hover {
|
|
31
|
-
background-color: var(--control-hover-bg);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.font-style-button:active {
|
|
35
|
-
background-color: var(--control-active-bg);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.font-style-button.selected,
|
|
39
|
-
.font-style-button.selected:hover,
|
|
40
|
-
.font-style-button.selected:active {
|
|
41
|
-
background-color: var(--control-selected-bg);
|
|
42
|
-
color: var(--control-selected-color);
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
5
|
+
padding: 8px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.brush-style-button {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 42px;
|
|
15
|
+
height: 32px;
|
|
16
|
+
padding: 0;
|
|
17
|
+
border: none;
|
|
18
|
+
outline: none;
|
|
19
|
+
background: none;
|
|
20
|
+
border-radius: 0;
|
|
21
|
+
color: var(--control-text-color);
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
-webkit-tap-highlight-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.font-style-button:not(:last-child) {
|
|
27
|
+
border-right: 1px solid #333333;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.font-style-button:hover {
|
|
31
|
+
background-color: var(--control-hover-bg);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.font-style-button:active {
|
|
35
|
+
background-color: var(--control-active-bg);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.font-style-button.selected,
|
|
39
|
+
.font-style-button.selected:hover,
|
|
40
|
+
.font-style-button.selected:active {
|
|
41
|
+
background-color: var(--control-selected-bg);
|
|
42
|
+
color: var(--control-selected-color);
|
|
43
43
|
}
|