modern-idoc 0.2.0 → 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,7 +1,32 @@
1
- interface FillDeclaration {
1
+ interface ImageFillRect {
2
+ left?: number;
3
+ top?: number;
4
+ bottom?: number;
5
+ right?: number;
6
+ }
7
+ interface ImageFillTile {
8
+ alignment?: string;
9
+ scaleX?: number;
10
+ scaleY?: number;
11
+ translateX?: number;
12
+ translateY?: number;
13
+ flip?: string;
14
+ }
15
+ interface CommonFillDeclaration {
16
+ opacity?: number;
17
+ }
18
+ interface ImageFillDeclaration extends CommonFillDeclaration {
2
19
  image?: string;
20
+ dpi?: number;
21
+ rotateWithShape?: boolean;
22
+ srcRect?: ImageFillRect;
23
+ fillRect?: ImageFillRect;
24
+ tile?: ImageFillTile;
25
+ }
26
+ interface ColorFillDeclaration extends CommonFillDeclaration {
3
27
  color?: string;
4
- opacity?: number;
28
+ }
29
+ interface FillDeclaration extends ImageFillDeclaration, ColorFillDeclaration {
5
30
  }
6
31
 
7
32
  type SVGPathData = string;
@@ -331,4 +356,4 @@ declare function normalizeTextContent(content?: TextContent): TextContentDeclara
331
356
 
332
357
  declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
333
358
 
334
- export { 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 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,7 +1,32 @@
1
- interface FillDeclaration {
1
+ interface ImageFillRect {
2
+ left?: number;
3
+ top?: number;
4
+ bottom?: number;
5
+ right?: number;
6
+ }
7
+ interface ImageFillTile {
8
+ alignment?: string;
9
+ scaleX?: number;
10
+ scaleY?: number;
11
+ translateX?: number;
12
+ translateY?: number;
13
+ flip?: string;
14
+ }
15
+ interface CommonFillDeclaration {
16
+ opacity?: number;
17
+ }
18
+ interface ImageFillDeclaration extends CommonFillDeclaration {
2
19
  image?: string;
20
+ dpi?: number;
21
+ rotateWithShape?: boolean;
22
+ srcRect?: ImageFillRect;
23
+ fillRect?: ImageFillRect;
24
+ tile?: ImageFillTile;
25
+ }
26
+ interface ColorFillDeclaration extends CommonFillDeclaration {
3
27
  color?: string;
4
- opacity?: number;
28
+ }
29
+ interface FillDeclaration extends ImageFillDeclaration, ColorFillDeclaration {
5
30
  }
6
31
 
7
32
  type SVGPathData = string;
@@ -331,4 +356,4 @@ declare function normalizeTextContent(content?: TextContent): TextContentDeclara
331
356
 
332
357
  declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
333
358
 
334
- export { 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 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,7 +1,32 @@
1
- interface FillDeclaration {
1
+ interface ImageFillRect {
2
+ left?: number;
3
+ top?: number;
4
+ bottom?: number;
5
+ right?: number;
6
+ }
7
+ interface ImageFillTile {
8
+ alignment?: string;
9
+ scaleX?: number;
10
+ scaleY?: number;
11
+ translateX?: number;
12
+ translateY?: number;
13
+ flip?: string;
14
+ }
15
+ interface CommonFillDeclaration {
16
+ opacity?: number;
17
+ }
18
+ interface ImageFillDeclaration extends CommonFillDeclaration {
2
19
  image?: string;
20
+ dpi?: number;
21
+ rotateWithShape?: boolean;
22
+ srcRect?: ImageFillRect;
23
+ fillRect?: ImageFillRect;
24
+ tile?: ImageFillTile;
25
+ }
26
+ interface ColorFillDeclaration extends CommonFillDeclaration {
3
27
  color?: string;
4
- opacity?: number;
28
+ }
29
+ interface FillDeclaration extends ImageFillDeclaration, ColorFillDeclaration {
5
30
  }
6
31
 
7
32
  type SVGPathData = string;
@@ -331,4 +356,4 @@ declare function normalizeTextContent(content?: TextContent): TextContentDeclara
331
356
 
332
357
  declare function normalizeVideo(video?: VideoProp): VideoDeclaration | undefined;
333
358
 
334
- export { 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 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.0",
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",