modern-idoc 0.4.3 → 0.4.5
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 +31 -9
- package/dist/index.d.mts +31 -9
- package/dist/index.d.ts +31 -9
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -118,7 +118,9 @@ type FillDeclaration = Partial<TextureFillDeclaration> & Partial<SolidFillDeclar
|
|
|
118
118
|
type FillProperty = None | string | FillDeclaration;
|
|
119
119
|
declare function normalizeFill(fill?: FillProperty): FillDeclaration | undefined;
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
interface BackgroundDeclaration extends FillDeclaration {
|
|
122
|
+
withGeometry?: boolean;
|
|
123
|
+
}
|
|
122
124
|
type BackgroundProperty = None | string | BackgroundDeclaration;
|
|
123
125
|
declare function normalizeBackground(background?: BackgroundProperty): BackgroundDeclaration | undefined;
|
|
124
126
|
|
|
@@ -126,12 +128,14 @@ interface InnerShadowDeclaration {
|
|
|
126
128
|
color: ColorValue;
|
|
127
129
|
offsetX?: number;
|
|
128
130
|
offsetY?: number;
|
|
129
|
-
|
|
131
|
+
blurRadius?: number;
|
|
130
132
|
}
|
|
131
133
|
type InnerShadowProperty = None | InnerShadowDeclaration;
|
|
132
134
|
declare function normalizeInnerShadow(shadow?: InnerShadowProperty): InnerShadowDeclaration | undefined;
|
|
133
135
|
|
|
134
136
|
interface OuterShadowDeclaration extends InnerShadowDeclaration {
|
|
137
|
+
scaleX?: number;
|
|
138
|
+
scaleY?: number;
|
|
135
139
|
}
|
|
136
140
|
type OuterShadowProperty = None | OuterShadowDeclaration;
|
|
137
141
|
declare function normalizeOuterShadow(shadow?: OuterShadowProperty): OuterShadowDeclaration | undefined;
|
|
@@ -150,7 +154,9 @@ interface EffectDeclaration {
|
|
|
150
154
|
type EffectProperty = None | EffectDeclaration;
|
|
151
155
|
declare function normalizeEffect(effect?: EffectProperty): EffectDeclaration | undefined;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
interface ForegroundDeclaration extends FillDeclaration {
|
|
158
|
+
withGeometry?: boolean;
|
|
159
|
+
}
|
|
154
160
|
type ForegroundProperty = None | string | ForegroundDeclaration;
|
|
155
161
|
declare function normalizeForeground(foreground?: ForegroundProperty): ForegroundDeclaration | undefined;
|
|
156
162
|
|
|
@@ -200,12 +206,28 @@ interface Node<T = MetaProperty> {
|
|
|
200
206
|
meta?: T;
|
|
201
207
|
}
|
|
202
208
|
|
|
203
|
-
|
|
209
|
+
type LineEndType = 'oval' | 'stealth' | 'triangle' | 'arrow' | 'diamond';
|
|
210
|
+
type LineEndSize = 'sm' | 'md' | 'lg';
|
|
211
|
+
|
|
212
|
+
interface HeadEnd {
|
|
213
|
+
type: LineEndType;
|
|
214
|
+
width?: None | LineEndSize;
|
|
215
|
+
height?: None | LineEndSize;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface TailEnd {
|
|
219
|
+
type: LineEndType;
|
|
220
|
+
width?: None | LineEndSize;
|
|
221
|
+
height?: None | LineEndSize;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type OutlineFillDeclaration = Partial<SolidFillDeclaration> & Partial<GradientFillDeclaration>;
|
|
225
|
+
type OutlineStyle = 'dashed' | 'solid' | string;
|
|
226
|
+
interface OutlineDeclaration extends OutlineFillDeclaration {
|
|
204
227
|
width?: number;
|
|
205
|
-
style?:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
opacity?: number;
|
|
228
|
+
style?: OutlineStyle;
|
|
229
|
+
headEnd?: HeadEnd;
|
|
230
|
+
tailEnd?: TailEnd;
|
|
209
231
|
}
|
|
210
232
|
type OutlineProperty = None | string | Partial<OutlineDeclaration>;
|
|
211
233
|
declare function normalizeOutline(outline?: OutlineProperty): OutlineDeclaration | undefined;
|
|
@@ -480,4 +502,4 @@ declare function normalizeDocument(doc: Document): DocumentDeclaration;
|
|
|
480
502
|
|
|
481
503
|
declare function clearUndef<T>(obj: T, deep?: boolean): T;
|
|
482
504
|
|
|
483
|
-
export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineProperty, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
|
|
505
|
+
export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HeadEnd, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type LineEndSize, type LineEndType, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineFillDeclaration, type OutlineProperty, type OutlineStyle, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TailEnd, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
|
package/dist/index.d.mts
CHANGED
|
@@ -118,7 +118,9 @@ type FillDeclaration = Partial<TextureFillDeclaration> & Partial<SolidFillDeclar
|
|
|
118
118
|
type FillProperty = None | string | FillDeclaration;
|
|
119
119
|
declare function normalizeFill(fill?: FillProperty): FillDeclaration | undefined;
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
interface BackgroundDeclaration extends FillDeclaration {
|
|
122
|
+
withGeometry?: boolean;
|
|
123
|
+
}
|
|
122
124
|
type BackgroundProperty = None | string | BackgroundDeclaration;
|
|
123
125
|
declare function normalizeBackground(background?: BackgroundProperty): BackgroundDeclaration | undefined;
|
|
124
126
|
|
|
@@ -126,12 +128,14 @@ interface InnerShadowDeclaration {
|
|
|
126
128
|
color: ColorValue;
|
|
127
129
|
offsetX?: number;
|
|
128
130
|
offsetY?: number;
|
|
129
|
-
|
|
131
|
+
blurRadius?: number;
|
|
130
132
|
}
|
|
131
133
|
type InnerShadowProperty = None | InnerShadowDeclaration;
|
|
132
134
|
declare function normalizeInnerShadow(shadow?: InnerShadowProperty): InnerShadowDeclaration | undefined;
|
|
133
135
|
|
|
134
136
|
interface OuterShadowDeclaration extends InnerShadowDeclaration {
|
|
137
|
+
scaleX?: number;
|
|
138
|
+
scaleY?: number;
|
|
135
139
|
}
|
|
136
140
|
type OuterShadowProperty = None | OuterShadowDeclaration;
|
|
137
141
|
declare function normalizeOuterShadow(shadow?: OuterShadowProperty): OuterShadowDeclaration | undefined;
|
|
@@ -150,7 +154,9 @@ interface EffectDeclaration {
|
|
|
150
154
|
type EffectProperty = None | EffectDeclaration;
|
|
151
155
|
declare function normalizeEffect(effect?: EffectProperty): EffectDeclaration | undefined;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
interface ForegroundDeclaration extends FillDeclaration {
|
|
158
|
+
withGeometry?: boolean;
|
|
159
|
+
}
|
|
154
160
|
type ForegroundProperty = None | string | ForegroundDeclaration;
|
|
155
161
|
declare function normalizeForeground(foreground?: ForegroundProperty): ForegroundDeclaration | undefined;
|
|
156
162
|
|
|
@@ -200,12 +206,28 @@ interface Node<T = MetaProperty> {
|
|
|
200
206
|
meta?: T;
|
|
201
207
|
}
|
|
202
208
|
|
|
203
|
-
|
|
209
|
+
type LineEndType = 'oval' | 'stealth' | 'triangle' | 'arrow' | 'diamond';
|
|
210
|
+
type LineEndSize = 'sm' | 'md' | 'lg';
|
|
211
|
+
|
|
212
|
+
interface HeadEnd {
|
|
213
|
+
type: LineEndType;
|
|
214
|
+
width?: None | LineEndSize;
|
|
215
|
+
height?: None | LineEndSize;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface TailEnd {
|
|
219
|
+
type: LineEndType;
|
|
220
|
+
width?: None | LineEndSize;
|
|
221
|
+
height?: None | LineEndSize;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type OutlineFillDeclaration = Partial<SolidFillDeclaration> & Partial<GradientFillDeclaration>;
|
|
225
|
+
type OutlineStyle = 'dashed' | 'solid' | string;
|
|
226
|
+
interface OutlineDeclaration extends OutlineFillDeclaration {
|
|
204
227
|
width?: number;
|
|
205
|
-
style?:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
opacity?: number;
|
|
228
|
+
style?: OutlineStyle;
|
|
229
|
+
headEnd?: HeadEnd;
|
|
230
|
+
tailEnd?: TailEnd;
|
|
209
231
|
}
|
|
210
232
|
type OutlineProperty = None | string | Partial<OutlineDeclaration>;
|
|
211
233
|
declare function normalizeOutline(outline?: OutlineProperty): OutlineDeclaration | undefined;
|
|
@@ -480,4 +502,4 @@ declare function normalizeDocument(doc: Document): DocumentDeclaration;
|
|
|
480
502
|
|
|
481
503
|
declare function clearUndef<T>(obj: T, deep?: boolean): T;
|
|
482
504
|
|
|
483
|
-
export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineProperty, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
|
|
505
|
+
export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HeadEnd, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type LineEndSize, type LineEndType, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineFillDeclaration, type OutlineProperty, type OutlineStyle, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TailEnd, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
|
package/dist/index.d.ts
CHANGED
|
@@ -118,7 +118,9 @@ type FillDeclaration = Partial<TextureFillDeclaration> & Partial<SolidFillDeclar
|
|
|
118
118
|
type FillProperty = None | string | FillDeclaration;
|
|
119
119
|
declare function normalizeFill(fill?: FillProperty): FillDeclaration | undefined;
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
interface BackgroundDeclaration extends FillDeclaration {
|
|
122
|
+
withGeometry?: boolean;
|
|
123
|
+
}
|
|
122
124
|
type BackgroundProperty = None | string | BackgroundDeclaration;
|
|
123
125
|
declare function normalizeBackground(background?: BackgroundProperty): BackgroundDeclaration | undefined;
|
|
124
126
|
|
|
@@ -126,12 +128,14 @@ interface InnerShadowDeclaration {
|
|
|
126
128
|
color: ColorValue;
|
|
127
129
|
offsetX?: number;
|
|
128
130
|
offsetY?: number;
|
|
129
|
-
|
|
131
|
+
blurRadius?: number;
|
|
130
132
|
}
|
|
131
133
|
type InnerShadowProperty = None | InnerShadowDeclaration;
|
|
132
134
|
declare function normalizeInnerShadow(shadow?: InnerShadowProperty): InnerShadowDeclaration | undefined;
|
|
133
135
|
|
|
134
136
|
interface OuterShadowDeclaration extends InnerShadowDeclaration {
|
|
137
|
+
scaleX?: number;
|
|
138
|
+
scaleY?: number;
|
|
135
139
|
}
|
|
136
140
|
type OuterShadowProperty = None | OuterShadowDeclaration;
|
|
137
141
|
declare function normalizeOuterShadow(shadow?: OuterShadowProperty): OuterShadowDeclaration | undefined;
|
|
@@ -150,7 +154,9 @@ interface EffectDeclaration {
|
|
|
150
154
|
type EffectProperty = None | EffectDeclaration;
|
|
151
155
|
declare function normalizeEffect(effect?: EffectProperty): EffectDeclaration | undefined;
|
|
152
156
|
|
|
153
|
-
|
|
157
|
+
interface ForegroundDeclaration extends FillDeclaration {
|
|
158
|
+
withGeometry?: boolean;
|
|
159
|
+
}
|
|
154
160
|
type ForegroundProperty = None | string | ForegroundDeclaration;
|
|
155
161
|
declare function normalizeForeground(foreground?: ForegroundProperty): ForegroundDeclaration | undefined;
|
|
156
162
|
|
|
@@ -200,12 +206,28 @@ interface Node<T = MetaProperty> {
|
|
|
200
206
|
meta?: T;
|
|
201
207
|
}
|
|
202
208
|
|
|
203
|
-
|
|
209
|
+
type LineEndType = 'oval' | 'stealth' | 'triangle' | 'arrow' | 'diamond';
|
|
210
|
+
type LineEndSize = 'sm' | 'md' | 'lg';
|
|
211
|
+
|
|
212
|
+
interface HeadEnd {
|
|
213
|
+
type: LineEndType;
|
|
214
|
+
width?: None | LineEndSize;
|
|
215
|
+
height?: None | LineEndSize;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
interface TailEnd {
|
|
219
|
+
type: LineEndType;
|
|
220
|
+
width?: None | LineEndSize;
|
|
221
|
+
height?: None | LineEndSize;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
type OutlineFillDeclaration = Partial<SolidFillDeclaration> & Partial<GradientFillDeclaration>;
|
|
225
|
+
type OutlineStyle = 'dashed' | 'solid' | string;
|
|
226
|
+
interface OutlineDeclaration extends OutlineFillDeclaration {
|
|
204
227
|
width?: number;
|
|
205
|
-
style?:
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
opacity?: number;
|
|
228
|
+
style?: OutlineStyle;
|
|
229
|
+
headEnd?: HeadEnd;
|
|
230
|
+
tailEnd?: TailEnd;
|
|
209
231
|
}
|
|
210
232
|
type OutlineProperty = None | string | Partial<OutlineDeclaration>;
|
|
211
233
|
declare function normalizeOutline(outline?: OutlineProperty): OutlineDeclaration | undefined;
|
|
@@ -480,4 +502,4 @@ declare function normalizeDocument(doc: Document): DocumentDeclaration;
|
|
|
480
502
|
|
|
481
503
|
declare function clearUndef<T>(obj: T, deep?: boolean): T;
|
|
482
504
|
|
|
483
|
-
export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineProperty, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
|
|
505
|
+
export { type Align, type AnyColor, type AudioDeclaration, type AudioProperty, type BackgroundDeclaration, type BackgroundProperty, type BorderStyle, type BoxShadow, type BoxSizing, type CmykColor, type CmykaColor, type ColorValue, type Direction, type Display, type Document, type DocumentDeclaration, type EffectDeclaration, type EffectProperty, type Element, type ElementDeclaration, type ElementStyleDeclaration, type FillDeclaration, type FillProperty, type FillRule, type FlexDirection, type FlexWrap, type FontKerning, type FontStyle, type FontWeight, type ForegroundDeclaration, type ForegroundProperty, type FragmentContent, type GeometryDeclaration, type GeometryPathDeclaration, type GeometryPathStyle, type GeometryProperty, type GradientFillDeclaration, type HeadEnd, type HighlightColormap, type HighlightDeclaration, type HighlightImage, type HighlightLine, type HighlightReferImage, type HighlightSize, type HighlightStyleDeclaration, type HighlightThickness, type HslColor, type HslaColor, type HsvColor, type HsvaColor, type HwbColor, type HwbaColor, type InnerShadowDeclaration, type InnerShadowProperty, type Justify, type LabColor, type LabaColor, type LayoutStyleDeclaration, type LchColor, type LchaColor, type LineEndSize, type LineEndType, type ListStyleColormap, type ListStyleDeclaration, type ListStyleImage, type ListStylePosition, type ListStyleSize, type ListStyleStyleDeclaration, type ListStyleType, type MetaProperty, type Node, type None, type ObjectColor, type OuterShadowDeclaration, type OuterShadowProperty, type OutlineDeclaration, type OutlineFillDeclaration, type OutlineProperty, type OutlineStyle, type Overflow, type ParagraphContent, type PointerEvents, type Position, type RgbColor, type RgbaColor, type SVGPathData, type ShadowDeclaration, type ShadowProperty, type ShadowStyleDeclaration, type SoftEdge, type SoftEdgeDeclaration, type SolidFillDeclaration, type StrokeLinecap, type StrokeLinejoin, type StyleDeclaration, type StyleProperty, type StyleUnit, type TailEnd, type TextAlign, type TextContent, type TextContentDeclaration, type TextContentFlat, type TextDeclaration, type TextDecoration, type TextDrawStyleDeclaration, type TextInlineStyleDeclaration, type TextLineStyleDeclaration, type TextOrientation, type TextProperty, type TextStyleDeclaration, type TextTransform, type TextWrap, type TextureFillDeclaration, type TextureFillSourceRect, type TextureFillSourceURL, type TextureFillStretch, type TextureFillStretchRect, type TextureFillTile, type TransformStyleDeclaration, type VerticalAlign, type VideoDeclaration, type VideoProperty, type Visibility, type WritingMode, type XyzColor, type XyzaColor, clearUndef, getDefaultElementStyle, getDefaultHighlightStyle, getDefaultLayoutStyle, getDefaultListStyleStyle, getDefaultShadowStyle, getDefaultStyle, getDefaultTextInlineStyle, getDefaultTextLineStyle, getDefaultTextStyle, getDefaultTransformStyle, normalizeAudio, normalizeBackground, normalizeDocument, normalizeEffect, normalizeElement, normalizeFill, normalizeForeground, normalizeGeometry, normalizeInnerShadow, normalizeOuterShadow, normalizeOutline, normalizeShadow, normalizeText, normalizeTextContent, normalizeVideo };
|