kritzel-stencil 0.1.83 → 0.1.86

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.
Files changed (187) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/index.cjs.js +1 -1
  3. package/dist/cjs/kritzel-active-users_42.cjs.entry.js +94 -94
  4. package/dist/cjs/kritzel-brush-style.cjs.entry.js +1 -1
  5. package/dist/cjs/{workspace.migrations-K5oVASsb.js → workspace.migrations-Dj-FiYEO.js} +6 -6
  6. package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.css +115 -115
  7. package/dist/collection/components/core/kritzel-awareness-cursors/kritzel-awareness-cursors.js +1 -1
  8. package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.css +10 -10
  9. package/dist/collection/components/core/kritzel-cursor-trail/kritzel-cursor-trail.js +1 -1
  10. package/dist/collection/components/core/kritzel-editor/kritzel-editor.css +71 -71
  11. package/dist/collection/components/core/kritzel-editor/kritzel-editor.js +12 -12
  12. package/dist/collection/components/core/kritzel-engine/kritzel-engine.css +99 -99
  13. package/dist/collection/components/core/kritzel-engine/kritzel-engine.js +14 -14
  14. package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.css +58 -58
  15. package/dist/collection/components/shared/kritzel-avatar/kritzel-avatar.js +3 -3
  16. package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.css +42 -42
  17. package/dist/collection/components/shared/kritzel-brush-style/kritzel-brush-style.js +3 -3
  18. package/dist/collection/components/shared/kritzel-button/kritzel-button.css +72 -72
  19. package/dist/collection/components/shared/kritzel-button/kritzel-button.js +2 -2
  20. package/dist/collection/components/shared/kritzel-color/kritzel-color.css +24 -24
  21. package/dist/collection/components/shared/kritzel-color/kritzel-color.js +2 -2
  22. package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.css +46 -46
  23. package/dist/collection/components/shared/kritzel-color-palette/kritzel-color-palette.js +1 -1
  24. package/dist/collection/components/shared/kritzel-dialog/kritzel-dialog.css +179 -179
  25. package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.css +190 -190
  26. package/dist/collection/components/shared/kritzel-dropdown/kritzel-dropdown.js +2 -2
  27. package/dist/collection/components/shared/kritzel-font/kritzel-font.css +10 -10
  28. package/dist/collection/components/shared/kritzel-font/kritzel-font.js +1 -1
  29. package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.css +48 -48
  30. package/dist/collection/components/shared/kritzel-font-family/kritzel-font-family.js +3 -3
  31. package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.css +30 -30
  32. package/dist/collection/components/shared/kritzel-font-size/kritzel-font-size.js +1 -1
  33. package/dist/collection/components/shared/kritzel-icon/kritzel-icon.css +18 -18
  34. package/dist/collection/components/shared/kritzel-input/kritzel-input.css +69 -69
  35. package/dist/collection/components/shared/kritzel-input/kritzel-input.js +1 -1
  36. package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.css +60 -60
  37. package/dist/collection/components/shared/kritzel-line-endings/kritzel-line-endings.js +3 -3
  38. package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.css +190 -190
  39. package/dist/collection/components/shared/kritzel-master-detail/kritzel-master-detail.js +3 -3
  40. package/dist/collection/components/shared/kritzel-menu/kritzel-menu.css +34 -34
  41. package/dist/collection/components/shared/kritzel-menu/kritzel-menu.js +1 -1
  42. package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.css +160 -160
  43. package/dist/collection/components/shared/kritzel-menu-item/kritzel-menu-item.js +2 -2
  44. package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.css +102 -102
  45. package/dist/collection/components/shared/kritzel-numeric-input/kritzel-numeric-input.js +1 -1
  46. package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.css +85 -85
  47. package/dist/collection/components/shared/kritzel-opacity-slider/kritzel-opacity-slider.js +1 -1
  48. package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.css +58 -58
  49. package/dist/collection/components/shared/kritzel-pill-tabs/kritzel-pill-tabs.js +2 -2
  50. package/dist/collection/components/shared/kritzel-portal/kritzel-portal.js +1 -1
  51. package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.css +47 -47
  52. package/dist/collection/components/shared/kritzel-shape-fill/kritzel-shape-fill.js +4 -4
  53. package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.css +48 -48
  54. package/dist/collection/components/shared/kritzel-slide-toggle/kritzel-slide-toggle.js +1 -1
  55. package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.css +78 -78
  56. package/dist/collection/components/shared/kritzel-split-button/kritzel-split-button.js +1 -1
  57. package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.css +37 -37
  58. package/dist/collection/components/shared/kritzel-stroke-size/kritzel-stroke-size.js +1 -1
  59. package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.css +18 -18
  60. package/dist/collection/components/shared/kritzel-tooltip/kritzel-tooltip.js +2 -2
  61. package/dist/collection/components/ui/kritzel-active-users/kritzel-active-users.css +65 -65
  62. package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.css +42 -42
  63. package/dist/collection/components/ui/kritzel-back-to-content/kritzel-back-to-content.js +1 -1
  64. package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.css +105 -105
  65. package/dist/collection/components/ui/kritzel-context-menu/kritzel-context-menu.js +1 -1
  66. package/dist/collection/components/ui/kritzel-controls/kritzel-controls.css +330 -330
  67. package/dist/collection/components/ui/kritzel-controls/kritzel-controls.js +5 -5
  68. package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.css +11 -11
  69. package/dist/collection/components/ui/kritzel-current-user/kritzel-current-user.js +1 -1
  70. package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.css +29 -29
  71. package/dist/collection/components/ui/kritzel-current-user-dialog/kritzel-current-user-dialog.js +1 -1
  72. package/dist/collection/components/ui/kritzel-export/kritzel-export.css +89 -89
  73. package/dist/collection/components/ui/kritzel-export/kritzel-export.js +1 -1
  74. package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.css +98 -98
  75. package/dist/collection/components/ui/kritzel-login-dialog/kritzel-login-dialog.js +1 -1
  76. package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.css +45 -45
  77. package/dist/collection/components/ui/kritzel-more-menu/kritzel-more-menu.js +2 -2
  78. package/dist/collection/components/ui/kritzel-settings/kritzel-settings.css +129 -129
  79. package/dist/collection/components/ui/kritzel-settings/kritzel-settings.js +1 -1
  80. package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.css +133 -133
  81. package/dist/collection/components/ui/kritzel-share-dialog/kritzel-share-dialog.js +2 -2
  82. package/dist/collection/components/ui/kritzel-tool-config/kritzel-tool-config.css +38 -38
  83. package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.css +45 -45
  84. package/dist/collection/components/ui/kritzel-utility-panel/kritzel-utility-panel.js +1 -1
  85. package/dist/collection/components/ui/kritzel-workspace-manager/kritzel-workspace-manager.css +5 -5
  86. package/dist/collection/constants/version.js +1 -1
  87. package/dist/collection/helpers/cursor.helper.js +6 -6
  88. package/dist/collection/helpers/svg-export.helper.js +31 -31
  89. package/dist/components/index.js +1 -1
  90. package/dist/components/kritzel-active-users.js +1 -1
  91. package/dist/components/kritzel-avatar.js +1 -1
  92. package/dist/components/kritzel-awareness-cursors.js +1 -1
  93. package/dist/components/kritzel-back-to-content.js +1 -1
  94. package/dist/components/kritzel-brush-style.js +1 -1
  95. package/dist/components/kritzel-button.js +1 -1
  96. package/dist/components/kritzel-color-palette.js +1 -1
  97. package/dist/components/kritzel-color.js +1 -1
  98. package/dist/components/kritzel-context-menu.js +1 -1
  99. package/dist/components/kritzel-controls.js +1 -1
  100. package/dist/components/kritzel-current-user-dialog.js +1 -1
  101. package/dist/components/kritzel-current-user.js +1 -1
  102. package/dist/components/kritzel-cursor-trail.js +1 -1
  103. package/dist/components/kritzel-dialog.js +1 -1
  104. package/dist/components/kritzel-dropdown.js +1 -1
  105. package/dist/components/kritzel-editor.js +1 -1
  106. package/dist/components/kritzel-engine.js +1 -1
  107. package/dist/components/kritzel-export.js +1 -1
  108. package/dist/components/kritzel-font-family.js +1 -1
  109. package/dist/components/kritzel-font-size.js +1 -1
  110. package/dist/components/kritzel-font.js +1 -1
  111. package/dist/components/kritzel-input.js +1 -1
  112. package/dist/components/kritzel-line-endings.js +1 -1
  113. package/dist/components/kritzel-login-dialog.js +1 -1
  114. package/dist/components/kritzel-master-detail.js +1 -1
  115. package/dist/components/kritzel-menu-item.js +1 -1
  116. package/dist/components/kritzel-menu.js +1 -1
  117. package/dist/components/kritzel-more-menu.js +1 -1
  118. package/dist/components/kritzel-numeric-input.js +1 -1
  119. package/dist/components/kritzel-opacity-slider.js +1 -1
  120. package/dist/components/kritzel-pill-tabs.js +1 -1
  121. package/dist/components/kritzel-portal.js +1 -1
  122. package/dist/components/kritzel-settings.js +1 -1
  123. package/dist/components/kritzel-shape-fill.js +1 -1
  124. package/dist/components/kritzel-share-dialog.js +1 -1
  125. package/dist/components/kritzel-slide-toggle.js +1 -1
  126. package/dist/components/kritzel-split-button.js +1 -1
  127. package/dist/components/kritzel-stroke-size.js +1 -1
  128. package/dist/components/kritzel-tool-config.js +1 -1
  129. package/dist/components/kritzel-tooltip.js +1 -1
  130. package/dist/components/kritzel-utility-panel.js +1 -1
  131. package/dist/components/kritzel-workspace-manager.js +1 -1
  132. package/dist/components/{p-B5WII1Lk.js → p-0cs6zQLB.js} +1 -1
  133. package/dist/components/p-7yTPTHbQ.js +1 -0
  134. package/dist/components/{p-DwemlMvt.js → p-B3UJucEe.js} +1 -1
  135. package/dist/components/{p-DUQmBcTy.js → p-B5a3arJg.js} +1 -1
  136. package/dist/components/{p-DCH4Rlqx.js → p-BIdZCZ_l.js} +1 -1
  137. package/dist/components/{p-CNMpVlot.js → p-BMPgR5Bt.js} +1 -1
  138. package/dist/components/{p-CKfjz1gj.js → p-BOcGfEkz.js} +1 -1
  139. package/dist/components/{p-DUnKjQN7.js → p-BVEYAGm1.js} +1 -1
  140. package/dist/components/{p-CMGHx71q.js → p-BYX50YSd.js} +1 -1
  141. package/dist/components/{p-BjPmEs5A.js → p-BfJav4Zz.js} +1 -1
  142. package/dist/components/{p-CLo-TjD_.js → p-BgopgrfE.js} +1 -1
  143. package/dist/components/{p-CJzg_ejc.js → p-BsQ4E7I8.js} +1 -1
  144. package/dist/components/{p-V3VW2JKl.js → p-C-ZoFpSf.js} +1 -1
  145. package/dist/components/p-C0U3Mg5I.js +1 -0
  146. package/dist/components/{p-Brwz_Dpb.js → p-C3Dwuqka.js} +1 -1
  147. package/dist/components/{p-CS7r-zhx.js → p-C4vg_-vg.js} +1 -1
  148. package/dist/components/{p-DrsORMoT.js → p-C4zfI-dj.js} +1 -1
  149. package/dist/components/{p-cjeDomsc.js → p-CBTqCoUx.js} +1 -1
  150. package/dist/components/{p-BaaFG0p-.js → p-CBq-KE9C.js} +1 -1
  151. package/dist/components/{p-CfEGaTaV.js → p-CTj2UdbS.js} +1 -1
  152. package/dist/components/{p-Bat829Bg.js → p-C_OSXZqJ.js} +1 -1
  153. package/dist/components/{p-B4F19Aqj.js → p-CaKSDRid.js} +1 -1
  154. package/dist/components/{p-BZ8bK8qT.js → p-CekG3_ce.js} +1 -1
  155. package/dist/components/{p-Dw0Obsn5.js → p-Cz2gQKbL.js} +1 -1
  156. package/dist/components/{p-VxgCvVox.js → p-CzIuqMQA.js} +1 -1
  157. package/dist/components/{p-1ppb4M65.js → p-D6KNaj_Y.js} +1 -1
  158. package/dist/components/{p-rNu5JVNH.js → p-D8fQwcNC.js} +1 -1
  159. package/dist/components/{p-CYl_JKvH.js → p-DBZRCL1u.js} +1 -1
  160. package/dist/components/{p-DkT0KZCm.js → p-DDBaFNFi.js} +1 -1
  161. package/dist/components/{p-CM7rYf9A.js → p-DEd2L0e3.js} +1 -1
  162. package/dist/components/{p-DYcsC2zO.js → p-DMvIGnOt.js} +1 -1
  163. package/dist/components/{p-C9zsWWH2.js → p-DPmAV68B.js} +1 -1
  164. package/dist/components/{p-7yR-sKH8.js → p-DRbR0Li3.js} +1 -1
  165. package/dist/components/{p-C-MtTi6x.js → p-DXO_ppUK.js} +1 -1
  166. package/dist/components/p-DemKKw9U.js +1 -0
  167. package/dist/components/{p-D5BXoK9m.js → p-Dxb22STM.js} +1 -1
  168. package/dist/components/p-Nq8UyPCc.js +1 -0
  169. package/dist/components/{p-DEOUiiyI.js → p-R9M5PnAz.js} +1 -1
  170. package/dist/components/{p-D7pwbRUy.js → p-qBqQhAmh.js} +1 -1
  171. package/dist/esm/index.js +1 -1
  172. package/dist/esm/kritzel-active-users_42.entry.js +94 -94
  173. package/dist/esm/kritzel-brush-style.entry.js +1 -1
  174. package/dist/esm/{workspace.migrations-D5iSPf3E.js → workspace.migrations-ByWmiPl8.js} +6 -6
  175. package/dist/stencil/index.esm.js +1 -1
  176. package/dist/stencil/{p-b0be4da1.entry.js → p-10c2b77c.entry.js} +1 -1
  177. package/dist/stencil/p-b38650d2.entry.js +9 -0
  178. package/dist/stencil/stencil.esm.js +1 -1
  179. package/dist/types/constants/version.d.ts +1 -1
  180. package/package.json +2 -2
  181. package/readme.md +114 -114
  182. package/dist/components/p-B4h_tGG1.js +0 -1
  183. package/dist/components/p-CJKsuQun.js +0 -1
  184. package/dist/components/p-DKeBfe_l.js +0 -1
  185. package/dist/components/p-HK-6khHo.js +0 -1
  186. package/dist/stencil/p-c28b30ab.entry.js +0 -9
  187. /package/dist/stencil/{p-D5iSPf3E.js → p-ByWmiPl8.js} +0 -0
@@ -1,100 +1,100 @@
1
- :host {
2
- display: block;
3
- position: relative;
4
- height: 100%;
5
- width: 100%;
6
- overflow: hidden;
7
- background-color: var(--kritzel-engine-background-color, #ffffff);
8
- }
9
-
10
- :host,
11
- :host * {
12
- touch-action: none;
13
- user-select: none;
14
- }
15
-
16
- .ProseMirror {
17
- outline: none;
18
- }
19
-
20
- p, h1, h2, h3, h4, h5, h6, blockquote, pre {
21
- margin: 0;
22
- padding: 0;
23
- }
24
-
25
- .workspace-loading-overlay {
26
- position: absolute;
27
- inset: 0;
28
- z-index: 9999;
29
- display: flex;
30
- align-items: center;
31
- justify-content: center;
32
- gap: 10px;
33
- background-color: var(--kritzel-loading-overlay-background, rgba(255, 255, 255, 0.6));
34
- color: var(--kritzel-loading-overlay-color, #333);
35
- font-family: var(--kritzel-font-family, sans-serif);
36
- font-size: 1.25rem;
37
- pointer-events: all;
38
- animation: workspace-loading-fade-in 200ms ease-out var(--kritzel-loading-overlay-delay, 300ms) forwards;
39
- opacity: 0;
40
- }
41
-
42
- .workspace-loading-spinner {
43
- width: 20px;
44
- height: 20px;
45
- box-sizing: border-box;
46
- display: block;
47
- flex-shrink: 0;
48
- border: 2px solid var(--kritzel-loading-overlay-spinner-color, #cccccc);
49
- border-top-color: var(--kritzel-loading-overlay-spinner-active-color, #333333);
50
- border-radius: 50%;
51
- animation: workspace-loading-spin 0.6s linear infinite;
52
- }
53
-
54
- @keyframes workspace-loading-spin {
55
- to {
56
- transform: rotate(360deg);
57
- }
58
- }
59
-
60
- @keyframes workspace-loading-fade-in {
61
- to {
62
- opacity: 1;
63
- }
64
- }
65
-
66
- .debug-panel {
67
- position: absolute;
68
- pointer-events: none;
69
- top: 0;
70
- right: 0;
71
- }
72
-
73
- .origin {
74
- position: relative;
75
- top: 0;
76
- left: 0;
77
- height: 0;
78
- width: 0;
79
- pointer-events: none;
80
- -webkit-transform-origin: top left;
81
- -moz-transform-origin: top left;
82
- transform-origin: top left;
83
- overflow: visible;
84
- }
85
-
86
- .object {
87
- overflow: visible;
88
- }
89
-
90
- .PlaygroundEditorTheme__quote {
91
- margin: 0;
92
- margin-left: 20px;
93
- margin-bottom: 10px;
94
- font-size: 15px;
95
- color: rgb(101, 103, 107);
96
- border-left-color: rgb(206, 208, 212);
97
- border-left-width: 4px;
98
- border-left-style: solid;
99
- padding-left: 16px;
1
+ :host {
2
+ display: block;
3
+ position: relative;
4
+ height: 100%;
5
+ width: 100%;
6
+ overflow: hidden;
7
+ background-color: var(--kritzel-engine-background-color, #ffffff);
8
+ }
9
+
10
+ :host,
11
+ :host * {
12
+ touch-action: none;
13
+ user-select: none;
14
+ }
15
+
16
+ .ProseMirror {
17
+ outline: none;
18
+ }
19
+
20
+ p, h1, h2, h3, h4, h5, h6, blockquote, pre {
21
+ margin: 0;
22
+ padding: 0;
23
+ }
24
+
25
+ .workspace-loading-overlay {
26
+ position: absolute;
27
+ inset: 0;
28
+ z-index: 9999;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ gap: 10px;
33
+ background-color: var(--kritzel-loading-overlay-background, rgba(255, 255, 255, 0.6));
34
+ color: var(--kritzel-loading-overlay-color, #333);
35
+ font-family: var(--kritzel-font-family, sans-serif);
36
+ font-size: 1.25rem;
37
+ pointer-events: all;
38
+ animation: workspace-loading-fade-in 200ms ease-out var(--kritzel-loading-overlay-delay, 300ms) forwards;
39
+ opacity: 0;
40
+ }
41
+
42
+ .workspace-loading-spinner {
43
+ width: 20px;
44
+ height: 20px;
45
+ box-sizing: border-box;
46
+ display: block;
47
+ flex-shrink: 0;
48
+ border: 2px solid var(--kritzel-loading-overlay-spinner-color, #cccccc);
49
+ border-top-color: var(--kritzel-loading-overlay-spinner-active-color, #333333);
50
+ border-radius: 50%;
51
+ animation: workspace-loading-spin 0.6s linear infinite;
52
+ }
53
+
54
+ @keyframes workspace-loading-spin {
55
+ to {
56
+ transform: rotate(360deg);
57
+ }
58
+ }
59
+
60
+ @keyframes workspace-loading-fade-in {
61
+ to {
62
+ opacity: 1;
63
+ }
64
+ }
65
+
66
+ .debug-panel {
67
+ position: absolute;
68
+ pointer-events: none;
69
+ top: 0;
70
+ right: 0;
71
+ }
72
+
73
+ .origin {
74
+ position: relative;
75
+ top: 0;
76
+ left: 0;
77
+ height: 0;
78
+ width: 0;
79
+ pointer-events: none;
80
+ -webkit-transform-origin: top left;
81
+ -moz-transform-origin: top left;
82
+ transform-origin: top left;
83
+ overflow: visible;
84
+ }
85
+
86
+ .object {
87
+ overflow: visible;
88
+ }
89
+
90
+ .PlaygroundEditorTheme__quote {
91
+ margin: 0;
92
+ margin-left: 20px;
93
+ margin-bottom: 10px;
94
+ font-size: 15px;
95
+ color: rgb(101, 103, 107);
96
+ border-left-color: rgb(206, 208, 212);
97
+ border-left-width: 4px;
98
+ border-left-style: solid;
99
+ padding-left: 16px;
100
100
  }
@@ -3155,7 +3155,7 @@ export class KritzelEngine {
3155
3155
  "return": "Promise<T[]>"
3156
3156
  },
3157
3157
  "docs": {
3158
- "text": "Returns all objects that match the given predicate function.\r\nExcludes internal selection-related objects (selection groups and selection boxes).",
3158
+ "text": "Returns all objects that match the given predicate function.\nExcludes internal selection-related objects (selection groups and selection boxes).",
3159
3159
  "tags": [{
3160
3160
  "name": "param",
3161
3161
  "text": "predicate - A filter function called for each object. Return `true` to include."
@@ -3164,7 +3164,7 @@ export class KritzelEngine {
3164
3164
  "text": "An array of matching objects."
3165
3165
  }, {
3166
3166
  "name": "example",
3167
- "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```"
3167
+ "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```"
3168
3168
  }]
3169
3169
  }
3170
3170
  },
@@ -3493,7 +3493,7 @@ export class KritzelEngine {
3493
3493
  "return": "Promise<boolean>"
3494
3494
  },
3495
3495
  "docs": {
3496
- "text": "Pans and zooms the viewport to fit the nearest content, with padding.\r\nUseful when the user has panned away from all objects.",
3496
+ "text": "Pans and zooms the viewport to fit the nearest content, with padding.\nUseful when the user has panned away from all objects.",
3497
3497
  "tags": [{
3498
3498
  "name": "returns",
3499
3499
  "text": "`true` if content was found and the viewport was adjusted, `false` otherwise."
@@ -3517,7 +3517,7 @@ export class KritzelEngine {
3517
3517
  "return": "Promise<boolean>"
3518
3518
  },
3519
3519
  "docs": {
3520
- "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.",
3520
+ "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.",
3521
3521
  "tags": [{
3522
3522
  "name": "param",
3523
3523
  "text": "animate - Whether to animate the viewport transition (default: true)."
@@ -3621,7 +3621,7 @@ export class KritzelEngine {
3621
3621
  "return": "Promise<void>"
3622
3622
  },
3623
3623
  "docs": {
3624
- "text": "Zooms the viewport to the given scale level.\r\nOptionally centers on a world point; if omitted, zooms around the viewport center.",
3624
+ "text": "Zooms the viewport to the given scale level.\nOptionally centers on a world point; if omitted, zooms around the viewport center.",
3625
3625
  "tags": [{
3626
3626
  "name": "param",
3627
3627
  "text": "scale - Target scale level."
@@ -3872,7 +3872,7 @@ export class KritzelEngine {
3872
3872
  "return": "Promise<string>"
3873
3873
  },
3874
3874
  "docs": {
3875
- "text": "Generates an SVG string from the currently selected objects.\r\nCreates clean, standards-compliant SVG markup by directly serializing object properties.",
3875
+ "text": "Generates an SVG string from the currently selected objects.\nCreates clean, standards-compliant SVG markup by directly serializing object properties.",
3876
3876
  "tags": [{
3877
3877
  "name": "param",
3878
3878
  "text": "options - Optional export settings (theme, padding)."
@@ -3899,7 +3899,7 @@ export class KritzelEngine {
3899
3899
  "return": "Promise<void>"
3900
3900
  },
3901
3901
  "docs": {
3902
- "text": "Exports the currently selected objects as an SVG file and triggers a browser download.\r\nCreates clean, standards-compliant SVG markup suitable for import into vector editors.",
3902
+ "text": "Exports the currently selected objects as an SVG file and triggers a browser download.\nCreates clean, standards-compliant SVG markup suitable for import into vector editors.",
3903
3903
  "tags": [{
3904
3904
  "name": "param",
3905
3905
  "text": "options - Optional export settings (theme, padding)."
@@ -3923,7 +3923,7 @@ export class KritzelEngine {
3923
3923
  "return": "Promise<string>"
3924
3924
  },
3925
3925
  "docs": {
3926
- "text": "Generates a PNG data URL from the currently selected objects.\r\nConverts the SVG representation to a rasterized PNG image.",
3926
+ "text": "Generates a PNG data URL from the currently selected objects.\nConverts the SVG representation to a rasterized PNG image.",
3927
3927
  "tags": [{
3928
3928
  "name": "param",
3929
3929
  "text": "options - Optional export settings (theme, padding, scale for resolution)."
@@ -3970,7 +3970,7 @@ export class KritzelEngine {
3970
3970
  "return": "Promise<string>"
3971
3971
  },
3972
3972
  "docs": {
3973
- "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.",
3973
+ "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.",
3974
3974
  "tags": [{
3975
3975
  "name": "returns",
3976
3976
  "text": "A JSON string representing the complete workspace state."
@@ -4000,7 +4000,7 @@ export class KritzelEngine {
4000
4000
  "return": "Promise<void>"
4001
4001
  },
4002
4002
  "docs": {
4003
- "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.",
4003
+ "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.",
4004
4004
  "tags": [{
4005
4005
  "name": "param",
4006
4006
  "text": "json - A JSON string containing workspace data (from exportAsJson)."
@@ -4033,7 +4033,7 @@ export class KritzelEngine {
4033
4033
  "return": "Promise<number>"
4034
4034
  },
4035
4035
  "docs": {
4036
- "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.",
4036
+ "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.",
4037
4037
  "tags": [{
4038
4038
  "name": "param",
4039
4039
  "text": "json - A JSON string containing workspace data (from exportAsJson)."
@@ -4093,7 +4093,7 @@ export class KritzelEngine {
4093
4093
  "return": "Promise<void>"
4094
4094
  },
4095
4095
  "docs": {
4096
- "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.",
4096
+ "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.",
4097
4097
  "tags": [{
4098
4098
  "name": "returns",
4099
4099
  "text": "A promise that resolves when the import is complete or rejects on error/cancel."
@@ -4276,7 +4276,7 @@ export class KritzelEngine {
4276
4276
  "return": "Promise<void>"
4277
4277
  },
4278
4278
  "docs": {
4279
- "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.",
4279
+ "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.",
4280
4280
  "tags": [{
4281
4281
  "name": "param",
4282
4282
  "text": "token - The connection token identifying the shared workspace"
@@ -4296,7 +4296,7 @@ export class KritzelEngine {
4296
4296
  "return": "Promise<void>"
4297
4297
  },
4298
4298
  "docs": {
4299
- "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).",
4299
+ "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).",
4300
4300
  "tags": []
4301
4301
  }
4302
4302
  }
@@ -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: '67c0c1f944b9c835d1685d2b743114a1b5a1f061', style: containerStyles, class: {
84
+ return (h(Host, { key: '2067605684a743be45059efd562697ff21fefbcb', 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: 'd71ccd7449a27133bcf8cc01f3cd654cc9b00142', src: imageUrl, alt: "", class: "avatar-image", ref: (el) => {
88
+ }, role: "img", "aria-label": this.getDisplayName() || 'User avatar' }, showImage && (h("img", { key: '1ed322318335deb011087494a2c437849b5a23a0', 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: '818ad4a24d6489565dffc8c64b3d4e76b701444c', class: "avatar-initials", style: { backgroundColor: this.getBackgroundColor() } }, initials)), showDefaultIcon && (h("span", { key: '87af93fd968f3bf5b1f86295de6bd4b71c94120c', class: "avatar-default" }, h("svg", { key: '3267317fe99fb8d90432e207516bb48f603c08ed', viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: '9e4e225f9a058a24f63b508f36969c8c429fccd6', 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" }))))));
93
+ }, onError: this.handleImageError })), showInitials && (h("span", { key: 'ff99dded4cb17d6c25880b54e3875c262dfc0440', class: "avatar-initials", style: { backgroundColor: this.getBackgroundColor() } }, initials)), showDefaultIcon && (h("span", { key: '5a217c6a1366dea3ceee8bfa03a38917cad7a9f9', class: "avatar-default" }, h("svg", { key: 'f4537e21772e6e6f1bb60835ad7a56123a200dd7', viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { key: '29649695038a506e1caeba3a8b6c066860fb5a1d', 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
  }
@@ -14,7 +14,7 @@ export class KritzelBrushStyle {
14
14
  value: option.value,
15
15
  label: option.label,
16
16
  }));
17
- return (h(Host, { key: '66ecc7850e816be6f0c38e2a53d96493e8141a7c' }, h("kritzel-dropdown", { key: '792caa0c4ff4c8ee3c5dfd404ba5456e6a4c16e4', options: dropdownOptions, value: this.type, onValueChanged: event => this.handleDropdownValueChange(event) }, h("button", { key: '7c82f747c86846c19635be47c797371300855f5e', class: "brush-style-button", slot: "prefix" }, h("kritzel-icon", { key: '59d4863c0660d0c6281031321e11518c57d8ae71', name: this.type, size: 16 })))));
17
+ return (h(Host, { key: '126d6ebbd4b90eef936ccb90905da373a5f9b3ac' }, h("kritzel-dropdown", { key: '22e8e49b74c43b410384e247d4b0c779b1ee7b2e', options: dropdownOptions, value: this.type, onValueChanged: event => this.handleDropdownValueChange(event) }, h("button", { key: '0b00fc066db7a2afb5ab101bc20badbb8c065d4a', class: "brush-style-button", slot: "prefix" }, h("kritzel-icon", { key: 'ed074981009c37c86a22cbc70656663060c22553', name: this.type, size: 16 })))));
18
18
  }
19
19
  static get is() { return "kritzel-brush-style"; }
20
20
  static get encapsulation() { return "shadow"; }
@@ -59,7 +59,7 @@ export class KritzelBrushStyle {
59
59
  "references": {
60
60
  "BrushStyleOption": {
61
61
  "location": "local",
62
- "path": "C:/Projects/kritzel/libs/kritzel-stencil/src/components/shared/kritzel-brush-style/kritzel-brush-style.tsx",
62
+ "path": "/home/runner/work/kritzel/kritzel/libs/kritzel-stencil/src/components/shared/kritzel-brush-style/kritzel-brush-style.tsx",
63
63
  "id": "src/components/shared/kritzel-brush-style/kritzel-brush-style.tsx::BrushStyleOption"
64
64
  }
65
65
  }
@@ -72,7 +72,7 @@ export class KritzelBrushStyle {
72
72
  },
73
73
  "getter": false,
74
74
  "setter": false,
75
- "defaultValue": "[\r\n { value: 'pen', label: 'Pen' },\r\n { value: 'highlighter', label: 'Highlighter' },\r\n ]"
75
+ "defaultValue": "[\n { value: 'pen', label: 'Pen' },\n { value: 'highlighter', label: 'Highlighter' },\n ]"
76
76
  }
77
77
  };
78
78
  }