@weasel-js/text 1.14.0 → 1.14.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/{chunk-FODNMBHI.js → chunk-5BJN6MC6.js} +487 -387
- package/dist/chunk-5BJN6MC6.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -16
- package/dist/index.js.map +1 -1
- package/dist/{test-seams-DHGfE_6p.d.ts → test-seams-D6uEFbAw.d.ts} +7 -1
- package/dist/test-seams.d.ts +1 -1
- package/dist/test-seams.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-FODNMBHI.js.map +0 -1
|
@@ -389,6 +389,12 @@ interface TextPaint {
|
|
|
389
389
|
* mean-of-the-axes factor `resolveStrokeWidth` takes.
|
|
390
390
|
*/
|
|
391
391
|
declare function resolveTextStyle(style?: TextStyle, paint?: TextPaint, scale?: number): ResolvedTextStyle;
|
|
392
|
+
/**
|
|
393
|
+
* {@link resolveTextStyle}, written into `out` and returned. A field `out`
|
|
394
|
+
* holds that this resolution leaves out — `script`, `lang`, `stroke` — is set
|
|
395
|
+
* to `undefined`, so one object can take resolution after resolution.
|
|
396
|
+
*/
|
|
397
|
+
declare function resolveTextStyleInto(out: ResolvedTextStyle, style?: TextStyle, paint?: TextPaint, scale?: number): ResolvedTextStyle;
|
|
392
398
|
/** Build a CSS `font` shorthand suitable for `ctx.font`. */
|
|
393
399
|
declare function fontString(s: ResolvedTextStyle): string;
|
|
394
400
|
|
|
@@ -985,4 +991,4 @@ declare function paragraphDirection(text: string, direction?: TextDirection | 'a
|
|
|
985
991
|
/** Test helper. Do not call from product code. */
|
|
986
992
|
declare function _resetBidiWarningForTests(): void;
|
|
987
993
|
|
|
988
|
-
export {
|
|
994
|
+
export { scriptMetrics as $, dropRuns as A, type BidiAnalysis as B, type CacheUse as C, DEFAULT_TEXT_FILL as D, fontString as E, type FontVariantCaps as F, halfLeadingFor as G, isBoldWeight as H, isSmallCapsLetter as I, layoutRuns as J, markdownToRuns as K, type LaidOutRuns as L, MARKDOWN_RUN_GRAMMAR as M, numericWeight as N, paragraphDirection as O, type PlacedGlyph as P, registerBidi as Q, type ResolvedTextStyle as R, type StyledRun as S, type TextStyle as T, resolveAlign as U, resolveRunFace as V, resolveRuns as W, resolveTextStyle as X, resolveTextStyleInto as Y, runsToMarkdown as Z, runsToPlainText as _, type ResolvedRun as a, scriptMetricsFor as a0, smallCapsScale as a1, smallCapsScaleFor as a2, smallCapsText as a3, toRuns as a4, transformRunTexts as a5, _resetBidiWarningForTests as a6, _resetLayoutCacheForTests as a7, type LayoutRunsOpts as b, type TextShaper as c, type TextPaint as d, type BidiReordering as e, type BidiResolver as f, DEFAULT_TEXT_STYLE as g, LAYOUT_CACHE_STRUCTURAL_LIMIT as h, LAYOUT_CACHE_VARIANT_LIMIT as i, type LaidOutCell as j, type LaidOutLineBox as k, type RunFlag as l, type RunGrammar as m, type RunMarker as n, type RunSourceMap as o, SCRIPT_METRICS as p, SMALL_CAPS_SCALE as q, type ScriptPreset as r, type ShapedCluster as s, type ShapedGlyph as t, type SmallCapsText as u, type TextAlign as v, type TextDirection as w, type TextTransform as x, type TransformedRunText as y, cachedLayoutRuns as z };
|
package/dist/test-seams.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a6 as _resetBidiWarningForTests, a7 as _resetLayoutCacheForTests } from './test-seams-D6uEFbAw.js';
|
|
2
2
|
import '@weasel-js/paint';
|
|
3
3
|
import '@weasel-js/font';
|
package/dist/test-seams.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weasel-js/text",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "Typography for weasel: styled runs, style resolution, kerned glyph layout, wrap and measurement. No scene graph, no React.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@weasel-js/geom": "1.14.
|
|
24
|
-
"@weasel-js/paint": "1.14.
|
|
25
|
-
"@weasel-js/registry": "1.14.
|
|
23
|
+
"@weasel-js/geom": "1.14.2",
|
|
24
|
+
"@weasel-js/paint": "1.14.2",
|
|
25
|
+
"@weasel-js/registry": "1.14.2"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"test": "vitest run",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"provenance": true
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@weasel-js/bidi": "1.14.
|
|
54
|
+
"@weasel-js/bidi": "1.14.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@weasel-js/font": "1.14.
|
|
57
|
+
"@weasel-js/font": "1.14.2"
|
|
58
58
|
}
|
|
59
59
|
}
|