@weasel-js/text 1.15.1 → 1.15.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isSolidPaint, resolveFill, resolveScreenLength, fillHasInk, strokeHasInk, paintKey, strokeKey } from '@weasel-js/paint';
|
|
2
2
|
import { cssFamilyName, cachedFontVariant, syntheticBoldGrowth, glyphOutline, faceMetricsOf, glyphGeneration, faceGeneration, metricsOf, warnNoMetrics, resolveColorCluster, glyphIn, resolveGlyph, outlineMetrics } from '@weasel-js/font';
|
|
3
3
|
import { mergeRegion, growRegion, pathToD, pathFromD } from '@weasel-js/geom';
|
|
4
|
+
import { sameList } from '@weasel-js/registry';
|
|
4
5
|
|
|
5
6
|
var __defProp = Object.defineProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
@@ -2286,18 +2287,11 @@ function runsHash(runs) {
|
|
|
2286
2287
|
}
|
|
2287
2288
|
return h & 1073741823;
|
|
2288
2289
|
}
|
|
2290
|
+
var NO_STRS = [];
|
|
2289
2291
|
function sameNums(a, b) {
|
|
2290
|
-
|
|
2291
|
-
if (a === void 0 || b === void 0 || a.length !== b.length) return false;
|
|
2292
|
-
for (let i = 0; i < a.length; i++) if (!same(a[i], b[i])) return false;
|
|
2293
|
-
return true;
|
|
2294
|
-
}
|
|
2295
|
-
function sameStrs(a, b) {
|
|
2296
|
-
if (a === b) return true;
|
|
2297
|
-
if ((a?.length ?? 0) !== (b?.length ?? 0)) return false;
|
|
2298
|
-
for (let i = 0; i < (a?.length ?? 0); i++) if (a[i] !== b[i]) return false;
|
|
2299
|
-
return true;
|
|
2292
|
+
return a === b || a !== void 0 && b !== void 0 && sameList(a, b, same);
|
|
2300
2293
|
}
|
|
2294
|
+
var sameStrs = (a, b) => sameList(a ?? NO_STRS, b ?? NO_STRS);
|
|
2301
2295
|
function sameRuns(a, b) {
|
|
2302
2296
|
if (a.length !== b.length) return false;
|
|
2303
2297
|
for (let i = 0; i < a.length; i++) {
|
|
@@ -2420,5 +2414,5 @@ function _resetLayoutCacheForTests() {
|
|
|
2420
2414
|
}
|
|
2421
2415
|
|
|
2422
2416
|
export { BREAK_ALLOWED, BREAK_MANDATORY, DECORATION_KINDS, DEFAULT_DECORATION_METRICS, DEFAULT_TAB_SIZE, DEFAULT_TEXT_FILL, DEFAULT_TEXT_STYLE, LAYOUT_CACHE_STRUCTURAL_LIMIT, LAYOUT_CACHE_VARIANT_LIMIT, NO_BREAK, QUAD_STRIDE, _resetBidiWarningForTests, _resetLayoutCacheForTests, cachedLayoutRuns, cachedPaintRuns, clearRuns, decorationMetrics, decorationRule, dropRuns, emboldenGlyph, emboldenGlyphD, faceOutlineD, fontString, graphemeCount, hangs, hasGlyphQuad, isHardLineBreak, layoutRuns, lineBreakOpportunities, lineDecorations, paintRuns, paragraphDirection, registerBidi, registerShaper, registeredBidi, resolveAlign, resolveTextStyle, resolveTextStyleInto, runFaces, shapesWithFeature, syntheticBoldOffset, tabAdvance, warnRtlWithoutEngine, widthWithTabs, wrapLines };
|
|
2423
|
-
//# sourceMappingURL=chunk-
|
|
2424
|
-
//# sourceMappingURL=chunk-
|
|
2417
|
+
//# sourceMappingURL=chunk-VBLWNCSV.js.map
|
|
2418
|
+
//# sourceMappingURL=chunk-VBLWNCSV.js.map
|