@cardenelabs/dragon 0.37.0 → 0.40.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/README.md +38 -1
- package/dist/cli.cjs +2403 -550
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +2408 -555
- package/dist/cli.js.map +1 -1
- package/dist/export.cjs +2252 -537
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +3 -1
- package/dist/export.d.ts +3 -1
- package/dist/export.js +2257 -542
- package/dist/export.js.map +1 -1
- package/dist/index.cjs +2387 -495
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -154
- package/dist/index.d.ts +11 -154
- package/dist/index.js +2387 -496
- package/dist/index.js.map +1 -1
- package/dist/ink-B_7OXxtb.d.cts +360 -0
- package/dist/ink-B_7OXxtb.d.ts +360 -0
- package/dist/player.global.js +2 -2
- package/package.json +1 -1
- package/src/cli.ts +9 -0
- package/src/export/index.ts +4 -1
- package/src/field-messages.ts +8 -0
- package/src/figure-text.ts +28 -0
- package/src/index.ts +3 -0
- package/src/layout/architecture.ts +123 -44
- package/src/layout/git.ts +728 -0
- package/src/layout/measure.ts +10 -0
- package/src/layout/scene.ts +300 -19
- package/src/layout/sequence.ts +29 -11
- package/src/layout/state.ts +82 -62
- package/src/look/values.ts +57 -4
- package/src/messages.ts +47 -4
- package/src/parser.ts +142 -7
- package/src/player.ts +44 -0
- package/src/printer.ts +16 -4
- package/src/render/git.ts +161 -0
- package/src/render/ink.ts +104 -0
- package/src/render/parts.ts +103 -36
- package/src/render/svg.ts +63 -15
- package/src/schema.ts +47 -13
- package/src/schemas/diagram.schema.json +75 -8
- package/src/schemas/validate-diagram.js +1 -1
- package/src/timeline.ts +18 -3
- package/src/words.ts +19 -3
- package/dist/schema-B2MTRv66.d.cts +0 -133
- package/dist/schema-B2MTRv66.d.ts +0 -133
package/dist/export.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Theme, N as NotationLang, V as ViewMode } from './
|
|
1
|
+
import { T as Theme, N as NotationLang, V as ViewMode, O as Overlap } from './ink-B_7OXxtb.cjs';
|
|
2
2
|
|
|
3
3
|
type ExportFormat = "mp4" | "gif" | "html" | "png";
|
|
4
4
|
interface ExportOptions {
|
|
@@ -28,6 +28,8 @@ interface ExportResult {
|
|
|
28
28
|
/** 動画のコマの大きさ (CSS の px)。撮る画素はこの 2 倍 */
|
|
29
29
|
width: number;
|
|
30
30
|
height: number;
|
|
31
|
+
/** 段ごとの止め絵で同時に見えている字の重なり (#3178)。命令はこれを標準エラーに出す */
|
|
32
|
+
overlaps: Overlap[];
|
|
31
33
|
}
|
|
32
34
|
/** 書き出せる形。命令が `--format` の値を確かめる時にも使う */
|
|
33
35
|
declare const FORMATS: readonly ExportFormat[];
|
package/dist/export.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as Theme, N as NotationLang, V as ViewMode } from './
|
|
1
|
+
import { T as Theme, N as NotationLang, V as ViewMode, O as Overlap } from './ink-B_7OXxtb.js';
|
|
2
2
|
|
|
3
3
|
type ExportFormat = "mp4" | "gif" | "html" | "png";
|
|
4
4
|
interface ExportOptions {
|
|
@@ -28,6 +28,8 @@ interface ExportResult {
|
|
|
28
28
|
/** 動画のコマの大きさ (CSS の px)。撮る画素はこの 2 倍 */
|
|
29
29
|
width: number;
|
|
30
30
|
height: number;
|
|
31
|
+
/** 段ごとの止め絵で同時に見えている字の重なり (#3178)。命令はこれを標準エラーに出す */
|
|
32
|
+
overlaps: Overlap[];
|
|
31
33
|
}
|
|
32
34
|
/** 書き出せる形。命令が `--format` の値を確かめる時にも使う */
|
|
33
35
|
declare const FORMATS: readonly ExportFormat[];
|