modern-idoc 0.2.1 → 0.2.2

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.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- interface FillRect {
1
+ interface ImageFillRect {
2
2
  left?: number;
3
3
  top?: number;
4
4
  bottom?: number;
5
5
  right?: number;
6
6
  }
7
- interface FillTile {
7
+ interface ImageFillTile {
8
8
  alignment?: string;
9
9
  scaleX?: number;
10
10
  scaleY?: number;
@@ -12,16 +12,22 @@ interface FillTile {
12
12
  translateY?: number;
13
13
  flip?: string;
14
14
  }
15
- interface FillDeclaration {
15
+ interface CommonFillDeclaration {
16
16
  opacity?: number;
17
+ }
18
+ interface ImageFillDeclaration extends CommonFillDeclaration {
17
19
  image?: string;
18
20
  dpi?: number;
19
21
  rotateWithShape?: boolean;
20
- srcRect?: FillRect;
21
- fillRect?: FillRect;
22
- tile?: FillTile;
22
+ srcRect?: ImageFillRect;
23
+ fillRect?: ImageFillRect;
24
+ tile?: ImageFillTile;
25
+ }
26
+ interface ColorFillDeclaration extends CommonFillDeclaration {
23
27
  color?: string;
24
28
  }
29
+ interface FillDeclaration extends ImageFillDeclaration, ColorFillDeclaration {
30
+ }
25
31
 
26
32
  type SVGPathData = string;
27
33
  type FillRule = 'nonzero' | 'evenodd';
@@ -350,4 +356,4 @@ declare function normalizeTextContent(content?: TextContent): TextContentDeclara
350
356
 
351
357
  declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
352
358
 
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 };
359
+ export { type ColorFillDeclaration, type CommonFillDeclaration, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProp, type FillRule, type FragmentContent, type GeometryDeclaration, type GeometryProp, type HighlightDeclaration, type HighlightStyleDeclaration, type IDOCDocument, type IDOCElement, type IDOCNode, type ImageDeclaration, type ImageFillDeclaration, type ImageFillRect, type ImageFillTile, 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 };
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
1
- interface FillRect {
1
+ interface ImageFillRect {
2
2
  left?: number;
3
3
  top?: number;
4
4
  bottom?: number;
5
5
  right?: number;
6
6
  }
7
- interface FillTile {
7
+ interface ImageFillTile {
8
8
  alignment?: string;
9
9
  scaleX?: number;
10
10
  scaleY?: number;
@@ -12,16 +12,22 @@ interface FillTile {
12
12
  translateY?: number;
13
13
  flip?: string;
14
14
  }
15
- interface FillDeclaration {
15
+ interface CommonFillDeclaration {
16
16
  opacity?: number;
17
+ }
18
+ interface ImageFillDeclaration extends CommonFillDeclaration {
17
19
  image?: string;
18
20
  dpi?: number;
19
21
  rotateWithShape?: boolean;
20
- srcRect?: FillRect;
21
- fillRect?: FillRect;
22
- tile?: FillTile;
22
+ srcRect?: ImageFillRect;
23
+ fillRect?: ImageFillRect;
24
+ tile?: ImageFillTile;
25
+ }
26
+ interface ColorFillDeclaration extends CommonFillDeclaration {
23
27
  color?: string;
24
28
  }
29
+ interface FillDeclaration extends ImageFillDeclaration, ColorFillDeclaration {
30
+ }
25
31
 
26
32
  type SVGPathData = string;
27
33
  type FillRule = 'nonzero' | 'evenodd';
@@ -350,4 +356,4 @@ declare function normalizeTextContent(content?: TextContent): TextContentDeclara
350
356
 
351
357
  declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
352
358
 
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 };
359
+ export { type ColorFillDeclaration, type CommonFillDeclaration, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProp, type FillRule, type FragmentContent, type GeometryDeclaration, type GeometryProp, type HighlightDeclaration, type HighlightStyleDeclaration, type IDOCDocument, type IDOCElement, type IDOCNode, type ImageDeclaration, type ImageFillDeclaration, type ImageFillRect, type ImageFillTile, 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 };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- interface FillRect {
1
+ interface ImageFillRect {
2
2
  left?: number;
3
3
  top?: number;
4
4
  bottom?: number;
5
5
  right?: number;
6
6
  }
7
- interface FillTile {
7
+ interface ImageFillTile {
8
8
  alignment?: string;
9
9
  scaleX?: number;
10
10
  scaleY?: number;
@@ -12,16 +12,22 @@ interface FillTile {
12
12
  translateY?: number;
13
13
  flip?: string;
14
14
  }
15
- interface FillDeclaration {
15
+ interface CommonFillDeclaration {
16
16
  opacity?: number;
17
+ }
18
+ interface ImageFillDeclaration extends CommonFillDeclaration {
17
19
  image?: string;
18
20
  dpi?: number;
19
21
  rotateWithShape?: boolean;
20
- srcRect?: FillRect;
21
- fillRect?: FillRect;
22
- tile?: FillTile;
22
+ srcRect?: ImageFillRect;
23
+ fillRect?: ImageFillRect;
24
+ tile?: ImageFillTile;
25
+ }
26
+ interface ColorFillDeclaration extends CommonFillDeclaration {
23
27
  color?: string;
24
28
  }
29
+ interface FillDeclaration extends ImageFillDeclaration, ColorFillDeclaration {
30
+ }
25
31
 
26
32
  type SVGPathData = string;
27
33
  type FillRule = 'nonzero' | 'evenodd';
@@ -350,4 +356,4 @@ declare function normalizeTextContent(content?: TextContent): TextContentDeclara
350
356
 
351
357
  declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
352
358
 
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 };
359
+ export { type ColorFillDeclaration, type CommonFillDeclaration, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProp, type FillRule, type FragmentContent, type GeometryDeclaration, type GeometryProp, type HighlightDeclaration, type HighlightStyleDeclaration, type IDOCDocument, type IDOCElement, type IDOCNode, type ImageDeclaration, type ImageFillDeclaration, type ImageFillRect, type ImageFillTile, 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 };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-idoc",
3
3
  "type": "module",
4
- "version": "0.2.1",
4
+ "version": "0.2.2",
5
5
  "packageManager": "pnpm@9.15.1",
6
6
  "description": "Intermediate document for modern codec libs",
7
7
  "author": "wxm",