@cntrl-site/sdk 1.20.1 → 1.21.0-alpha.0

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 (119) hide show
  1. package/dist/Client/Client.d.ts +32 -0
  2. package/dist/Client/Client.test.d.ts +1 -0
  3. package/dist/Client/__mock__/articleMock.d.ts +2 -0
  4. package/dist/Client/__mock__/keyframesMock.d.ts +2 -0
  5. package/dist/Client/__mock__/projectMock.d.ts +2 -0
  6. package/dist/Components/ControlSlider/ControlSlider.d.ts +85 -0
  7. package/dist/Components/ControlSlider/ControlSliderComponent.d.ts +454 -0
  8. package/dist/Components/RichTextRenderer/RichTextRenderer.d.ts +6 -0
  9. package/dist/Components/components.d.ts +2 -0
  10. package/dist/Components/utils/scalingValue.d.ts +1 -0
  11. package/dist/FontFaceGenerator/FontFaceGenerator.d.ts +6 -0
  12. package/dist/FontFaceGenerator/FontFaceGenerator.test.d.ts +1 -0
  13. package/dist/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.d.ts +31 -0
  14. package/dist/VideoDecoder/VideoDecoder.d.ts +12 -0
  15. package/dist/cli.d.ts +10 -0
  16. package/{src/index.ts → dist/index.d.ts} +3 -10
  17. package/dist/index.js +2079 -0
  18. package/dist/index.mjs +2062 -0
  19. package/dist/schemas/article/Article.schema.d.ts +223 -0
  20. package/dist/schemas/article/Interaction.schema.d.ts +78 -0
  21. package/dist/schemas/article/Item.schema.d.ts +40 -0
  22. package/{lib → dist}/schemas/article/Item.schema.js +18 -0
  23. package/dist/schemas/article/ItemArea.schema.d.ts +36 -0
  24. package/dist/schemas/article/ItemBase.schema.d.ts +137 -0
  25. package/dist/schemas/article/ItemState.schema.d.ts +13561 -0
  26. package/{lib → dist}/schemas/article/ItemState.schema.js +6 -2
  27. package/dist/schemas/article/RichTextItem.schema.d.ts +1370 -0
  28. package/dist/schemas/article/Section.schema.d.ts +83 -0
  29. package/{lib → dist}/schemas/article/Section.schema.js +0 -1
  30. package/dist/schemas/keyframe/Keyframes.schema.d.ts +934 -0
  31. package/dist/schemas/project/Layout.schema.d.ts +17 -0
  32. package/dist/schemas/project/Project.schema.d.ts +253 -0
  33. package/dist/sdk.css +1 -0
  34. package/{src/types/article/Article.ts → dist/types/article/Article.d.ts} +3 -4
  35. package/dist/types/article/ArticleItemType.d.ts +13 -0
  36. package/{lib → dist}/types/article/ArticleItemType.js +1 -0
  37. package/{src/types/article/CompoundSettings.ts → dist/types/article/CompoundSettings.d.ts} +3 -4
  38. package/{src/types/article/FX.ts → dist/types/article/FX.d.ts} +12 -17
  39. package/dist/types/article/Interaction.d.ts +22 -0
  40. package/dist/types/article/Item.d.ts +200 -0
  41. package/dist/types/article/ItemArea.d.ts +36 -0
  42. package/dist/types/article/ItemState.d.ts +78 -0
  43. package/dist/types/article/RichText.d.ts +40 -0
  44. package/dist/types/article/Section.d.ts +24 -0
  45. package/dist/types/component/Component.d.ts +11 -0
  46. package/dist/types/keyframe/Keyframe.d.ts +89 -0
  47. package/dist/types/project/Fonts.d.ts +22 -0
  48. package/dist/types/project/Layout.d.ts +6 -0
  49. package/dist/types/project/Meta.d.ts +9 -0
  50. package/dist/types/project/Page.d.ts +11 -0
  51. package/{src/types/project/Project.ts → dist/types/project/Project.d.ts} +9 -11
  52. package/dist/utils.d.ts +3 -0
  53. package/package.json +37 -8
  54. package/jest.config.js +0 -6
  55. package/lib/FontFaceGenerator/FontFaceGenerator.js +0 -28
  56. package/lib/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.js +0 -221
  57. package/lib/VideoDecoder/VideoDecoder.js +0 -174
  58. package/lib/index.js +0 -29
  59. package/lib/utils.js +0 -31
  60. package/resources/template.scss.ejs +0 -50
  61. package/src/Client/Client.test.ts +0 -121
  62. package/src/Client/Client.ts +0 -131
  63. package/src/Client/__mock__/articleMock.ts +0 -16
  64. package/src/Client/__mock__/keyframesMock.ts +0 -14
  65. package/src/Client/__mock__/projectMock.ts +0 -49
  66. package/src/FontFaceGenerator/FontFaceGenerator.test.ts +0 -55
  67. package/src/FontFaceGenerator/FontFaceGenerator.ts +0 -28
  68. package/src/ScrollPlaybackVideoManager/ScrollPlaybackVideoManager.ts +0 -212
  69. package/src/VideoDecoder/VideoDecoder.ts +0 -173
  70. package/src/cli.ts +0 -67
  71. package/src/schemas/article/Article.schema.ts +0 -9
  72. package/src/schemas/article/Interaction.schema.ts +0 -26
  73. package/src/schemas/article/Item.schema.ts +0 -280
  74. package/src/schemas/article/ItemArea.schema.ts +0 -15
  75. package/src/schemas/article/ItemBase.schema.ts +0 -23
  76. package/src/schemas/article/ItemState.schema.ts +0 -88
  77. package/src/schemas/article/RichTextItem.schema.ts +0 -69
  78. package/src/schemas/article/Section.schema.ts +0 -25
  79. package/src/schemas/keyframe/Keyframes.schema.ts +0 -134
  80. package/src/schemas/project/Layout.schema.ts +0 -8
  81. package/src/schemas/project/Project.schema.ts +0 -48
  82. package/src/types/article/ArticleItemType.ts +0 -12
  83. package/src/types/article/Interaction.ts +0 -25
  84. package/src/types/article/Item.ts +0 -216
  85. package/src/types/article/ItemArea.ts +0 -40
  86. package/src/types/article/ItemState.ts +0 -86
  87. package/src/types/article/RichText.ts +0 -46
  88. package/src/types/article/Section.ts +0 -28
  89. package/src/types/keyframe/Keyframe.ts +0 -106
  90. package/src/types/project/Fonts.ts +0 -25
  91. package/src/types/project/Layout.ts +0 -6
  92. package/src/types/project/Meta.ts +0 -10
  93. package/src/types/project/Page.ts +0 -13
  94. package/src/utils.ts +0 -36
  95. /package/{lib → dist}/Client/Client.js +0 -0
  96. /package/{lib → dist}/cli.js +0 -0
  97. /package/{lib → dist}/schemas/article/Article.schema.js +0 -0
  98. /package/{lib → dist}/schemas/article/Interaction.schema.js +0 -0
  99. /package/{lib → dist}/schemas/article/ItemArea.schema.js +0 -0
  100. /package/{lib → dist}/schemas/article/ItemBase.schema.js +0 -0
  101. /package/{lib → dist}/schemas/article/RichTextItem.schema.js +0 -0
  102. /package/{lib → dist}/schemas/keyframe/Keyframes.schema.js +0 -0
  103. /package/{lib → dist}/schemas/project/Layout.schema.js +0 -0
  104. /package/{lib → dist}/schemas/project/Project.schema.js +0 -0
  105. /package/{lib → dist}/types/article/Article.js +0 -0
  106. /package/{lib → dist}/types/article/CompoundSettings.js +0 -0
  107. /package/{lib → dist}/types/article/FX.js +0 -0
  108. /package/{lib → dist}/types/article/Interaction.js +0 -0
  109. /package/{lib → dist}/types/article/Item.js +0 -0
  110. /package/{lib → dist}/types/article/ItemArea.js +0 -0
  111. /package/{lib → dist}/types/article/ItemState.js +0 -0
  112. /package/{lib → dist}/types/article/RichText.js +0 -0
  113. /package/{lib → dist}/types/article/Section.js +0 -0
  114. /package/{lib → dist}/types/keyframe/Keyframe.js +0 -0
  115. /package/{lib → dist}/types/project/Fonts.js +0 -0
  116. /package/{lib → dist}/types/project/Layout.js +0 -0
  117. /package/{lib → dist}/types/project/Meta.js +0 -0
  118. /package/{lib → dist}/types/project/Page.js +0 -0
  119. /package/{lib → dist}/types/project/Project.js +0 -0
@@ -0,0 +1,32 @@
1
+ import { Meta } from '../types/project/Meta';
2
+ import { Project } from '../types/project/Project';
3
+ import { Layout } from '../types/project/Layout';
4
+ import { Article } from '../types/article/Article';
5
+ import { KeyframeAny } from '../types/keyframe/Keyframe';
6
+ export declare class Client {
7
+ private fetchImpl;
8
+ private url;
9
+ constructor(APIUrl: string, fetchImpl?: FetchImpl);
10
+ private static getPageMeta;
11
+ getPageData(pageSlug: string): Promise<CntrlPageData>;
12
+ getProjectPagesPaths(): Promise<string[]>;
13
+ getLayouts(): Promise<Layout[]>;
14
+ private fetchProject;
15
+ private fetchArticle;
16
+ private findArticleIdByPageSlug;
17
+ }
18
+ interface FetchImplResponse {
19
+ ok: boolean;
20
+ json(): Promise<any>;
21
+ statusText: string;
22
+ }
23
+ type FetchImpl = (url: string, init?: RequestInit) => Promise<FetchImplResponse>;
24
+ interface ArticleData {
25
+ article: Article;
26
+ keyframes: KeyframeAny[];
27
+ }
28
+ interface CntrlPageData extends ArticleData {
29
+ project: Project;
30
+ meta: Meta;
31
+ }
32
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Article } from '../../types/article/Article';
2
+ export declare const articleMock: Article;
@@ -0,0 +1,2 @@
1
+ import { KeyframeAny } from '../../types/keyframe/Keyframe';
2
+ export declare const keyframesMock: KeyframeAny[];
@@ -0,0 +1,2 @@
1
+ import { Project } from '../../types/project/Project';
2
+ export declare const projectMock: Project;
@@ -0,0 +1,85 @@
1
+ import { default as React } from 'react';
2
+ interface SliderItem {
3
+ image: {
4
+ url: string;
5
+ name?: string;
6
+ };
7
+ imageCaption: any[];
8
+ }
9
+ type Offset = {
10
+ x: number;
11
+ y: number;
12
+ };
13
+ interface SliderControls {
14
+ arrowsImgUrl: string | null;
15
+ isActive: boolean;
16
+ color: string;
17
+ hover: string;
18
+ offset: Offset;
19
+ scale: number;
20
+ }
21
+ interface SliderPagination {
22
+ position: 'outside-1' | 'outside-2' | 'inside-1' | 'inside-2';
23
+ isActive: boolean;
24
+ scale: number;
25
+ offset: Offset;
26
+ colors: string[];
27
+ hover: string;
28
+ }
29
+ type Alignment = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'middle-center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
30
+ interface SliderCaption {
31
+ alignment: Alignment;
32
+ isActive: boolean;
33
+ color: string;
34
+ offset: Offset;
35
+ hover: string;
36
+ }
37
+ type Trigers = {
38
+ trigersList: {
39
+ click: boolean;
40
+ drag: boolean;
41
+ auto: boolean;
42
+ };
43
+ };
44
+ interface SliderSettings {
45
+ controls: SliderControls;
46
+ pagination: SliderPagination;
47
+ direction: 'horizontal' | 'vertical';
48
+ caption: SliderCaption;
49
+ trigers: Trigers;
50
+ }
51
+ interface CaptionStyles {
52
+ fontSettings: {
53
+ fontFamily: string;
54
+ fontWeight: number;
55
+ fontStyle: string;
56
+ };
57
+ widthSettings: {
58
+ width: number;
59
+ sizing: 'auto' | 'manual';
60
+ };
61
+ letterSpacing: number;
62
+ textAlign: 'left' | 'center' | 'right';
63
+ wordSpacing: number;
64
+ fontSizeLineHeight: {
65
+ fontSize: number;
66
+ lineHeight: number;
67
+ };
68
+ textAppearance: {
69
+ textTransform: 'none' | 'uppercase' | 'lowercase';
70
+ textDecoration: 'none' | 'underline';
71
+ fontVariant: 'normal' | 'small-caps';
72
+ };
73
+ color: string;
74
+ }
75
+ interface SliderStyles {
76
+ caption: CaptionStyles;
77
+ }
78
+ interface SliderProps {
79
+ settings: SliderSettings;
80
+ content: SliderItem[];
81
+ styles: SliderStyles;
82
+ isEditor?: boolean;
83
+ }
84
+ export declare function ControlSlider({ settings, content, styles: sliderStyles, isEditor }: SliderProps): React.JSX.Element;
85
+ export {};
@@ -0,0 +1,454 @@
1
+ import { ControlSlider } from './ControlSlider';
2
+ export declare const ControlSliderComponent: {
3
+ element: typeof ControlSlider;
4
+ id: string;
5
+ name: string;
6
+ defaultSize: {
7
+ width: number;
8
+ height: number;
9
+ };
10
+ schema: {
11
+ type: string;
12
+ properties: {
13
+ settings: {
14
+ layoutBased: boolean;
15
+ type: string;
16
+ properties: {
17
+ trigers: {
18
+ name: string;
19
+ icon: string;
20
+ type: string;
21
+ properties: {
22
+ trigersList: {
23
+ type: string;
24
+ display: {
25
+ type: string;
26
+ };
27
+ properties: {
28
+ click: {
29
+ type: string;
30
+ };
31
+ drag: {
32
+ type: string;
33
+ };
34
+ auto: {
35
+ type: string;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ };
41
+ direction: {
42
+ name: string;
43
+ icon: string;
44
+ type: string;
45
+ display: {
46
+ type: string;
47
+ };
48
+ enum: string[];
49
+ };
50
+ controls: {
51
+ name: string;
52
+ icon: string;
53
+ type: string;
54
+ properties: {
55
+ isActive: {
56
+ type: string;
57
+ display: {
58
+ type: string;
59
+ };
60
+ };
61
+ arrowsImgUrl: {
62
+ type: string[];
63
+ display: {
64
+ type: string;
65
+ };
66
+ };
67
+ offset: {
68
+ type: string;
69
+ display: {
70
+ type: string;
71
+ };
72
+ properties: {
73
+ x: {
74
+ type: string;
75
+ };
76
+ y: {
77
+ type: string;
78
+ };
79
+ };
80
+ };
81
+ scale: {
82
+ type: string;
83
+ name: string;
84
+ min: number;
85
+ max: number;
86
+ display: {
87
+ type: string;
88
+ };
89
+ };
90
+ color: {
91
+ name: string;
92
+ type: string;
93
+ display: {
94
+ type: string;
95
+ format: string;
96
+ };
97
+ };
98
+ hover: {
99
+ name: string;
100
+ type: string;
101
+ display: {
102
+ type: string;
103
+ format: string;
104
+ };
105
+ };
106
+ };
107
+ };
108
+ pagination: {
109
+ name: string;
110
+ icon: string;
111
+ type: string;
112
+ properties: {
113
+ isActive: {
114
+ type: string;
115
+ display: {
116
+ type: string;
117
+ };
118
+ };
119
+ position: {
120
+ name: string;
121
+ display: {
122
+ type: string;
123
+ direction: string;
124
+ };
125
+ type: string;
126
+ enum: string[];
127
+ };
128
+ offset: {
129
+ type: string;
130
+ display: {
131
+ type: string;
132
+ };
133
+ properties: {
134
+ x: {
135
+ type: string;
136
+ };
137
+ y: {
138
+ type: string;
139
+ };
140
+ };
141
+ };
142
+ scale: {
143
+ type: string;
144
+ name: string;
145
+ min: number;
146
+ max: number;
147
+ display: {
148
+ type: string;
149
+ };
150
+ };
151
+ colors: {
152
+ display: {
153
+ type: string;
154
+ format: string;
155
+ };
156
+ name: string;
157
+ type: string;
158
+ items: {
159
+ type: string;
160
+ };
161
+ };
162
+ hover: {
163
+ name: string;
164
+ type: string;
165
+ display: {
166
+ type: string;
167
+ format: string;
168
+ };
169
+ };
170
+ };
171
+ };
172
+ caption: {
173
+ name: string;
174
+ icon: string;
175
+ type: string;
176
+ properties: {
177
+ isActive: {
178
+ type: string;
179
+ display: {
180
+ type: string;
181
+ };
182
+ };
183
+ alignment: {
184
+ name: string;
185
+ type: string;
186
+ display: {
187
+ type: string;
188
+ };
189
+ enum: string[];
190
+ };
191
+ offset: {
192
+ type: string;
193
+ display: {
194
+ type: string;
195
+ };
196
+ properties: {
197
+ x: {
198
+ type: string;
199
+ };
200
+ y: {
201
+ type: string;
202
+ };
203
+ };
204
+ };
205
+ hover: {
206
+ name: string;
207
+ type: string;
208
+ display: {
209
+ type: string;
210
+ format: string;
211
+ };
212
+ };
213
+ };
214
+ };
215
+ };
216
+ default: {
217
+ trigers: {
218
+ trigersList: {
219
+ click: boolean;
220
+ drag: boolean;
221
+ auto: boolean;
222
+ };
223
+ };
224
+ controls: {
225
+ isActive: boolean;
226
+ arrowsImgUrl: null;
227
+ offset: {
228
+ x: number;
229
+ y: number;
230
+ };
231
+ scale: number;
232
+ color: string;
233
+ hover: string;
234
+ };
235
+ pagination: {
236
+ isActive: boolean;
237
+ scale: number;
238
+ position: string;
239
+ offset: {
240
+ x: number;
241
+ y: number;
242
+ };
243
+ colors: string[];
244
+ hover: string;
245
+ };
246
+ direction: string;
247
+ caption: {
248
+ offset: {
249
+ x: number;
250
+ y: number;
251
+ };
252
+ isActive: boolean;
253
+ alignment: string;
254
+ hover: string;
255
+ };
256
+ };
257
+ displayRules: {
258
+ if: {
259
+ name: string;
260
+ value: string;
261
+ };
262
+ then: {
263
+ name: string;
264
+ value: string;
265
+ };
266
+ }[];
267
+ };
268
+ content: {
269
+ layoutBased: boolean;
270
+ type: string;
271
+ items: {
272
+ type: string;
273
+ properties: {
274
+ image: {
275
+ type: string;
276
+ display: {
277
+ type: string;
278
+ };
279
+ properties: {
280
+ url: {
281
+ type: string;
282
+ };
283
+ name: {
284
+ type: string;
285
+ };
286
+ };
287
+ required: string[];
288
+ };
289
+ imageCaption: {
290
+ display: {
291
+ type: string;
292
+ placeholder: string;
293
+ };
294
+ };
295
+ link: {
296
+ type: string;
297
+ display: {
298
+ type: string;
299
+ placeholder: string;
300
+ };
301
+ properties: {
302
+ text: {
303
+ type: string;
304
+ };
305
+ };
306
+ };
307
+ };
308
+ required: string[];
309
+ };
310
+ default: {
311
+ image: {
312
+ url: string;
313
+ name: string;
314
+ };
315
+ imageCaption: {
316
+ type: string;
317
+ children: {
318
+ text: string;
319
+ }[];
320
+ }[];
321
+ }[];
322
+ };
323
+ styles: {
324
+ layoutBased: boolean;
325
+ type: string;
326
+ properties: {
327
+ caption: {
328
+ dataName: string;
329
+ type: string;
330
+ properties: {
331
+ fontSettings: {
332
+ type: string;
333
+ display: {
334
+ type: string;
335
+ };
336
+ properties: {
337
+ fontFamily: {
338
+ type: string;
339
+ };
340
+ fontWeight: {
341
+ type: string;
342
+ };
343
+ fontStyle: {
344
+ type: string;
345
+ };
346
+ };
347
+ };
348
+ widthSettings: {
349
+ display: {
350
+ type: string;
351
+ };
352
+ type: string;
353
+ properties: {
354
+ width: {
355
+ type: string;
356
+ };
357
+ sizing: {
358
+ type: string;
359
+ enum: string[];
360
+ };
361
+ };
362
+ };
363
+ fontSizeLineHeight: {
364
+ type: string;
365
+ display: {
366
+ type: string;
367
+ };
368
+ properties: {
369
+ fontSize: {
370
+ type: string;
371
+ };
372
+ lineHeight: {
373
+ type: string;
374
+ };
375
+ };
376
+ };
377
+ letterSpacing: {
378
+ display: {
379
+ type: string;
380
+ };
381
+ type: string;
382
+ };
383
+ wordSpacing: {
384
+ display: {
385
+ type: string;
386
+ };
387
+ type: string;
388
+ };
389
+ textAlign: {
390
+ display: {
391
+ type: string;
392
+ };
393
+ type: string;
394
+ enum: string[];
395
+ };
396
+ textAppearance: {
397
+ display: {
398
+ type: string;
399
+ };
400
+ properties: {
401
+ textTransform: {
402
+ type: string;
403
+ enum: string[];
404
+ };
405
+ textDecoration: {
406
+ type: string;
407
+ enum: string[];
408
+ };
409
+ fontVariant: {
410
+ type: string;
411
+ enum: string[];
412
+ };
413
+ };
414
+ };
415
+ color: {
416
+ display: {
417
+ type: string;
418
+ };
419
+ type: string;
420
+ };
421
+ };
422
+ };
423
+ };
424
+ default: {
425
+ caption: {
426
+ widthSettings: {
427
+ width: number;
428
+ sizing: string;
429
+ };
430
+ fontSettings: {
431
+ fontFamily: string;
432
+ fontWeight: number;
433
+ fontStyle: string;
434
+ };
435
+ fontSizeLineHeight: {
436
+ fontSize: number;
437
+ lineHeight: number;
438
+ };
439
+ letterSpacing: number;
440
+ wordSpacing: number;
441
+ textAlign: string;
442
+ textAppearance: {
443
+ textTransform: string;
444
+ textDecoration: string;
445
+ fontVariant: string;
446
+ };
447
+ color: string;
448
+ };
449
+ };
450
+ };
451
+ };
452
+ required: string[];
453
+ };
454
+ };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ interface Props {
3
+ content: any[];
4
+ }
5
+ export declare const RichTextRenderer: FC<Props>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Component } from '../types/component/Component';
2
+ export declare const components: Component[];
@@ -0,0 +1 @@
1
+ export declare function scalingValue(value: number, isEditor?: boolean): string;
@@ -0,0 +1,6 @@
1
+ import { CustomFont } from '../types/project/Fonts';
2
+ export declare class FontFaceGenerator {
3
+ private fonts;
4
+ constructor(fonts: CustomFont[]);
5
+ generate(): string;
6
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ interface ScrollVideoOptions {
2
+ src: string;
3
+ videoContainer: HTMLElement | string;
4
+ }
5
+ export declare class ScrollPlaybackVideoManager {
6
+ private container?;
7
+ private video?;
8
+ private isSafari?;
9
+ private currentTime;
10
+ private targetTime;
11
+ private canvas;
12
+ private context;
13
+ private frames;
14
+ private frameRate;
15
+ private transitioning;
16
+ private debug;
17
+ private frameThreshold;
18
+ private transitionSpeed;
19
+ private useWebCodecs;
20
+ private resizeObserver;
21
+ constructor(options: ScrollVideoOptions);
22
+ private setCoverStyle;
23
+ private resize;
24
+ private decodeVideo;
25
+ private paintCanvasFrame;
26
+ private transitionToTargetTime;
27
+ private resetCanvasDimensions;
28
+ setTargetTimePercent(setPercentage: number, jump?: boolean): void;
29
+ destroy(): void;
30
+ }
31
+ export {};
@@ -0,0 +1,12 @@
1
+ export declare class Writer {
2
+ private data;
3
+ private idx;
4
+ private size;
5
+ constructor(size: number);
6
+ getData(): Uint8Array<ArrayBuffer>;
7
+ writeUint8(value: number): void;
8
+ writeUint16(value: number): void;
9
+ writeUint8Array(value: Uint8Array): void;
10
+ }
11
+ declare const _default: (src: string, emitFrame: (bitmap: ImageBitmap) => void, debug: boolean) => Promise<void>;
12
+ export default _default;
package/dist/cli.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ export interface LayoutRange {
3
+ /** closed range [start, end] */
4
+ start: number;
5
+ end: number;
6
+ exemplary: number;
7
+ name: string;
8
+ isFirst: boolean;
9
+ isLast: boolean;
10
+ }