modern-idoc 0.1.5 → 0.2.1

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/dist/index.cjs CHANGED
@@ -1,20 +1,64 @@
1
1
  'use strict';
2
2
 
3
+ function getDefaultLayoutStyle() {
4
+ return {
5
+ overflow: "visible",
6
+ alignContent: "stretch",
7
+ alignItems: "stretch",
8
+ alignSelf: "auto",
9
+ borderTop: "none",
10
+ borderLeft: "none",
11
+ borderRight: "none",
12
+ borderBottom: "none",
13
+ borderWidth: 0,
14
+ border: "none",
15
+ direction: "inherit",
16
+ display: "flex",
17
+ flex: 0,
18
+ flexBasis: "auto",
19
+ flexDirection: "row",
20
+ flexGrow: 0,
21
+ flexShrink: 1,
22
+ flexWrap: "nowrap",
23
+ height: "auto",
24
+ justifyContent: "flex-start",
25
+ gap: 0,
26
+ marginTop: 0,
27
+ marginLeft: 0,
28
+ marginRight: 0,
29
+ marginBottom: 0,
30
+ margin: 0,
31
+ maxHeight: 0,
32
+ maxWidth: 0,
33
+ minHeight: 0,
34
+ minWidth: 0,
35
+ paddingTop: 0,
36
+ paddingLeft: 0,
37
+ paddingRight: 0,
38
+ paddingBottom: 0,
39
+ padding: 0,
40
+ top: 0,
41
+ bottom: 0,
42
+ left: 0,
43
+ right: 0,
44
+ position: "static",
45
+ boxSizing: "content-box",
46
+ width: "auto"
47
+ };
48
+ }
49
+
3
50
  function getDefaultShadowStyle() {
4
51
  return {
5
52
  shadowColor: "transparent",
6
53
  shadowOffsetX: 0,
7
54
  shadowOffsetY: 0,
8
- shadowBlur: 0
55
+ shadowBlur: 0,
56
+ boxShadow: "none"
9
57
  };
10
58
  }
11
59
 
12
60
  function getDefaultTransformStyle() {
13
61
  return {
14
- left: 0,
15
- top: 0,
16
- width: 0,
17
- height: 0,
18
62
  rotate: 0,
19
63
  scaleX: 1,
20
64
  scaleY: 1,
@@ -29,31 +73,18 @@ function getDefaultTransformStyle() {
29
73
 
30
74
  function getDefaultElementStyle() {
31
75
  return {
32
- overflow: "visible",
76
+ ...getDefaultTransformStyle(),
77
+ ...getDefaultLayoutStyle(),
78
+ ...getDefaultShadowStyle(),
33
79
  visibility: "visible",
34
80
  filter: "none",
35
81
  opacity: 1,
36
- // margin
37
- marginLeft: 0,
38
- marginTop: 0,
39
- marginRight: 0,
40
- marginBottom: 0,
41
- // padding
42
- paddingLeft: 0,
43
- paddingTop: 0,
44
- paddingRight: 0,
45
- paddingBottom: 0,
46
- // transform
47
- ...getDefaultTransformStyle(),
48
82
  // background
49
83
  backgroundImage: "none",
50
84
  backgroundColor: "transparent",
51
- // shadow
52
- ...getDefaultShadowStyle(),
53
85
  // border
54
86
  borderRadius: 0,
55
- borderColor: "transparent",
56
- borderWidth: 1
87
+ borderColor: "transparent"
57
88
  };
58
89
  }
59
90
 
package/dist/index.d.cts CHANGED
@@ -1,19 +1,33 @@
1
- interface IDOCFillDeclaration {
2
- url?: string;
3
- color?: string;
1
+ interface FillRect {
2
+ left?: number;
3
+ top?: number;
4
+ bottom?: number;
5
+ right?: number;
6
+ }
7
+ interface FillTile {
8
+ alignment?: string;
9
+ scaleX?: number;
10
+ scaleY?: number;
11
+ translateX?: number;
12
+ translateY?: number;
13
+ flip?: string;
14
+ }
15
+ interface FillDeclaration {
4
16
  opacity?: number;
17
+ image?: string;
18
+ dpi?: number;
19
+ rotateWithShape?: boolean;
20
+ srcRect?: FillRect;
21
+ fillRect?: FillRect;
22
+ tile?: FillTile;
23
+ color?: string;
5
24
  }
6
25
 
7
- type Noneable = 'none';
8
- type Sizeable = `${number}%` | `${number}rem` | number;
9
-
10
- type IDOCFillProp = Noneable | string | IDOCFillDeclaration;
11
-
12
26
  type SVGPathData = string;
13
27
  type FillRule = 'nonzero' | 'evenodd';
14
28
  type StrokeLinecap = 'butt' | 'round' | 'square';
15
29
  type StrokeLinejoin = 'arcs' | 'bevel' | 'miter' | 'miter-clip' | 'round';
16
- interface IDOCPath2DStyle {
30
+ interface Path2DStyle {
17
31
  [key: string]: any;
18
32
  opacity: number;
19
33
  visibility: string;
@@ -33,39 +47,46 @@ interface IDOCPath2DStyle {
33
47
  strokeDasharray: number[];
34
48
  strokeDashoffset: number;
35
49
  }
36
- interface IDOCPath2D extends Partial<IDOCPath2DStyle> {
50
+ interface Path2DDeclaration extends Partial<Path2DStyle> {
37
51
  data: SVGPathData;
38
52
  }
39
- interface IDOCGeometryDeclaration {
40
- data: IDOCPath2D[];
53
+ interface GeometryDeclaration {
54
+ data: Path2DDeclaration[];
41
55
  }
42
56
 
43
- type IDOCGeometryProp = Noneable | SVGPathData | SVGPathData[] | IDOCPath2D[] | IDOCGeometryDeclaration;
57
+ type Noneable = 'none';
58
+ type Sizeable = `${number}%` | `${number}rem` | number;
44
59
 
45
- interface IDOCImageDeclaration {
46
- url: string;
47
- opacity?: number;
48
- }
60
+ type FillProp = Noneable | string | FillDeclaration;
49
61
 
50
- type IDOCImageProp = Noneable | string | IDOCImageDeclaration;
62
+ type GeometryProp = Noneable | SVGPathData | SVGPathData[] | Path2DDeclaration[] | GeometryDeclaration;
51
63
 
52
- interface IDOCMetaProp {
64
+ interface MetaProp {
53
65
  [key: string]: any;
54
66
  }
55
67
 
56
68
  interface IDOCNode {
57
69
  name?: string;
58
70
  children?: IDOCNode[];
59
- meta?: IDOCMetaProp;
71
+ meta?: MetaProp;
60
72
  }
61
73
 
62
- interface IDOCStrokeDeclaration {
63
- url?: string;
74
+ interface ImageDeclaration {
75
+ url: string;
76
+ opacity?: number;
77
+ }
78
+
79
+ type ImageProp = Noneable | string | ImageDeclaration;
80
+
81
+ interface StrokeDeclaration {
82
+ width?: number;
83
+ style?: 'dashed' | 'solid' | string;
84
+ image?: string;
64
85
  color?: string;
65
86
  opacity?: number;
66
87
  }
67
88
 
68
- type IDOCStrokeProp = Noneable | string | IDOCStrokeDeclaration;
89
+ type StrokeProp = Noneable | string | StrokeDeclaration;
69
90
 
70
91
  type Overflow = 'hidden' | 'visible';
71
92
  type Visibility = 'hidden' | 'visible';
@@ -79,67 +100,86 @@ type TextOrientation = 'mixed' | 'upright' | 'sideways-right' | 'sideways';
79
100
  type TextDecoration = Noneable | 'underline' | 'line-through' | 'overline';
80
101
  type VerticalAlign = 'baseline' | 'top' | 'middle' | 'bottom' | 'sub' | 'super' | 'text-top' | 'text-bottom';
81
102
  type WritingMode = 'horizontal-tb' | 'vertical-lr' | 'vertical-rl';
103
+ type Align = 'auto' | 'flex-start' | 'center' | 'flex-end' | 'stretch' | 'baseline' | 'space-between' | 'space-around' | 'space-evenly';
104
+ type FlexDirection = 'column' | 'column-reverse' | 'row' | 'row-reverse';
105
+ type FlexWrap = 'nowrap' | 'wrap' | 'Wrap-reverse';
106
+ type Justify = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
107
+ type Position = 'static' | 'relative' | 'absolute';
108
+ type BoxSizing = 'border-box' | 'content-box';
82
109
  type ListStyleType = Noneable | 'disc';
83
110
  type ListStyleImage = Noneable | string;
84
111
  type ListStyleColormap = Noneable | Record<string, string>;
85
112
  type ListStyleSize = Sizeable | 'cover';
86
113
  type ListStylePosition = 'inside' | 'outside';
87
- interface IDOCListStyleDeclaration {
88
- type: ListStyleType;
89
- image: ListStyleImage;
90
- colormap: ListStyleColormap;
91
- size: ListStyleSize;
92
- position: ListStylePosition;
93
- }
94
- interface IDOCListStyleStyleDeclaration {
95
- listStyle?: Partial<IDOCListStyleDeclaration>;
96
- listStyleType: ListStyleType;
97
- listStyleImage: ListStyleImage;
98
- listStyleColormap: ListStyleColormap;
99
- listStyleSize: ListStyleSize;
100
- listStylePosition: ListStylePosition;
101
- }
102
114
  type HighlightLine = TextDecoration | 'outline';
103
115
  type HighlightImage = Noneable | string;
104
116
  type HighlightReferImage = Noneable | string;
105
117
  type HighlightColormap = Noneable | Record<string, string>;
106
118
  type HighlightSize = Sizeable | 'cover';
107
119
  type HighlightThickness = Sizeable;
108
- interface IDOCHighlightDeclaration {
109
- image: HighlightImage;
110
- referImage: HighlightReferImage;
111
- colormap: HighlightColormap;
112
- line: HighlightLine;
113
- size: HighlightSize;
114
- thickness: HighlightThickness;
115
- }
116
- interface IDOCHighlightStyleDeclaration {
117
- highlight?: Partial<IDOCHighlightDeclaration>;
118
- highlightImage: HighlightImage;
119
- highlightReferImage: HighlightReferImage;
120
- highlightColormap: HighlightColormap;
121
- highlightLine: HighlightLine;
122
- highlightSize: HighlightSize;
123
- highlightThickness: HighlightThickness;
120
+
121
+ interface LayoutStyleDeclaration {
122
+ overflow: Overflow;
123
+ alignContent: Align;
124
+ alignItems: Align;
125
+ alignSelf: Align;
126
+ borderTop: string;
127
+ borderLeft: string;
128
+ borderRight: string;
129
+ borderBottom: string;
130
+ borderWidth: number;
131
+ border: string;
132
+ direction: 'inherit' | 'ltr' | 'rtl';
133
+ display: 'none' | 'flex' | 'contents';
134
+ flex: number;
135
+ flexBasis: number | 'auto' | `${number}%`;
136
+ flexDirection: FlexDirection;
137
+ flexGrow: number;
138
+ flexShrink: number;
139
+ flexWrap: FlexWrap;
140
+ height: number | 'auto' | `${number}%`;
141
+ justifyContent: Justify;
142
+ gap: number | `${number}%`;
143
+ marginTop: number | 'auto' | `${number}%`;
144
+ marginLeft: number | 'auto' | `${number}%`;
145
+ marginRight: number | 'auto' | `${number}%`;
146
+ marginBottom: number | 'auto' | `${number}%`;
147
+ margin: number | 'auto' | `${number}%`;
148
+ maxHeight: number | `${number}%`;
149
+ maxWidth: number | `${number}%`;
150
+ minHeight: number | `${number}%`;
151
+ minWidth: number | `${number}%`;
152
+ paddingTop: number | `${number}%`;
153
+ paddingLeft: number | `${number}%`;
154
+ paddingRight: number | `${number}%`;
155
+ paddingBottom: number | `${number}%`;
156
+ padding: number | `${number}%`;
157
+ top: number | `${number}%`;
158
+ bottom: number | `${number}%`;
159
+ left: number | `${number}%`;
160
+ right: number | `${number}%`;
161
+ position: Position;
162
+ boxSizing: BoxSizing;
163
+ width: number | 'auto' | `${number}%`;
124
164
  }
125
- interface IDCOShadowDeclaration {
165
+
166
+ interface ShadowDeclaration {
126
167
  color: string;
127
168
  offsetX: number;
128
169
  offsetY: number;
129
170
  blur: number;
130
171
  }
131
- interface IDOCShadowStyleDeclaration {
132
- shadow?: Partial<IDCOShadowDeclaration>;
172
+
173
+ interface ShadowStyleDeclaration {
174
+ shadow?: Partial<ShadowDeclaration>;
133
175
  shadowColor: string;
134
176
  shadowOffsetX: number;
135
177
  shadowOffsetY: number;
136
178
  shadowBlur: number;
179
+ boxShadow: 'none' | string;
137
180
  }
138
- interface IDOCTransformStyleDeclaration {
139
- left: number;
140
- top: number;
141
- width: number;
142
- height: number;
181
+
182
+ interface TransformStyleDeclaration {
143
183
  rotate: number;
144
184
  scaleX: number;
145
185
  scaleY: number;
@@ -150,14 +190,54 @@ interface IDOCTransformStyleDeclaration {
150
190
  transform: string;
151
191
  transformOrigin: string;
152
192
  }
153
- interface IDOCTextLineStyleDeclaration extends IDOCListStyleStyleDeclaration {
154
- writingMode: WritingMode;
155
- textWrap: TextWrap;
156
- textAlign: TextAlign;
157
- textIndent: number;
158
- lineHeight: number;
193
+
194
+ interface ElementStyleDeclaration extends LayoutStyleDeclaration, TransformStyleDeclaration, ShadowStyleDeclaration {
195
+ visibility: Visibility;
196
+ filter: string;
197
+ opacity: number;
198
+ backgroundImage: string;
199
+ backgroundColor: string;
200
+ borderRadius: number;
201
+ borderColor: string;
202
+ }
203
+
204
+ interface HighlightDeclaration {
205
+ image: HighlightImage;
206
+ referImage: HighlightReferImage;
207
+ colormap: HighlightColormap;
208
+ line: HighlightLine;
209
+ size: HighlightSize;
210
+ thickness: HighlightThickness;
211
+ }
212
+
213
+ interface HighlightStyleDeclaration {
214
+ highlight?: Partial<HighlightDeclaration>;
215
+ highlightImage: HighlightImage;
216
+ highlightReferImage: HighlightReferImage;
217
+ highlightColormap: HighlightColormap;
218
+ highlightLine: HighlightLine;
219
+ highlightSize: HighlightSize;
220
+ highlightThickness: HighlightThickness;
221
+ }
222
+
223
+ interface ListStyleDeclaration {
224
+ type: ListStyleType;
225
+ image: ListStyleImage;
226
+ colormap: ListStyleColormap;
227
+ size: ListStyleSize;
228
+ position: ListStylePosition;
229
+ }
230
+
231
+ interface ListStyleStyleDeclaration {
232
+ listStyle?: Partial<ListStyleDeclaration>;
233
+ listStyleType: ListStyleType;
234
+ listStyleImage: ListStyleImage;
235
+ listStyleColormap: ListStyleColormap;
236
+ listStyleSize: ListStyleSize;
237
+ listStylePosition: ListStylePosition;
159
238
  }
160
- interface IDOCTextInlineStyleDeclaration extends IDOCHighlightStyleDeclaration {
239
+
240
+ interface TextInlineStyleDeclaration extends HighlightStyleDeclaration {
161
241
  color: string;
162
242
  verticalAlign: VerticalAlign;
163
243
  letterSpacing: number;
@@ -171,112 +251,103 @@ interface IDOCTextInlineStyleDeclaration extends IDOCHighlightStyleDeclaration {
171
251
  textOrientation: TextOrientation;
172
252
  textDecoration: TextDecoration;
173
253
  }
174
- interface IDOCTextDrawStyleDeclaration {
254
+
255
+ interface TextLineStyleDeclaration extends ListStyleStyleDeclaration {
256
+ writingMode: WritingMode;
257
+ textWrap: TextWrap;
258
+ textAlign: TextAlign;
259
+ textIndent: number;
260
+ lineHeight: number;
261
+ }
262
+
263
+ interface TextDrawStyleDeclaration {
175
264
  textStrokeWidth: number;
176
265
  textStrokeColor: string;
177
266
  }
178
- interface IDOCTextStyleDeclaration extends IDOCTextLineStyleDeclaration, IDOCTextInlineStyleDeclaration, IDOCTextDrawStyleDeclaration {
267
+ interface TextStyleDeclaration extends TextLineStyleDeclaration, TextInlineStyleDeclaration, TextDrawStyleDeclaration {
179
268
  }
180
- interface IDOCElementStyleDeclaration extends IDOCShadowStyleDeclaration, IDOCTransformStyleDeclaration {
181
- overflow: Overflow;
182
- visibility: Visibility;
183
- filter: string;
184
- opacity: number;
185
- marginLeft: number;
186
- marginTop: number;
187
- marginRight: number;
188
- marginBottom: number;
189
- paddingLeft: number;
190
- paddingTop: number;
191
- paddingRight: number;
192
- paddingBottom: number;
193
- backgroundImage: string;
194
- backgroundColor: string;
195
- borderRadius: number;
196
- borderColor: string;
197
- borderWidth: number;
198
- }
199
- interface IDOCStyleDeclaration extends IDOCTextStyleDeclaration, IDOCElementStyleDeclaration {
269
+
270
+ interface StyleDeclaration extends TextStyleDeclaration, ElementStyleDeclaration {
200
271
  }
201
272
 
202
- type IDOCStyleProp = Partial<IDOCStyleDeclaration>;
273
+ type StyleProp = Partial<StyleDeclaration>;
203
274
 
204
- interface IDOCFragmentContent extends Partial<IDOCStyleDeclaration> {
275
+ interface FragmentContent extends Partial<StyleDeclaration> {
205
276
  content: string;
206
277
  }
207
- interface IDOCParagraphContent extends Partial<IDOCStyleDeclaration> {
208
- fragments: IDOCFragmentContent[];
278
+ interface ParagraphContent extends Partial<StyleDeclaration> {
279
+ fragments: FragmentContent[];
209
280
  }
210
- type IDOCTextContentFlat = string | IDOCFragmentContent | IDOCParagraphContent | (string | IDOCFragmentContent)[];
211
- type IDOCTextContent = string | IDOCFragmentContent | IDOCParagraphContent | IDOCTextContentFlat[];
212
- type IDOCTextContentDeclaration = IDOCParagraphContent[];
213
- interface IDOCTextDeclaration {
214
- content: IDOCTextContentDeclaration;
215
- effects?: Partial<IDOCStyleDeclaration>[];
281
+ type TextContentFlat = string | FragmentContent | ParagraphContent | (string | FragmentContent)[];
282
+ type TextContent = string | FragmentContent | ParagraphContent | TextContentFlat[];
283
+ type TextContentDeclaration = ParagraphContent[];
284
+ interface TextDeclaration {
285
+ content: TextContentDeclaration;
286
+ effects?: Partial<StyleDeclaration>[];
216
287
  measureDom?: any;
217
288
  fonts?: any;
218
289
  }
219
290
 
220
- type IDOCTextProp = string | IDOCTextContent | (IDOCTextDeclaration & {
221
- content: IDOCTextContent;
222
- }) | IDOCTextDeclaration;
291
+ type TextProp = string | TextContent | (TextDeclaration & {
292
+ content: TextContent;
293
+ }) | TextDeclaration;
223
294
 
224
- interface IDOCVideoDeclaration {
295
+ interface VideoDeclaration {
225
296
  url: string;
226
297
  opacity?: number;
227
298
  }
228
299
 
229
- type IDOCVideoProp = Noneable | string | IDOCVideoDeclaration;
300
+ type VideoProp = Noneable | string | VideoDeclaration;
230
301
 
231
302
  interface IDOCElement extends IDOCNode {
232
- style?: IDOCStyleProp;
233
- image?: IDOCImageProp;
234
- video?: IDOCVideoProp;
235
- text?: IDOCTextProp;
236
- geometry?: IDOCGeometryProp;
237
- fill?: IDOCFillProp;
238
- stroke?: IDOCStrokeProp;
303
+ style?: StyleProp;
304
+ image?: ImageProp;
305
+ video?: VideoProp;
306
+ text?: TextProp;
307
+ geometry?: GeometryProp;
308
+ fill?: FillProp;
309
+ stroke?: StrokeProp;
239
310
  children?: IDOCElement[];
240
311
  }
241
312
 
242
- interface IDOCDocument extends IDOCElement {
243
- fonts?: any;
313
+ interface ElementDeclaration extends IDOCElement {
314
+ image?: ImageDeclaration;
315
+ video?: VideoDeclaration;
316
+ text?: TextDeclaration;
317
+ geometry?: GeometryDeclaration;
318
+ fill?: FillDeclaration;
319
+ stroke?: StrokeDeclaration;
320
+ children?: ElementDeclaration[];
244
321
  }
245
322
 
246
- interface IDOCElementDeclaration extends IDOCElement {
247
- image?: IDOCImageDeclaration;
248
- video?: IDOCVideoDeclaration;
249
- text?: IDOCTextDeclaration;
250
- geometry?: IDOCGeometryDeclaration;
251
- fill?: IDOCFillDeclaration;
252
- stroke?: IDOCStrokeDeclaration;
253
- children?: IDOCElementDeclaration[];
323
+ interface IDOCDocument extends IDOCElement {
324
+ fonts?: any;
254
325
  }
255
326
 
256
- declare function getDefaultElementStyle(): IDOCElementStyleDeclaration;
327
+ declare function getDefaultElementStyle(): ElementStyleDeclaration;
257
328
 
258
- declare function getDefaultShadowStyle(): IDOCShadowStyleDeclaration;
329
+ declare function getDefaultShadowStyle(): ShadowStyleDeclaration;
259
330
 
260
- declare function getDefaultStyle(): IDOCStyleDeclaration;
331
+ declare function getDefaultStyle(): StyleDeclaration;
261
332
 
262
- declare function getDefaultTextStyle(): IDOCTextStyleDeclaration;
333
+ declare function getDefaultTextStyle(): TextStyleDeclaration;
263
334
 
264
- declare function getDefaultTransformStyle(): IDOCTransformStyleDeclaration;
335
+ declare function getDefaultTransformStyle(): TransformStyleDeclaration;
265
336
 
266
- declare function normalizeElement(element: IDOCElement): IDOCElementDeclaration;
337
+ declare function normalizeElement(element: IDOCElement): ElementDeclaration;
267
338
 
268
- declare function normalizeFill(fill?: IDOCFillProp): IDOCFillDeclaration | undefined;
339
+ declare function normalizeFill(fill?: FillProp): FillDeclaration | undefined;
269
340
 
270
- declare function normalizeGeometry(geometry?: IDOCGeometryProp): IDOCGeometryDeclaration | undefined;
341
+ declare function normalizeGeometry(geometry?: GeometryProp): GeometryDeclaration | undefined;
271
342
 
272
- declare function normalizeImage(image?: IDOCImageProp): IDOCImageDeclaration | undefined;
343
+ declare function normalizeImage(image?: ImageProp): ImageDeclaration | undefined;
273
344
 
274
- declare function normalizeStroke(stroke?: IDOCStrokeProp): IDOCStrokeDeclaration | undefined;
345
+ declare function normalizeStroke(stroke?: StrokeProp): StrokeDeclaration | undefined;
275
346
 
276
- declare function normalizeText(text?: IDOCTextProp): IDOCTextDeclaration | undefined;
347
+ declare function normalizeText(text?: TextProp): TextDeclaration | undefined;
277
348
 
278
- declare function normalizeTextContent(content?: IDOCTextContent): IDOCTextContentDeclaration;
349
+ declare function normalizeTextContent(content?: TextContent): TextContentDeclaration;
279
350
 
280
- declare function normalizeVideo(video?: IDOCVideoProp): IDOCVideoDeclaration | undefined;
351
+ declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
281
352
 
282
- export { type FillRule, type FontKerning, type FontStyle, type FontWeight, type HighlightColormap, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightThickness, type IDCOShadowDeclaration, type IDOCDocument, type IDOCElement, type IDOCElementDeclaration, type IDOCElementStyleDeclaration, type IDOCFillDeclaration, type IDOCFillProp, type IDOCFragmentContent, type IDOCGeometryDeclaration, type IDOCGeometryProp, type IDOCHighlightDeclaration, type IDOCHighlightStyleDeclaration, type IDOCImageDeclaration, type IDOCImageProp, type IDOCListStyleDeclaration, type IDOCListStyleStyleDeclaration, type IDOCMetaProp, type IDOCNode, type IDOCParagraphContent, type IDOCPath2D, type IDOCPath2DStyle, type IDOCShadowStyleDeclaration, type IDOCStrokeDeclaration, type IDOCStrokeProp, type IDOCStyleDeclaration, type IDOCStyleProp, type IDOCTextContent, type IDOCTextContentDeclaration, type IDOCTextContentFlat, type IDOCTextDeclaration, type IDOCTextDrawStyleDeclaration, type IDOCTextInlineStyleDeclaration, type IDOCTextLineStyleDeclaration, type IDOCTextProp, type IDOCTextStyleDeclaration, type IDOCTransformStyleDeclaration, type IDOCVideoDeclaration, type IDOCVideoProp, type ListStyleColormap, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleType, type Overflow, type SVGPathData, type StrokeLinecap, type StrokeLinejoin, type TextAlign, type TextDecoration, type TextOrientation, type TextTransform, type TextWrap, type VerticalAlign, type Visibility, type WritingMode, getDefaultElementStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeElement, normalizeFill, normalizeGeometry, normalizeImage, normalizeStroke, normalizeText, normalizeTextContent, normalizeVideo };
353
+ export { type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProp, type FillRect, type FillRule, type FillTile, type FragmentContent, type GeometryDeclaration, type GeometryProp, type HighlightDeclaration, type HighlightStyleDeclaration, type IDOCDocument, type IDOCElement, type IDOCNode, type ImageDeclaration, type ImageProp, type LayoutStyleDeclaration, type ListStyleDeclaration, type ListStyleStyleDeclaration, type MetaProp, type ParagraphContent, type Path2DDeclaration, type Path2DStyle, type SVGPathData, type ShadowDeclaration, type ShadowStyleDeclaration, type StrokeDeclaration, type StrokeLinecap, type StrokeLinejoin, type StrokeProp, type StyleDeclaration, type StyleProp, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextProp, type TextStyleDeclaration, type TransformStyleDeclaration, type VideoDeclaration, type VideoProp, getDefaultElementStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeElement, normalizeFill, normalizeGeometry, normalizeImage, normalizeStroke, normalizeText, normalizeTextContent, normalizeVideo };