@takumi-rs/helpers 0.43.1 → 0.44.0
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,5 +1,5 @@
|
|
|
1
|
-
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as ColorInput } from './types-
|
|
2
|
-
export { A as AnyNode, J as JsonValue, N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as ColorInput } from './types-D3LLAlez.cjs';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-D3LLAlez.cjs';
|
|
3
3
|
|
|
4
4
|
declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
|
|
5
5
|
declare function text(text: string, style?: PartialStyle): TextNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as ColorInput } from './types-
|
|
2
|
-
export { A as AnyNode, J as JsonValue, N as Node } from './types-
|
|
1
|
+
import { C as ContainerNode, P as PartialStyle, T as TextNode, I as ImageNode, S as Style, a as ColorInput } from './types-D3LLAlez.js';
|
|
2
|
+
export { A as AnyNode, J as JsonValue, N as Node } from './types-D3LLAlez.js';
|
|
3
3
|
|
|
4
4
|
declare function container(props: Omit<ContainerNode, "type">): ContainerNode;
|
|
5
5
|
declare function text(text: string, style?: PartialStyle): TextNode;
|
package/dist/jsx/jsx.d.cts
CHANGED
package/dist/jsx/jsx.d.ts
CHANGED
|
@@ -800,6 +800,11 @@ type TextStroke = {
|
|
|
800
800
|
*/
|
|
801
801
|
type TextTransform = "none" | "uppercase" | "lowercase" | "capitalize";
|
|
802
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Controls whether text should be wrapped.
|
|
805
|
+
*/
|
|
806
|
+
type TextWrapMode = "wrap" | "nowrap";
|
|
807
|
+
|
|
803
808
|
/**
|
|
804
809
|
* Represents an affine transform matrix
|
|
805
810
|
*/
|
|
@@ -858,6 +863,21 @@ type Translate = {
|
|
|
858
863
|
y: LengthUnit;
|
|
859
864
|
} | string;
|
|
860
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Controls how whitespace should be collapsed.
|
|
868
|
+
*/
|
|
869
|
+
type WhiteSpaceCollapse = "preserve" | "collapse" | "preserve-spaces" | "preserve-breaks";
|
|
870
|
+
|
|
871
|
+
type WhiteSpaceKeywords = "normal" | "pre" | "pre-wrap" | "pre-line";
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Controls how whitespace should be handled.
|
|
875
|
+
*/
|
|
876
|
+
type WhiteSpace = WhiteSpaceKeywords | {
|
|
877
|
+
textWrapMode: TextWrapMode;
|
|
878
|
+
whiteSpaceCollapse: WhiteSpaceCollapse;
|
|
879
|
+
} | string;
|
|
880
|
+
|
|
861
881
|
/**
|
|
862
882
|
* Controls how text should be broken at word boundaries.
|
|
863
883
|
*
|
|
@@ -975,6 +995,10 @@ type Style = {
|
|
|
975
995
|
wordBreak: CssValue<WordBreak>;
|
|
976
996
|
clipPath: CssValue<CssOption<BasicShape>>;
|
|
977
997
|
clipRule: CssValue<FillRule>;
|
|
998
|
+
whiteSpace: CssValue<WhiteSpace>;
|
|
999
|
+
whiteSpaceCollapse: CssValue<CssOption<WhiteSpaceCollapse>>;
|
|
1000
|
+
textWrapMode: CssValue<CssOption<TextWrapMode>>;
|
|
1001
|
+
textWrap: CssValue<CssOption<TextWrapMode>>;
|
|
978
1002
|
};
|
|
979
1003
|
|
|
980
1004
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
@@ -800,6 +800,11 @@ type TextStroke = {
|
|
|
800
800
|
*/
|
|
801
801
|
type TextTransform = "none" | "uppercase" | "lowercase" | "capitalize";
|
|
802
802
|
|
|
803
|
+
/**
|
|
804
|
+
* Controls whether text should be wrapped.
|
|
805
|
+
*/
|
|
806
|
+
type TextWrapMode = "wrap" | "nowrap";
|
|
807
|
+
|
|
803
808
|
/**
|
|
804
809
|
* Represents an affine transform matrix
|
|
805
810
|
*/
|
|
@@ -858,6 +863,21 @@ type Translate = {
|
|
|
858
863
|
y: LengthUnit;
|
|
859
864
|
} | string;
|
|
860
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Controls how whitespace should be collapsed.
|
|
868
|
+
*/
|
|
869
|
+
type WhiteSpaceCollapse = "preserve" | "collapse" | "preserve-spaces" | "preserve-breaks";
|
|
870
|
+
|
|
871
|
+
type WhiteSpaceKeywords = "normal" | "pre" | "pre-wrap" | "pre-line";
|
|
872
|
+
|
|
873
|
+
/**
|
|
874
|
+
* Controls how whitespace should be handled.
|
|
875
|
+
*/
|
|
876
|
+
type WhiteSpace = WhiteSpaceKeywords | {
|
|
877
|
+
textWrapMode: TextWrapMode;
|
|
878
|
+
whiteSpaceCollapse: WhiteSpaceCollapse;
|
|
879
|
+
} | string;
|
|
880
|
+
|
|
861
881
|
/**
|
|
862
882
|
* Controls how text should be broken at word boundaries.
|
|
863
883
|
*
|
|
@@ -975,6 +995,10 @@ type Style = {
|
|
|
975
995
|
wordBreak: CssValue<WordBreak>;
|
|
976
996
|
clipPath: CssValue<CssOption<BasicShape>>;
|
|
977
997
|
clipRule: CssValue<FillRule>;
|
|
998
|
+
whiteSpace: CssValue<WhiteSpace>;
|
|
999
|
+
whiteSpaceCollapse: CssValue<CssOption<WhiteSpaceCollapse>>;
|
|
1000
|
+
textWrapMode: CssValue<CssOption<TextWrapMode>>;
|
|
1001
|
+
textWrap: CssValue<CssOption<TextWrapMode>>;
|
|
978
1002
|
};
|
|
979
1003
|
|
|
980
1004
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|