@vyaz/core 0.0.8 → 0.0.10
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.browser.d.ts +44 -2
- package/dist/index.browser.js +24985 -3
- package/dist/index.d.ts +46 -2
- package/dist/index.js +1644 -5
- package/dist/measure/FontMetricsProvider.d.ts +16 -0
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,46 @@
|
|
|
5
5
|
* layout engines, font metric providers, renderers, and utilities.
|
|
6
6
|
*/
|
|
7
7
|
export type { TextFrame, Paragraph, ParagraphStyle, TextRun, InlineWidget, AutofitConfig, TextAlignment, WritingMode, TextOrientation, VerticalAlignment, ScriptType, WhiteSpace, MultiColumnConfig, DominantBaseline, LineFitEdge, TextAlignLast, WordBreak, LineBreak, OverflowWrap, TextDecorationStyle, TextTransform, ListType, NumberFormat, ListStylePosition, ListStyle, } from './types/Document.js';
|
|
8
|
-
export
|
|
8
|
+
export declare const DEFAULT_PARAGRAPH_STYLE: {
|
|
9
|
+
alignment: import("./index.js").TextAlignment;
|
|
10
|
+
lineHeight: number;
|
|
11
|
+
spaceBefore: number;
|
|
12
|
+
spaceAfter: number;
|
|
13
|
+
indent?: number;
|
|
14
|
+
leftIndent?: number;
|
|
15
|
+
rightIndent?: number;
|
|
16
|
+
textIndent?: number;
|
|
17
|
+
letterSpacing?: number;
|
|
18
|
+
textAlignLast?: import("./index.js").TextAlignLast;
|
|
19
|
+
wordBreak?: import("./index.js").WordBreak;
|
|
20
|
+
lineBreak?: import("./index.js").LineBreak;
|
|
21
|
+
overflowWrap?: import("./index.js").OverflowWrap;
|
|
22
|
+
hyphens?: boolean;
|
|
23
|
+
whiteSpace?: import("./index.js").WhiteSpace;
|
|
24
|
+
listStyle?: import("./index.js").ListStyle;
|
|
25
|
+
listRestart?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const DEFAULT_TEXT_STYLE: {
|
|
28
|
+
type?: "text" | "inline-box" | undefined;
|
|
29
|
+
text?: string | undefined;
|
|
30
|
+
inlineWidget?: import("./index.js").InlineWidget | undefined;
|
|
31
|
+
fontFamily?: string | undefined;
|
|
32
|
+
fontSize?: number | undefined;
|
|
33
|
+
fontWeight?: number | "bold" | "normal" | undefined;
|
|
34
|
+
fontStyle?: "normal" | "italic" | undefined;
|
|
35
|
+
color?: string | undefined;
|
|
36
|
+
backgroundColor?: string | undefined;
|
|
37
|
+
letterSpacing?: number | undefined;
|
|
38
|
+
script?: import("./index.js").ScriptType | undefined;
|
|
39
|
+
underline?: boolean | undefined;
|
|
40
|
+
strikethrough?: boolean | undefined;
|
|
41
|
+
overline?: boolean | undefined;
|
|
42
|
+
textDecorationStyle?: import("./index.js").TextDecorationStyle | undefined;
|
|
43
|
+
textDecorationColor?: string | undefined;
|
|
44
|
+
textTransform?: import("./index.js").TextTransform | undefined;
|
|
45
|
+
fullWidth?: boolean | undefined;
|
|
46
|
+
fullSizeKana?: boolean | undefined;
|
|
47
|
+
};
|
|
9
48
|
export type { ParagraphLayoutResult, Line, Span, SpanFontMetrics, SemanticParagraph, SemanticLine, SemanticFragment, } from './types/LayoutTypes.js';
|
|
10
49
|
export type { FontMetrics, IFontMetricsProvider, GlyphData, } from './types/FontTypes.js';
|
|
11
50
|
export { ParagraphLayoutEngine, paragraphLayoutEngine } from './layout/ParagraphLayoutEngine.js';
|
|
@@ -19,7 +58,12 @@ export type { AutoFitOptions, AutoFitResult } from './layout/AutoFitEngine.js';
|
|
|
19
58
|
export { groupLinesByParagraph } from './utils/groupLinesByParagraph.js';
|
|
20
59
|
export type { ParagraphGroup } from './utils/groupLinesByParagraph.js';
|
|
21
60
|
export { transformText } from './utils/textTransform.js';
|
|
22
|
-
|
|
61
|
+
import { formatListNumber as _fln, defaultBulletChar as _dbc } from './utils/list.js';
|
|
62
|
+
export declare const formatListNumber: typeof _fln;
|
|
63
|
+
export declare const defaultBulletChar: typeof _dbc;
|
|
64
|
+
export declare const BULLET_CHARACTERS: {
|
|
65
|
+
[x: number]: string;
|
|
66
|
+
};
|
|
23
67
|
export { compileParagraph, getParagraphText, makeFontToken, splitParagraphByHardBreaks, collapseSegmentWhitespace } from './compile/DocumentCompiler.js';
|
|
24
68
|
export type { PreparedRichInlineItem } from './compile/DocumentCompiler.js';
|
|
25
69
|
export type { FontFace } from './measure/FontEngine.js';
|