modern-idoc 0.6.3 → 0.6.4

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
@@ -634,14 +634,18 @@ interface NormalizedTextDrawStyle {
634
634
  type NormalizedTextStyle = NormalizedTextLineStyle & NormalizedTextInlineStyle & NormalizedTextDrawStyle;
635
635
  declare function getDefaultTextStyle(): Required<NormalizedTextStyle>;
636
636
 
637
- interface NormalizedStyle extends NormalizedTextStyle, NormalizedElementStyle {
638
- }
637
+ type NormalizedStyle = NormalizedTextStyle & NormalizedElementStyle & {
638
+ fill?: NormalizedFill;
639
+ outline?: NormalizedOutline;
640
+ };
639
641
  type StyleObject = Partial<NormalizedStyle> & {
640
642
  color?: WithNone<Color>;
641
643
  backgroundColor?: WithNone<Color>;
642
644
  borderColor?: WithNone<Color>;
643
645
  outlineColor?: WithNone<Color>;
644
646
  shadowColor?: WithNone<Color>;
647
+ fill?: Fill;
648
+ outline?: Outline;
645
649
  };
646
650
  type Style = StyleObject;
647
651
  declare function normalizeStyle(style: Style): Partial<NormalizedStyle>;
package/dist/index.d.mts CHANGED
@@ -634,14 +634,18 @@ interface NormalizedTextDrawStyle {
634
634
  type NormalizedTextStyle = NormalizedTextLineStyle & NormalizedTextInlineStyle & NormalizedTextDrawStyle;
635
635
  declare function getDefaultTextStyle(): Required<NormalizedTextStyle>;
636
636
 
637
- interface NormalizedStyle extends NormalizedTextStyle, NormalizedElementStyle {
638
- }
637
+ type NormalizedStyle = NormalizedTextStyle & NormalizedElementStyle & {
638
+ fill?: NormalizedFill;
639
+ outline?: NormalizedOutline;
640
+ };
639
641
  type StyleObject = Partial<NormalizedStyle> & {
640
642
  color?: WithNone<Color>;
641
643
  backgroundColor?: WithNone<Color>;
642
644
  borderColor?: WithNone<Color>;
643
645
  outlineColor?: WithNone<Color>;
644
646
  shadowColor?: WithNone<Color>;
647
+ fill?: Fill;
648
+ outline?: Outline;
645
649
  };
646
650
  type Style = StyleObject;
647
651
  declare function normalizeStyle(style: Style): Partial<NormalizedStyle>;
package/dist/index.d.ts CHANGED
@@ -634,14 +634,18 @@ interface NormalizedTextDrawStyle {
634
634
  type NormalizedTextStyle = NormalizedTextLineStyle & NormalizedTextInlineStyle & NormalizedTextDrawStyle;
635
635
  declare function getDefaultTextStyle(): Required<NormalizedTextStyle>;
636
636
 
637
- interface NormalizedStyle extends NormalizedTextStyle, NormalizedElementStyle {
638
- }
637
+ type NormalizedStyle = NormalizedTextStyle & NormalizedElementStyle & {
638
+ fill?: NormalizedFill;
639
+ outline?: NormalizedOutline;
640
+ };
639
641
  type StyleObject = Partial<NormalizedStyle> & {
640
642
  color?: WithNone<Color>;
641
643
  backgroundColor?: WithNone<Color>;
642
644
  borderColor?: WithNone<Color>;
643
645
  outlineColor?: WithNone<Color>;
644
646
  shadowColor?: WithNone<Color>;
647
+ fill?: Fill;
648
+ outline?: Outline;
645
649
  };
646
650
  type Style = StyleObject;
647
651
  declare function normalizeStyle(style: Style): Partial<NormalizedStyle>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-idoc",
3
3
  "type": "module",
4
- "version": "0.6.3",
4
+ "version": "0.6.4",
5
5
  "packageManager": "pnpm@9.15.1",
6
6
  "description": "Intermediate document for modern codec libs",
7
7
  "author": "wxm",