text-shaper 0.1.1 → 0.1.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/index.d.ts +8 -3
- package/dist/index.js +10 -10
- package/dist/index.js.map +13 -8
- package/dist/perf/benchmark-runner-eksh2b26.js +0 -0
- package/dist/perf/benchmark-runner.html +517 -0
- package/dist/perf/comparison-tests.js +22676 -0
- package/dist/perf/comparison-tests.js.map +111 -0
- package/dist/perf/cpu/cpu-perf.js +21920 -0
- package/dist/perf/cpu/cpu-perf.js.map +108 -0
- package/dist/perf/gpu/webgl-perf.js +470 -0
- package/dist/perf/gpu/webgl-perf.js.map +11 -0
- package/dist/perf/gpu/webgpu-perf.js +442 -0
- package/dist/perf/gpu/webgpu-perf.js.map +11 -0
- package/dist/perf/index.html +258 -0
- package/dist/perf/module-loader.js +18 -0
- package/dist/perf/utils/perf-utils.js +170 -0
- package/dist/perf/utils/perf-utils.js.map +10 -0
- package/dist/raster/asymmetric-stroke.d.ts +57 -0
- package/dist/raster/bitmap-utils.d.ts +57 -0
- package/dist/raster/cascade-blur.d.ts +45 -0
- package/dist/raster/msdf.d.ts +125 -0
- package/dist/raster/types.d.ts +15 -0
- package/dist/render/outline-transform.d.ts +169 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -63,16 +63,21 @@ export type { DeviceOrVariationIndex, DeviceTable, VariationIndexTable, } from "
|
|
|
63
63
|
export { applyDeviceAdjustment, getDeviceDelta, isVariationIndexTable, } from "./layout/structures/device.ts";
|
|
64
64
|
export type { Condition, ConditionSet, FeatureVariationRecord, FeatureVariations, } from "./layout/structures/feature-variations.ts";
|
|
65
65
|
export { applyFeatureVariations, evaluateConditionSet, findMatchingFeatureVariation, getSubstitutedLookups, } from "./layout/structures/feature-variations.ts";
|
|
66
|
+
export { type AsymmetricStrokeOptions, strokeAsymmetric, strokeAsymmetricCombined, strokeUniform, } from "./raster/asymmetric-stroke.ts";
|
|
67
|
+
export { atlasToAlpha, atlasToRGBA, buildAsciiAtlas, buildAtlas, buildStringAtlas, getGlyphUV, } from "./raster/atlas.ts";
|
|
66
68
|
export { getExactBounds } from "./raster/bbox.ts";
|
|
67
|
-
export { blendBitmap, convertBitmap, copyBitmap, emboldenBitmap, resizeBitmap, } from "./raster/bitmap-utils.ts";
|
|
69
|
+
export { addBitmaps, blendBitmap, compositeBitmaps, convertBitmap, copyBitmap, emboldenBitmap, expandToFit, fixOutline, maxBitmaps, mulBitmaps, padBitmap, resizeBitmap, shiftBitmap, subBitmaps, } from "./raster/bitmap-utils.ts";
|
|
68
70
|
export { blurBitmap, boxBlur, createGaussianKernel, gaussianBlur, } from "./raster/blur.ts";
|
|
71
|
+
export { adaptiveBlur, cascadeBlur, fastGaussianBlur, } from "./raster/cascade-blur.ts";
|
|
69
72
|
export { type ColorStop as GradientColorStop, createGradientBitmap, type Gradient, interpolateGradient, type LinearGradient, type RadialGradient, rasterizePathWithGradient, } from "./raster/gradient.ts";
|
|
73
|
+
export { assignEdgeColors, buildMsdfAsciiAtlas, buildMsdfAtlas, buildMsdfStringAtlas, type MsdfEdge, type MsdfOptions, median, msdfAtlasToRGB, msdfAtlasToRGBA, type Point as MsdfPoint, renderMsdf, type SignedDistanceResult, signedDistanceToCubic, signedDistanceToLine, signedDistanceToQuadratic, } from "./raster/msdf.ts";
|
|
70
74
|
export { bitmapToGray, bitmapToRGBA, rasterizeGlyph, rasterizePath, rasterizeText, } from "./raster/rasterize.ts";
|
|
71
75
|
export { renderSdf, type SdfOptions } from "./raster/sdf.ts";
|
|
72
76
|
export { type LineCap, type LineJoin, type StrokerOptions, strokePath, } from "./raster/stroker.ts";
|
|
73
|
-
export { condensePath, emboldenPath, obliquePath
|
|
74
|
-
export type { Bitmap, RasterizedGlyph, RasterizeOptions, Span, } from "./raster/types.ts";
|
|
77
|
+
export { condensePath, emboldenPath, obliquePath } from "./raster/synth.ts";
|
|
78
|
+
export type { Bitmap, GlyphAtlas, GlyphMetrics, MsdfAtlasOptions, RasterizedGlyph, RasterizeOptions, Span, } from "./raster/types.ts";
|
|
75
79
|
export { clearBitmap, createBitmap, FillRule, PixelMode, } from "./raster/types.ts";
|
|
80
|
+
export { type BoundingBox, type ControlBox, clonePath, combinePaths, computeControlBox, computeTightBounds, identity2D, identity3x3, italicizeOutline, type Matrix2D, type Matrix3x3, multiply2D, multiply3x3, perspectiveMatrix, rotate2D, rotateOutline, rotateOutline90, scale2D, scaleOutline, scaleOutlinePow2, shear2D, transformOutline2D, transformOutline3D, transformPoint2D, transformPoint3x3, translate2D, translateOutline, updateMinTransformedX, } from "./render/outline-transform.ts";
|
|
76
81
|
export type { GlyphPath, PathCommand, ShapedGlyph } from "./render/path.ts";
|
|
77
82
|
export { contourToPath, createPath2D, getGlyphPath, getGlyphPathWithVariation, getTextWidth, glyphBufferToShapedGlyphs, glyphToSVG, pathToCanvas, pathToSVG, renderShapedText, renderShapedTextWithVariation, shapedTextToSVG, shapedTextToSVGWithVariation, } from "./render/path.ts";
|
|
78
83
|
export { applyFallbackKerning, applyFallbackMarkPositioning, } from "./shaper/fallback.ts";
|