@zsviczian/excalidraw 0.17.1-obsidian-14 → 0.17.1-obsidian-15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zsviczian/excalidraw",
3
- "version": "0.17.1-obsidian-14",
3
+ "version": "0.17.1-obsidian-15",
4
4
  "main": "main.js",
5
5
  "types": "types/excalidraw/index.d.ts",
6
6
  "files": [
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@braintree/sanitize-url": "6.0.2",
48
- "@excalidraw/laser-pointer": "1.3.1",
48
+ "@zsviczian/laser-pointer": "1.3.1",
49
49
  "@zsviczian/mermaid-to-excalidraw": "0.2.0-obsidian-2",
50
50
  "@excalidraw/random-username": "1.1.0",
51
51
  "@radix-ui/react-popover": "1.0.3",
@@ -1,4 +1,4 @@
1
- import { LaserPointerOptions } from "@excalidraw/laser-pointer";
1
+ import { LaserPointerOptions } from "@zsviczian/laser-pointer";
2
2
  import { AnimationFrameHandler } from "./animation-frame-handler";
3
3
  import type App from "./components/App";
4
4
  export interface Trail {
@@ -0,0 +1,28 @@
1
+ import { LaserPointer } from "@excalidraw/laser-pointer";
2
+ import App from "../App";
3
+ declare global {
4
+ interface Window {
5
+ LPM: LaserPathManager;
6
+ }
7
+ }
8
+ export declare class LaserPathManager {
9
+ private app;
10
+ private ownState;
11
+ private collaboratorsState;
12
+ private rafId;
13
+ private isDrawing;
14
+ private container;
15
+ constructor(app: App);
16
+ destroy(): void;
17
+ startPath(x: number, y: number): void;
18
+ addPointToPath(x: number, y: number): void;
19
+ endPath(): void;
20
+ private updatePath;
21
+ private isRunning;
22
+ start(svg?: SVGSVGElement): void;
23
+ stop(): void;
24
+ loop(): void;
25
+ draw(path: LaserPointer): string;
26
+ updateCollabolatorsState(): void;
27
+ update(): void;
28
+ }
@@ -0,0 +1,10 @@
1
+ import "../ToolIcon.scss";
2
+ type LaserPointerIconProps = {
3
+ title?: string;
4
+ name?: string;
5
+ checked: boolean;
6
+ onChange?(): void;
7
+ isMobile?: boolean;
8
+ };
9
+ export declare const LaserPointerButton: (props: LaserPointerIconProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { LaserPathManager } from "./LaserPathManager";
2
+ import "./LaserToolOverlay.scss";
3
+ type LaserToolOverlayProps = {
4
+ manager: LaserPathManager;
5
+ };
6
+ export declare const LaserToolOverlay: ({ manager }: LaserToolOverlayProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as TExcalidraw from "../index";
2
+ import "./App.scss";
3
+ import type { ExcalidrawImperativeAPI } from "../types";
4
+ declare global {
5
+ interface Window {
6
+ ExcalidrawLib: typeof TExcalidraw;
7
+ }
8
+ }
9
+ export interface AppProps {
10
+ appTitle: string;
11
+ useCustom: (api: ExcalidrawImperativeAPI | null, customArgs?: any[]) => void;
12
+ customArgs?: any[];
13
+ }
14
+ export default function App({ appTitle, useCustom, customArgs }: AppProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { ExcalidrawImperativeAPI } from "../types";
2
+ declare const CustomFooter: ({ excalidrawAPI, }: {
3
+ excalidrawAPI: ExcalidrawImperativeAPI;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default CustomFooter;
@@ -0,0 +1,5 @@
1
+ import type { ExcalidrawImperativeAPI } from "../types";
2
+ declare const MobileFooter: ({ excalidrawAPI, }: {
3
+ excalidrawAPI: ExcalidrawImperativeAPI;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
+ export default MobileFooter;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,290 @@
1
+ import type { ExcalidrawElementSkeleton } from "../data/transform";
2
+ declare const _default: {
3
+ elements: ExcalidrawElementSkeleton[];
4
+ appState: {
5
+ viewBackgroundColor: string;
6
+ currentItemFontFamily: number;
7
+ };
8
+ scrollToContent: boolean;
9
+ libraryItems: ({
10
+ type: string;
11
+ x: number;
12
+ y: number;
13
+ strokeColor: string;
14
+ backgroundColor: string;
15
+ width: number;
16
+ height: number;
17
+ strokeSharpness: string;
18
+ points: number[][];
19
+ }[] | ({
20
+ type: string;
21
+ fillStyle: string;
22
+ strokeWidth: number;
23
+ strokeStyle: string;
24
+ x: number;
25
+ y: number;
26
+ strokeColor: string;
27
+ backgroundColor: string;
28
+ width: number;
29
+ height: number;
30
+ groupIds: string[];
31
+ points: number[][];
32
+ roughness?: undefined;
33
+ opacity?: undefined;
34
+ angle?: undefined;
35
+ seed?: undefined;
36
+ strokeSharpness?: undefined;
37
+ boundElementIds?: undefined;
38
+ } | {
39
+ type: string;
40
+ fillStyle: string;
41
+ strokeWidth: number;
42
+ strokeStyle: string;
43
+ roughness: number;
44
+ opacity: number;
45
+ angle: number;
46
+ x: number;
47
+ y: number;
48
+ strokeColor: string;
49
+ backgroundColor: string;
50
+ width: number;
51
+ height: number;
52
+ seed: number;
53
+ groupIds: string[];
54
+ strokeSharpness: string;
55
+ points: number[][];
56
+ boundElementIds?: undefined;
57
+ } | {
58
+ type: string;
59
+ fillStyle: string;
60
+ strokeWidth: number;
61
+ strokeStyle: string;
62
+ roughness: number;
63
+ opacity: number;
64
+ angle: number;
65
+ x: number;
66
+ y: number;
67
+ strokeColor: string;
68
+ backgroundColor: string;
69
+ width: number;
70
+ height: number;
71
+ seed: number;
72
+ groupIds: string[];
73
+ strokeSharpness: string;
74
+ boundElementIds: string[];
75
+ points?: undefined;
76
+ } | {
77
+ type: string;
78
+ fillStyle: string;
79
+ strokeWidth: number;
80
+ strokeStyle: string;
81
+ roughness: number;
82
+ opacity: number;
83
+ angle: number;
84
+ x: number;
85
+ y: number;
86
+ strokeColor: string;
87
+ backgroundColor: string;
88
+ width: number;
89
+ height: number;
90
+ seed: number;
91
+ groupIds: string[];
92
+ strokeSharpness: string;
93
+ points?: undefined;
94
+ boundElementIds?: undefined;
95
+ })[] | ({
96
+ type: string;
97
+ fillStyle: string;
98
+ strokeWidth: number;
99
+ strokeStyle: string;
100
+ roughness: number;
101
+ opacity: number;
102
+ angle: number;
103
+ x: number;
104
+ y: number;
105
+ strokeColor: string;
106
+ backgroundColor: string;
107
+ width: number;
108
+ height: number;
109
+ seed: number;
110
+ groupIds: string[];
111
+ strokeSharpness: string;
112
+ points: number[][];
113
+ version?: undefined;
114
+ versionNonce?: undefined;
115
+ isDeleted?: undefined;
116
+ id?: undefined;
117
+ boundElementIds?: undefined;
118
+ } | {
119
+ type: string;
120
+ version: number;
121
+ versionNonce: number;
122
+ isDeleted: boolean;
123
+ id: string;
124
+ fillStyle: string;
125
+ strokeWidth: number;
126
+ strokeStyle: string;
127
+ roughness: number;
128
+ opacity: number;
129
+ angle: number;
130
+ x: number;
131
+ y: number;
132
+ strokeColor: string;
133
+ backgroundColor: string;
134
+ width: number;
135
+ height: number;
136
+ seed: number;
137
+ groupIds: string[];
138
+ strokeSharpness: string;
139
+ points: number[][];
140
+ boundElementIds?: undefined;
141
+ } | {
142
+ type: string;
143
+ fillStyle: string;
144
+ strokeWidth: number;
145
+ strokeStyle: string;
146
+ roughness: number;
147
+ opacity: number;
148
+ angle: number;
149
+ x: number;
150
+ y: number;
151
+ strokeColor: string;
152
+ backgroundColor: string;
153
+ width: number;
154
+ height: number;
155
+ seed: number;
156
+ groupIds: string[];
157
+ strokeSharpness: string;
158
+ boundElementIds: string[];
159
+ points?: undefined;
160
+ version?: undefined;
161
+ versionNonce?: undefined;
162
+ isDeleted?: undefined;
163
+ id?: undefined;
164
+ })[] | ({
165
+ type: string;
166
+ fillStyle: string;
167
+ strokeWidth: number;
168
+ strokeStyle: string;
169
+ roughness: number;
170
+ opacity: number;
171
+ angle: number;
172
+ x: number;
173
+ y: number;
174
+ strokeColor: string;
175
+ backgroundColor: string;
176
+ width: number;
177
+ height: number;
178
+ seed: number;
179
+ groupIds: string[];
180
+ strokeSharpness: string;
181
+ points?: undefined;
182
+ } | {
183
+ type: string;
184
+ fillStyle: string;
185
+ strokeWidth: number;
186
+ strokeStyle: string;
187
+ roughness: number;
188
+ opacity: number;
189
+ angle: number;
190
+ x: number;
191
+ y: number;
192
+ strokeColor: string;
193
+ backgroundColor: string;
194
+ width: number;
195
+ height: number;
196
+ seed: number;
197
+ groupIds: string[];
198
+ strokeSharpness: string;
199
+ points: number[][];
200
+ } | {
201
+ type: string;
202
+ fillStyle: string;
203
+ strokeWidth: number;
204
+ strokeStyle: string;
205
+ x: number;
206
+ y: number;
207
+ strokeColor: string;
208
+ backgroundColor: string;
209
+ width: number;
210
+ height: number;
211
+ groupIds: string[];
212
+ strokeSharpness: string;
213
+ points: number[][];
214
+ roughness?: undefined;
215
+ opacity?: undefined;
216
+ angle?: undefined;
217
+ seed?: undefined;
218
+ } | {
219
+ type: string;
220
+ fillStyle: string;
221
+ strokeWidth: number;
222
+ strokeStyle: string;
223
+ roughness: number;
224
+ opacity: number;
225
+ angle: number;
226
+ x: number;
227
+ y: number;
228
+ strokeColor: string;
229
+ backgroundColor: string;
230
+ width: number;
231
+ height: number;
232
+ groupIds: string[];
233
+ strokeSharpness: string;
234
+ points: number[][];
235
+ seed?: undefined;
236
+ } | {
237
+ type: string;
238
+ fillStyle: string;
239
+ strokeWidth: number;
240
+ strokeStyle: string;
241
+ opacity: number;
242
+ x: number;
243
+ y: number;
244
+ strokeColor: string;
245
+ backgroundColor: string;
246
+ width: number;
247
+ height: number;
248
+ seed: number;
249
+ groupIds: string[];
250
+ strokeSharpness: string;
251
+ points: number[][];
252
+ roughness?: undefined;
253
+ angle?: undefined;
254
+ })[] | ({
255
+ type: string;
256
+ fillStyle: string;
257
+ strokeWidth: number;
258
+ strokeStyle: string;
259
+ roughness: number;
260
+ opacity: number;
261
+ angle: number;
262
+ x: number;
263
+ y: number;
264
+ strokeColor: string;
265
+ backgroundColor: string;
266
+ width: number;
267
+ height: number;
268
+ seed: number;
269
+ groupIds: string[];
270
+ strokeSharpness: string;
271
+ } | {
272
+ type: string;
273
+ fillStyle: string;
274
+ strokeWidth: number;
275
+ strokeStyle: string;
276
+ x: number;
277
+ y: number;
278
+ strokeColor: string;
279
+ backgroundColor: string;
280
+ width: number;
281
+ height: number;
282
+ seed: number;
283
+ groupIds: string[];
284
+ strokeSharpness: string;
285
+ roughness?: undefined;
286
+ opacity?: undefined;
287
+ angle?: undefined;
288
+ })[])[];
289
+ };
290
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import "./ExampleSidebar.scss";
2
+ export default function Sidebar({ children }: {
3
+ children: React.ReactNode;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from "./export";