@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.
Files changed (48) hide show
  1. package/README.md +38 -1
  2. package/dist/cli.cjs +2403 -550
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +2408 -555
  5. package/dist/cli.js.map +1 -1
  6. package/dist/export.cjs +2252 -537
  7. package/dist/export.cjs.map +1 -1
  8. package/dist/export.d.cts +3 -1
  9. package/dist/export.d.ts +3 -1
  10. package/dist/export.js +2257 -542
  11. package/dist/export.js.map +1 -1
  12. package/dist/index.cjs +2387 -495
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +11 -154
  15. package/dist/index.d.ts +11 -154
  16. package/dist/index.js +2387 -496
  17. package/dist/index.js.map +1 -1
  18. package/dist/ink-B_7OXxtb.d.cts +360 -0
  19. package/dist/ink-B_7OXxtb.d.ts +360 -0
  20. package/dist/player.global.js +2 -2
  21. package/package.json +1 -1
  22. package/src/cli.ts +9 -0
  23. package/src/export/index.ts +4 -1
  24. package/src/field-messages.ts +8 -0
  25. package/src/figure-text.ts +28 -0
  26. package/src/index.ts +3 -0
  27. package/src/layout/architecture.ts +123 -44
  28. package/src/layout/git.ts +728 -0
  29. package/src/layout/measure.ts +10 -0
  30. package/src/layout/scene.ts +300 -19
  31. package/src/layout/sequence.ts +29 -11
  32. package/src/layout/state.ts +82 -62
  33. package/src/look/values.ts +57 -4
  34. package/src/messages.ts +47 -4
  35. package/src/parser.ts +142 -7
  36. package/src/player.ts +44 -0
  37. package/src/printer.ts +16 -4
  38. package/src/render/git.ts +161 -0
  39. package/src/render/ink.ts +104 -0
  40. package/src/render/parts.ts +103 -36
  41. package/src/render/svg.ts +63 -15
  42. package/src/schema.ts +47 -13
  43. package/src/schemas/diagram.schema.json +75 -8
  44. package/src/schemas/validate-diagram.js +1 -1
  45. package/src/timeline.ts +18 -3
  46. package/src/words.ts +19 -3
  47. package/dist/schema-B2MTRv66.d.cts +0 -133
  48. 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 './schema-B2MTRv66.cjs';
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 './schema-B2MTRv66.js';
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[];