tegaki 0.18.0 → 0.19.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/CHANGELOG.md +13 -0
- package/FONTS-LICENSE.md +6 -0
- package/README.md +1 -0
- package/dist/core/index.d.mts +3 -3
- package/dist/core/index.mjs +1 -1
- package/dist/{core-MwnsJAbN.mjs → core-B87FE4Wo.mjs} +3 -3
- package/dist/{core-MwnsJAbN.mjs.map → core-B87FE4Wo.mjs.map} +1 -1
- package/dist/fonts/amiri/bundle.mjs.map +1 -1
- package/dist/fonts/caveat/bundle.mjs.map +1 -1
- package/dist/fonts/italianno/bundle.mjs.map +1 -1
- package/dist/fonts/klee-one/bundle.mjs.map +1 -1
- package/dist/fonts/nanum-pen-script/bundle.d.mts +7144 -0
- package/dist/fonts/nanum-pen-script/bundle.mjs +161041 -0
- package/dist/fonts/nanum-pen-script/bundle.mjs.map +1 -0
- package/dist/fonts/nanum-pen-script/nanum-pen-script-38efadb5.ttf +0 -0
- package/dist/fonts/nanum-pen-script/nanum-pen-script.ttf +0 -0
- package/dist/fonts/parisienne/bundle.mjs.map +1 -1
- package/dist/fonts/suez-one/bundle.mjs.map +1 -1
- package/dist/fonts/tangerine/bundle.mjs.map +1 -1
- package/dist/fonts/tillana/bundle.mjs.map +1 -1
- package/dist/{index-B2rqZbJt.d.mts → index-Bbbx_Ck-.d.mts} +4 -5
- package/dist/{index-BVYJFRMq.d.mts → index-H08fD9_Z.d.mts} +2 -2
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.mjs +2 -2
- package/dist/{react-174En_ya.mjs → react-cKaviQiL.mjs} +3 -2
- package/dist/{react-174En_ya.mjs.map → react-cKaviQiL.mjs.map} +1 -1
- package/dist/shaper-harfbuzz/index.d.mts +1 -1
- package/dist/shaper-harfbuzz/index.mjs +1 -1
- package/dist/shaper-harfbuzz/index.mjs.map +1 -1
- package/dist/{shaper-registry-CrfNiB1j.d.mts → shaper-registry-DmlJGnE3.d.mts} +1 -1
- package/dist/wc/index.d.mts +3 -3
- package/dist/wc/index.mjs +1 -1
- package/dist/wc/index.mjs.map +1 -1
- package/fonts/nanum-pen-script/bundle.ts +20 -0
- package/fonts/nanum-pen-script/glyphData.json +1 -0
- package/fonts/nanum-pen-script/nanum-pen-script-38efadb5.ttf +0 -0
- package/fonts/nanum-pen-script/nanum-pen-script.ttf +0 -0
- package/package.json +24 -16
- package/dist/solid/index.d.mts +0 -20
- package/dist/solid/index.mjs +0 -91
- package/dist/solid/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# tegaki
|
|
2
2
|
|
|
3
|
+
## 0.19.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 68ee58f: Support Korean (Hangul) writing system and add Nanum Pen Script as a built-in font. The bundle ships ~650 most-frequent precomposed Hangul syllables (KS X 1001 common band ∪ top-N Korean-Wikipedia-frequency, capped by the Google Fonts subsetting ceiling) plus the 40 modern compatibility jamo (19 consonants ㄱ–ㅎ + 21 vowels ㅏ–ㅣ) and the Latin baseline. Hangul is precomposed in Unicode, so no shaper is required.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 29e111e: Fix Next.js App Router / Turbopack compatibility. Two build/packaging issues prevented `tegaki` from being used in a Next.js (App Router) app:
|
|
12
|
+
|
|
13
|
+
- The bundler dropped the `'use client'` directive from the React adapter's output chunk, so importing `TegakiRenderer` into a Server Component failed with "You're importing a module that depends on `useState` into a React Server Component". The directive is now preserved in the built output.
|
|
14
|
+
- The font subpath exports (`tegaki/fonts/*`) resolved the `node` condition to the raw TypeScript source, which uses `import ... with { type: 'url' }` import attributes that Turbopack/webpack can't process. The `node` condition now points to the pre-built `.mjs` bundle (which loads the font via `new URL('./font.ttf', import.meta.url)`), so it works in any Node-based bundler.
|
|
15
|
+
|
|
3
16
|
## 0.18.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/FONTS-LICENSE.md
CHANGED
|
@@ -51,6 +51,12 @@ All fonts are licensed under the [SIL Open Font License, Version 1.1](https://op
|
|
|
51
51
|
- **Copyright**: Copyright (c) 2014, Indian Type Foundry (info@indiantypefoundry.com)
|
|
52
52
|
- **License**: SIL Open Font License, Version 1.1
|
|
53
53
|
|
|
54
|
+
## Nanum Pen Script
|
|
55
|
+
|
|
56
|
+
- **Designer**: Sandoll Communications Inc. for NHN Corporation
|
|
57
|
+
- **Copyright**: Copyright © 2010 NHN Corporation. All rights reserved. Font designed by Sandoll Communications Inc.
|
|
58
|
+
- **License**: SIL Open Font License, Version 1.1
|
|
59
|
+
|
|
54
60
|
---
|
|
55
61
|
|
|
56
62
|
## SIL Open Font License, Version 1.1
|
package/README.md
CHANGED
|
@@ -75,6 +75,7 @@ Several handwriting fonts are bundled and ready to use:
|
|
|
75
75
|
- **Amiri** — `tegaki/fonts/amiri` _(Arabic + Latin)_
|
|
76
76
|
- **Tillana** — `tegaki/fonts/tillana` _(Devanagari + Latin)_
|
|
77
77
|
- **Klee One** — `tegaki/fonts/klee-one` _(Japanese: kana + Kyōiku grade 1–2 kanji + Latin)_
|
|
78
|
+
- **Nanum Pen Script** — `tegaki/fonts/nanum-pen-script` _(Korean: Hangul syllables + jamo + Latin)_
|
|
78
79
|
|
|
79
80
|
For other fonts, use the [interactive generator](https://gkurt.com/tegaki/generator/) to create a custom bundle.
|
|
80
81
|
|
package/dist/core/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { S as TimedPoint, _ as TegakiEffectName, a as BBox, b as TegakiMultiEffectName, c as CSSLength, d as LineCap, f as PathCommand, g as TegakiEffectConfigs, h as TegakiBundle, i as ShapedGlyph, l as FontOutput, m as Stroke, o as BUNDLE_VERSION, p as Point, r as BundleShaper, s as COMPATIBLE_BUNDLE_VERSIONS, t as ShaperFactory, u as GlyphData, v as TegakiEffects, x as TegakiSingletonEffectName, y as TegakiGlyphData } from "../shaper-registry-
|
|
2
|
-
import { A as TimelineEntry, C as resolveEffects, D as computeTextLayout, E as computeLayoutBbox, M as computeTimeline, O as Timeline, S as hasRenderHooks, T as TextLayout, _ as RenderStageContext, a as CreateElementFn, b as findEffects, c as TimeControlMode, d as getBundle, f as registerBundle, g as EffectDefinition, h as drawGlyph, i as TegakiEngine, j as TimelineStaggerConfig, k as TimelineConfig, l as TimeControlProp, m as ensureFontFace, n as buildRootProps, o as TegakiEngineOptions, p as resolveBundle, r as domCreateElement, s as TegakiQuality, t as buildChildren, u as createBundle, v as ResolvedEffect, w as LayoutBBox, x as getEffectDefinition, y as findEffect } from "../index-
|
|
3
|
-
export { BBox, BUNDLE_VERSION, BundleShaper, COMPATIBLE_BUNDLE_VERSIONS, CSSLength, CreateElementFn, EffectDefinition, FontOutput, GlyphData, LayoutBBox, LineCap, PathCommand, Point, RenderStageContext, ResolvedEffect, ShapedGlyph, ShaperFactory, Stroke, TegakiBundle, TegakiEffectConfigs, TegakiEffectName, TegakiEffects, TegakiEngine, TegakiEngineOptions, TegakiGlyphData, TegakiMultiEffectName, TegakiQuality, TegakiSingletonEffectName, TextLayout, TimeControlMode, TimeControlProp, TimedPoint, Timeline, TimelineConfig, TimelineEntry, TimelineStaggerConfig, buildChildren, buildRootProps, computeLayoutBbox, computeTextLayout, computeTimeline, createBundle, domCreateElement, drawGlyph, ensureFontFace, findEffect, findEffects, getBundle, getEffectDefinition, hasRenderHooks, registerBundle, resolveBundle, resolveEffects };
|
|
1
|
+
import { S as TimedPoint, _ as TegakiEffectName, a as BBox, b as TegakiMultiEffectName, c as CSSLength, d as LineCap, f as PathCommand, g as TegakiEffectConfigs, h as TegakiBundle, i as ShapedGlyph, l as FontOutput, m as Stroke, o as BUNDLE_VERSION, p as Point, r as BundleShaper, s as COMPATIBLE_BUNDLE_VERSIONS, t as ShaperFactory, u as GlyphData, v as TegakiEffects, x as TegakiSingletonEffectName, y as TegakiGlyphData } from "../shaper-registry-DmlJGnE3.mjs";
|
|
2
|
+
import { A as TimelineEntry, C as resolveEffects, D as computeTextLayout, E as computeLayoutBbox, M as computeTimeline, O as Timeline, S as hasRenderHooks, T as TextLayout, _ as RenderStageContext, a as CreateElementFn, b as findEffects, c as TimeControlMode, d as getBundle, f as registerBundle, g as EffectDefinition, h as drawGlyph, i as TegakiEngine, j as TimelineStaggerConfig, k as TimelineConfig, l as TimeControlProp, m as ensureFontFace, n as buildRootProps, o as TegakiEngineOptions, p as resolveBundle, r as domCreateElement, s as TegakiQuality, t as buildChildren, u as createBundle, v as ResolvedEffect, w as LayoutBBox, x as getEffectDefinition, y as findEffect } from "../index-H08fD9_Z.mjs";
|
|
3
|
+
export { type BBox, BUNDLE_VERSION, type BundleShaper, COMPATIBLE_BUNDLE_VERSIONS, type CSSLength, type CreateElementFn, type EffectDefinition, type FontOutput, type GlyphData, type LayoutBBox, type LineCap, type PathCommand, type Point, type RenderStageContext, type ResolvedEffect, type ShapedGlyph, type ShaperFactory, type Stroke, type TegakiBundle, type TegakiEffectConfigs, type TegakiEffectName, type TegakiEffects, TegakiEngine, type TegakiEngineOptions, type TegakiGlyphData, type TegakiMultiEffectName, type TegakiQuality, type TegakiSingletonEffectName, type TextLayout, type TimeControlMode, type TimeControlProp, type TimedPoint, type Timeline, type TimelineConfig, type TimelineEntry, type TimelineStaggerConfig, buildChildren, buildRootProps, computeLayoutBbox, computeTextLayout, computeTimeline, createBundle, domCreateElement, drawGlyph, ensureFontFace, findEffect, findEffects, getBundle, getEffectDefinition, hasRenderHooks, registerBundle, resolveBundle, resolveEffects };
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as findEffect, a as createBundle, b as hasRenderHooks, c as resolveBundle, d as computeTimeline, f as computeLayoutBbox, h as drawGlyph, i as domCreateElement, l as BUNDLE_VERSION, m as ensureFontFace, n as buildChildren, o as getBundle, p as computeTextLayout, r as buildRootProps, s as registerBundle, t as TegakiEngine, u as COMPATIBLE_BUNDLE_VERSIONS, v as findEffects, x as resolveEffects, y as getEffectDefinition } from "../core-
|
|
1
|
+
import { _ as findEffect, a as createBundle, b as hasRenderHooks, c as resolveBundle, d as computeTimeline, f as computeLayoutBbox, h as drawGlyph, i as domCreateElement, l as BUNDLE_VERSION, m as ensureFontFace, n as buildChildren, o as getBundle, p as computeTextLayout, r as buildRootProps, s as registerBundle, t as TegakiEngine, u as COMPATIBLE_BUNDLE_VERSIONS, v as findEffects, x as resolveEffects, y as getEffectDefinition } from "../core-B87FE4Wo.mjs";
|
|
2
2
|
export { BUNDLE_VERSION, COMPATIBLE_BUNDLE_VERSIONS, TegakiEngine, buildChildren, buildRootProps, computeLayoutBbox, computeTextLayout, computeTimeline, createBundle, domCreateElement, drawGlyph, ensureFontFace, findEffect, findEffects, getBundle, getEffectDefinition, hasRenderHooks, registerBundle, resolveBundle, resolveEffects };
|
|
@@ -565,7 +565,7 @@ function drawGlyph(ctx, glyph, pos, localTime, lineCap, color, effects = [], see
|
|
|
565
565
|
* explicit enables. (Explicit *disables* are fine — `-fina` suppressing the
|
|
566
566
|
* automatic fina is exactly the user's intent.)
|
|
567
567
|
*/
|
|
568
|
-
const SHAPER_MANAGED_FEATURES = new Set([
|
|
568
|
+
const SHAPER_MANAGED_FEATURES = /* @__PURE__ */ new Set([
|
|
569
569
|
"init",
|
|
570
570
|
"medi",
|
|
571
571
|
"fina",
|
|
@@ -1296,7 +1296,7 @@ const BUNDLE_VERSION = 0;
|
|
|
1296
1296
|
* console warning (once per bundle) when it encounters a version outside
|
|
1297
1297
|
* this set.
|
|
1298
1298
|
*/
|
|
1299
|
-
const COMPATIBLE_BUNDLE_VERSIONS = new Set([0]);
|
|
1299
|
+
const COMPATIBLE_BUNDLE_VERSIONS = /* @__PURE__ */ new Set([0]);
|
|
1300
1300
|
//#endregion
|
|
1301
1301
|
//#region src/core/bundle-registry.ts
|
|
1302
1302
|
const bundles = /* @__PURE__ */ new Map();
|
|
@@ -2297,4 +2297,4 @@ var TegakiEngine = class {
|
|
|
2297
2297
|
//#endregion
|
|
2298
2298
|
export { findEffect as _, createBundle as a, hasRenderHooks as b, resolveBundle as c, computeTimeline as d, computeLayoutBbox as f, coerceToString as g, drawGlyph as h, domCreateElement as i, BUNDLE_VERSION as l, ensureFontFace as m, buildChildren as n, getBundle as o, computeTextLayout as p, buildRootProps as r, registerBundle as s, TegakiEngine as t, COMPATIBLE_BUNDLE_VERSIONS as u, findEffects as v, resolveEffects as x, getEffectDefinition as y };
|
|
2299
2299
|
|
|
2300
|
-
//# sourceMappingURL=core-
|
|
2300
|
+
//# sourceMappingURL=core-B87FE4Wo.mjs.map
|