@automovie/render 0.3.0 → 0.3.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.
Files changed (110) hide show
  1. package/lib/AutoMovieFrameGrid.d.ts +54 -0
  2. package/lib/AutoMovieFrameGrid.js +71 -0
  3. package/lib/AutoMovieFrameGrid.js.map +1 -0
  4. package/lib/AutoMovieFrameGrid.mjs +20 -0
  5. package/lib/AutoMovieFrameGrid.mjs.map +1 -0
  6. package/lib/caption/canonicalProductionWebVtt.d.ts +5 -3
  7. package/lib/caption/canonicalProductionWebVtt.js +19 -4
  8. package/lib/caption/canonicalProductionWebVtt.js.map +1 -1
  9. package/lib/caption/canonicalProductionWebVtt.mjs +15 -4
  10. package/lib/caption/canonicalProductionWebVtt.mjs.map +1 -1
  11. package/lib/draw/bindAutoMovieDrawSceneSoftProps.d.ts +15 -0
  12. package/lib/draw/bindAutoMovieDrawSceneSoftProps.js +41 -0
  13. package/lib/draw/bindAutoMovieDrawSceneSoftProps.js.map +1 -0
  14. package/lib/draw/bindAutoMovieDrawSceneSoftProps.mjs +36 -0
  15. package/lib/draw/bindAutoMovieDrawSceneSoftProps.mjs.map +1 -0
  16. package/lib/draw/index.d.ts +1 -0
  17. package/lib/draw/index.js +1 -0
  18. package/lib/draw/index.js.map +1 -1
  19. package/lib/draw/index.mjs +2 -1
  20. package/lib/index.d.ts +1 -0
  21. package/lib/index.js +1 -0
  22. package/lib/index.js.map +1 -1
  23. package/lib/index.mjs +12 -7
  24. package/lib/planSequenceRender.d.ts +5 -5
  25. package/lib/planSequenceRender.js +12 -6
  26. package/lib/planSequenceRender.js.map +1 -1
  27. package/lib/planSequenceRender.mjs +12 -8
  28. package/lib/planSequenceRender.mjs.map +1 -1
  29. package/lib/scene/IAutoMovieSceneObject.d.ts +4 -1
  30. package/lib/scene/IAutoMovieSceneSoftProps.d.ts +36 -0
  31. package/lib/scene/IAutoMovieSceneSoftProps.js +3 -0
  32. package/lib/scene/IAutoMovieSceneSoftProps.js.map +1 -0
  33. package/lib/scene/IAutoMovieSceneSoftProps.mjs +0 -0
  34. package/lib/scene/IChunkObject.d.ts +7 -3
  35. package/lib/scene/applyPracticalSurfaceMaterials.d.ts +31 -0
  36. package/lib/scene/applyPracticalSurfaceMaterials.js +87 -0
  37. package/lib/scene/applyPracticalSurfaceMaterials.js.map +1 -0
  38. package/lib/scene/applyPracticalSurfaceMaterials.mjs +47 -0
  39. package/lib/scene/applyPracticalSurfaceMaterials.mjs.map +1 -0
  40. package/lib/scene/buildInstancedFormation.d.ts +1 -1
  41. package/lib/scene/buildInstancedFormation.js +44 -19
  42. package/lib/scene/buildInstancedFormation.js.map +1 -1
  43. package/lib/scene/buildInstancedFormation.mjs +30 -13
  44. package/lib/scene/buildInstancedFormation.mjs.map +1 -1
  45. package/lib/scene/buildScene.d.ts +10 -7
  46. package/lib/scene/buildScene.js +21 -7
  47. package/lib/scene/buildScene.js.map +1 -1
  48. package/lib/scene/buildScene.mjs +27 -9
  49. package/lib/scene/buildScene.mjs.map +1 -1
  50. package/lib/scene/buildSceneSoftProps.d.ts +15 -0
  51. package/lib/scene/buildSceneSoftProps.js +71 -0
  52. package/lib/scene/buildSceneSoftProps.js.map +1 -0
  53. package/lib/scene/buildSceneSoftProps.mjs +67 -0
  54. package/lib/scene/buildSceneSoftProps.mjs.map +1 -0
  55. package/lib/scene/human-polygon/AutoMovieHumanPolygon.d.ts +52 -1
  56. package/lib/scene/human-polygon/buildHumanPolygon.d.ts +3 -1
  57. package/lib/scene/human-polygon/buildHumanPolygon.js +14 -2
  58. package/lib/scene/human-polygon/buildHumanPolygon.js.map +1 -1
  59. package/lib/scene/human-polygon/buildHumanPolygon.mjs +11 -2
  60. package/lib/scene/human-polygon/buildHumanPolygon.mjs.map +1 -1
  61. package/lib/scene/human-polygon/buildPolygonShotActor.d.ts +40 -0
  62. package/lib/scene/human-polygon/buildPolygonShotActor.js +69 -0
  63. package/lib/scene/human-polygon/buildPolygonShotActor.js.map +1 -0
  64. package/lib/scene/human-polygon/buildPolygonShotActor.mjs +74 -0
  65. package/lib/scene/human-polygon/buildPolygonShotActor.mjs.map +1 -0
  66. package/lib/scene/human-polygon/index.d.ts +1 -0
  67. package/lib/scene/human-polygon/index.js +3 -1
  68. package/lib/scene/human-polygon/index.js.map +1 -1
  69. package/lib/scene/human-polygon/index.mjs +2 -1
  70. package/lib/scene/human-polygon/prepareHumanPolygonPresentation.d.ts +17 -0
  71. package/lib/scene/human-polygon/prepareHumanPolygonPresentation.js +231 -0
  72. package/lib/scene/human-polygon/prepareHumanPolygonPresentation.js.map +1 -0
  73. package/lib/scene/human-polygon/prepareHumanPolygonPresentation.mjs +189 -0
  74. package/lib/scene/human-polygon/prepareHumanPolygonPresentation.mjs.map +1 -0
  75. package/lib/scene/index.d.ts +3 -0
  76. package/lib/scene/index.js +3 -0
  77. package/lib/scene/index.js.map +1 -1
  78. package/lib/scene/index.mjs +45 -42
  79. package/lib/scene/renderAutoMovieFilmFrame.d.ts +6 -4
  80. package/lib/scene/renderAutoMovieFilmFrame.js +12 -8
  81. package/lib/scene/renderAutoMovieFilmFrame.js.map +1 -1
  82. package/lib/scene/renderAutoMovieFilmFrame.mjs +12 -8
  83. package/lib/scene/renderAutoMovieFilmFrame.mjs.map +1 -1
  84. package/lib/scene/softPropCordSurface.d.ts +14 -0
  85. package/lib/scene/softPropCordSurface.js +128 -0
  86. package/lib/scene/softPropCordSurface.js.map +1 -0
  87. package/lib/scene/softPropCordSurface.mjs +88 -0
  88. package/lib/scene/softPropCordSurface.mjs.map +1 -0
  89. package/package.json +4 -4
  90. package/src/AutoMovieFrameGrid.ts +70 -0
  91. package/src/caption/canonicalProductionWebVtt.ts +20 -4
  92. package/src/draw/bindAutoMovieDrawSceneSoftProps.ts +43 -0
  93. package/src/draw/index.ts +1 -0
  94. package/src/index.ts +1 -0
  95. package/src/planSequenceRender.ts +21 -10
  96. package/src/scene/IAutoMovieSceneObject.ts +6 -1
  97. package/src/scene/IAutoMovieSceneSoftProps.ts +38 -0
  98. package/src/scene/IChunkObject.ts +10 -3
  99. package/src/scene/applyPracticalSurfaceMaterials.ts +79 -0
  100. package/src/scene/buildInstancedFormation.ts +86 -55
  101. package/src/scene/buildScene.ts +22 -6
  102. package/src/scene/buildSceneSoftProps.ts +83 -0
  103. package/src/scene/human-polygon/AutoMovieHumanPolygon.ts +61 -1
  104. package/src/scene/human-polygon/buildHumanPolygon.ts +22 -2
  105. package/src/scene/human-polygon/buildPolygonShotActor.ts +112 -0
  106. package/src/scene/human-polygon/index.ts +1 -0
  107. package/src/scene/human-polygon/prepareHumanPolygonPresentation.ts +328 -0
  108. package/src/scene/index.ts +3 -0
  109. package/src/scene/renderAutoMovieFilmFrame.ts +14 -9
  110. package/src/scene/softPropCordSurface.ts +132 -0
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Zero-based, regularly spaced presentation frames followed by the exact end.
3
+ * Takes and preview controls share the grid, including an endpoint that falls
4
+ * between regular frame times.
5
+ *
6
+ * @evidence contracts/development/common.md#meaningful-documentation States the index origin, temporal spacing, endpoint, and consumers.
7
+ * @evidence contracts/development/design.md#principled-representation Frame indices are zero-based integers, timestamps and duration are seconds, and cadence is positive frames per second. JavaScript numbers do not enforce these constraints, so the caller supplies a valid presentation clock and index.
8
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Render owns frame schedules. The take producer reads the last index and frame times, and the preview controls also map a playhead second to a displayed frame index.
9
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The endpoint rule works for both exact-grid and fractional durations and requires no caller-specific mode.
10
+ */
11
+ export declare namespace AutoMovieFrameGrid {
12
+ /**
13
+ * Find the final zero-based frame number for a nonnegative duration in
14
+ * seconds and a positive rate in frames per second. The exact end takes
15
+ * the place of the first regular frame at or past the end.
16
+ *
17
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the units, index origin, and the final frame's relation to the regular cadence.
18
+ * @evidence contracts/development/implementation.md#principled-implementation Compares the candidate's canonical timestamp to the end since the product alone can round across an integer.
19
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Computes one candidate, then advances it if its timestamp is still before the end.
20
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Keeps a fractional end distinct from the regular frame immediately before it without an arbitrary epsilon.
21
+ * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.
22
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Computes one candidate and its time.
23
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.
24
+ */
25
+ function last(duration: number, fps: number): number;
26
+ /**
27
+ * Read a zero-based frame's timestamp in seconds at the given rate in
28
+ * frames per second, clamped to the final timestamp, `duration`.
29
+ *
30
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the index origin, input and return units, and the end clamp.
31
+ * @evidence contracts/development/implementation.md#principled-implementation One division yields the canonical timestamp without accumulating rounding error.
32
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Divides the index by the rate and clamps the result.
33
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Returns the exact end when the next regular frame would run past it.
34
+ * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.
35
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Computes one timestamp.
36
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.
37
+ */
38
+ function time(frame: number, duration: number, fps: number): number;
39
+ /**
40
+ * Show the closest regular frame for an in-range second, reserving the
41
+ * final frame for the exact end. The caller supplies the duration in
42
+ * seconds, the rate in frames per second, and the already computed last
43
+ * frame number.
44
+ *
45
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the rounding policy, the exact end, and the units of the supplied clock.
46
+ * @evidence contracts/development/implementation.md#principled-implementation Rounds within the regular grid and reserves the end index for the actual end, so it remains a separate scrubber position.
47
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Returns the last index at the end and otherwise rounds and caps the regular index.
48
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A playhead just before the end cannot occupy the end index.
49
+ * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.
50
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the last frame number already computed for the grid.
51
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.
52
+ */
53
+ function nearest(seconds: number, duration: number, fps: number, last: number): number;
54
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutoMovieFrameGrid = void 0;
4
+ /**
5
+ * Zero-based, regularly spaced presentation frames followed by the exact end.
6
+ * Takes and preview controls share the grid, including an endpoint that falls
7
+ * between regular frame times.
8
+ *
9
+ * @evidence contracts/development/common.md#meaningful-documentation States the index origin, temporal spacing, endpoint, and consumers.
10
+ * @evidence contracts/development/design.md#principled-representation Frame indices are zero-based integers, timestamps and duration are seconds, and cadence is positive frames per second. JavaScript numbers do not enforce these constraints, so the caller supplies a valid presentation clock and index.
11
+ * @evidence contracts/development/design.md#minimal-and-owned-surface Render owns frame schedules. The take producer reads the last index and frame times, and the preview controls also map a playhead second to a displayed frame index.
12
+ * @evidence contracts/development/design.md#prohibited-design-shortcuts The endpoint rule works for both exact-grid and fractional durations and requires no caller-specific mode.
13
+ */
14
+ var AutoMovieFrameGrid;
15
+ (function (AutoMovieFrameGrid) {
16
+ /**
17
+ * Find the final zero-based frame number for a nonnegative duration in
18
+ * seconds and a positive rate in frames per second. The exact end takes
19
+ * the place of the first regular frame at or past the end.
20
+ *
21
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the units, index origin, and the final frame's relation to the regular cadence.
22
+ * @evidence contracts/development/implementation.md#principled-implementation Compares the candidate's canonical timestamp to the end since the product alone can round across an integer.
23
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Computes one candidate, then advances it if its timestamp is still before the end.
24
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Keeps a fractional end distinct from the regular frame immediately before it without an arbitrary epsilon.
25
+ * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.
26
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Computes one candidate and its time.
27
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.
28
+ */
29
+ function last(duration, fps) {
30
+ const nearest = Math.round(duration * fps);
31
+ return nearest / fps < duration ? nearest + 1 : nearest;
32
+ }
33
+ AutoMovieFrameGrid.last = last;
34
+ /**
35
+ * Read a zero-based frame's timestamp in seconds at the given rate in
36
+ * frames per second, clamped to the final timestamp, `duration`.
37
+ *
38
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the index origin, input and return units, and the end clamp.
39
+ * @evidence contracts/development/implementation.md#principled-implementation One division yields the canonical timestamp without accumulating rounding error.
40
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Divides the index by the rate and clamps the result.
41
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Returns the exact end when the next regular frame would run past it.
42
+ * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.
43
+ * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Computes one timestamp.
44
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.
45
+ */
46
+ function time(frame, duration, fps) {
47
+ return Math.min(frame / fps, duration);
48
+ }
49
+ AutoMovieFrameGrid.time = time;
50
+ /**
51
+ * Show the closest regular frame for an in-range second, reserving the
52
+ * final frame for the exact end. The caller supplies the duration in
53
+ * seconds, the rate in frames per second, and the already computed last
54
+ * frame number.
55
+ *
56
+ * @evidence contracts/development/common.md#meaningful-documentation Defines the rounding policy, the exact end, and the units of the supplied clock.
57
+ * @evidence contracts/development/implementation.md#principled-implementation Rounds within the regular grid and reserves the end index for the actual end, so it remains a separate scrubber position.
58
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Returns the last index at the end and otherwise rounds and caps the regular index.
59
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A playhead just before the end cannot occupy the end index.
60
+ * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.
61
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the last frame number already computed for the grid.
62
+ * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.
63
+ */
64
+ function nearest(seconds, duration, fps, last) {
65
+ return seconds >= duration
66
+ ? last
67
+ : Math.min(last - 1, Math.round(seconds * fps));
68
+ }
69
+ AutoMovieFrameGrid.nearest = nearest;
70
+ })(AutoMovieFrameGrid || (exports.AutoMovieFrameGrid = AutoMovieFrameGrid = {}));
71
+ //# sourceMappingURL=AutoMovieFrameGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieFrameGrid.js","sourceRoot":"","sources":["../src/AutoMovieFrameGrid.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;GASG;AACH,IAAiB,kBAAkB,CA2DlC;AA3DD,WAAiB,kBAAkB;IACjC;;;;;;;;;;;;OAYG;IACH,SAAgB,IAAI,CAAC,QAAgB,EAAE,GAAW;QAChD,MAAM,OAAO,GAAW,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,CAAC;QACnD,OAAO,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAC1D,CAAC;IAHe,mBAAA,IAAI,OAGnB,CAAA;IAED;;;;;;;;;;;OAWG;IACH,SAAgB,IAAI,CAAC,KAAa,EAAE,QAAgB,EAAE,GAAW;QAC/D,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,QAAQ,CAAC,CAAC;IACzC,CAAC;IAFe,mBAAA,IAAI,OAEnB,CAAA;IAED;;;;;;;;;;;;;OAaG;IACH,SAAgB,OAAO,CACrB,OAAe,EACf,QAAgB,EAChB,GAAW,EACX,IAAY;QAEZ,OAAO,OAAO,IAAI,QAAQ;YACxB,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC;IACpD,CAAC;IATe,mBAAA,OAAO,UAStB,CAAA;AACH,CAAC,EA3DgB,kBAAkB,aAAlB,kBAAkB,GAAlB,kBAAkB,QA2DlC"}
@@ -0,0 +1,20 @@
1
+ // src/AutoMovieFrameGrid.ts
2
+ let AutoMovieFrameGrid;
3
+ (function(_AutoMovieFrameGrid) {
4
+ function last(duration, fps) {
5
+ const nearest = Math.round(duration * fps);
6
+ return nearest / fps < duration ? nearest + 1 : nearest;
7
+ }
8
+ _AutoMovieFrameGrid.last = last;
9
+ function time(frame, duration, fps) {
10
+ return Math.min(frame / fps, duration);
11
+ }
12
+ _AutoMovieFrameGrid.time = time;
13
+ function nearest(seconds, duration, fps, last) {
14
+ return seconds >= duration ? last : Math.min(last - 1, Math.round(seconds * fps));
15
+ }
16
+ _AutoMovieFrameGrid.nearest = nearest;
17
+ })(AutoMovieFrameGrid || (AutoMovieFrameGrid = {}));
18
+ export { AutoMovieFrameGrid };
19
+
20
+ //# sourceMappingURL=AutoMovieFrameGrid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoMovieFrameGrid.mjs","names":[],"sources":["../src/AutoMovieFrameGrid.ts"],"sourcesContent":["/**\n * Zero-based, regularly spaced presentation frames followed by the exact end.\n * Takes and preview controls share the grid, including an endpoint that falls\n * between regular frame times.\n *\n * @evidence contracts/development/common.md#meaningful-documentation States the index origin, temporal spacing, endpoint, and consumers.\n * @evidence contracts/development/design.md#principled-representation Frame indices are zero-based integers, timestamps and duration are seconds, and cadence is positive frames per second. JavaScript numbers do not enforce these constraints, so the caller supplies a valid presentation clock and index.\n * @evidence contracts/development/design.md#minimal-and-owned-surface Render owns frame schedules. The take producer reads the last index and frame times, and the preview controls also map a playhead second to a displayed frame index.\n * @evidence contracts/development/design.md#prohibited-design-shortcuts The endpoint rule works for both exact-grid and fractional durations and requires no caller-specific mode.\n */\nexport namespace AutoMovieFrameGrid {\n /**\n * Find the final zero-based frame number for a nonnegative duration in\n * seconds and a positive rate in frames per second. The exact end takes\n * the place of the first regular frame at or past the end.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Defines the units, index origin, and the final frame's relation to the regular cadence.\n * @evidence contracts/development/implementation.md#principled-implementation Compares the candidate's canonical timestamp to the end since the product alone can round across an integer.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Computes one candidate, then advances it if its timestamp is still before the end.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Keeps a fractional end distinct from the regular frame immediately before it without an arbitrary epsilon.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Computes one candidate and its time.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.\n */\n export function last(duration: number, fps: number): number {\n const nearest: number = Math.round(duration * fps);\n return nearest / fps < duration ? nearest + 1 : nearest;\n }\n\n /**\n * Read a zero-based frame's timestamp in seconds at the given rate in\n * frames per second, clamped to the final timestamp, `duration`.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Defines the index origin, input and return units, and the end clamp.\n * @evidence contracts/development/implementation.md#principled-implementation One division yields the canonical timestamp without accumulating rounding error.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Divides the index by the rate and clamps the result.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Returns the exact end when the next regular frame would run past it.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Computes one timestamp.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.\n */\n export function time(frame: number, duration: number, fps: number): number {\n return Math.min(frame / fps, duration);\n }\n\n /**\n * Show the closest regular frame for an in-range second, reserving the\n * final frame for the exact end. The caller supplies the duration in\n * seconds, the rate in frames per second, and the already computed last\n * frame number.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Defines the rounding policy, the exact end, and the units of the supplied clock.\n * @evidence contracts/development/implementation.md#principled-implementation Rounds within the regular grid and reserves the end index for the actual end, so it remains a separate scrubber position.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Returns the last index at the end and otherwise rounds and caps the regular index.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A playhead just before the end cannot occupy the end index.\n * @evidence contracts/development/implementation.md#efficient-algorithms Constant time and space.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the last frame number already computed for the grid.\n * @evidenceExclude contracts/development/implementation.md#bound-retention-and-release-resources Retains no state.\n */\n export function nearest(\n seconds: number,\n duration: number,\n fps: number,\n last: number,\n ): number {\n return seconds >= duration\n ? last\n : Math.min(last - 1, Math.round(seconds * fps));\n }\n}\n"],"mappings":";AAUO,IAAU;CAAV,SAAA,qBAAA;CAcE,SAAS,KAAK,UAAkB,KAAqB;EAC1D,MAAM,UAAkB,KAAK,MAAM,WAAW,GAAG;EACjD,OAAO,UAAU,MAAM,WAAW,UAAU,IAAI;CAClD;;CAcO,SAAS,KAAK,OAAe,UAAkB,KAAqB;EACzE,OAAO,KAAK,IAAI,QAAQ,KAAK,QAAQ;CACvC;;CAgBO,SAAS,QACd,SACA,UACA,KACA,MACQ;EACR,OAAO,WAAW,WACd,OACA,KAAK,IAAI,OAAO,GAAG,KAAK,MAAM,UAAU,GAAG,CAAC;CAClD;;AACD,EAAA,CAAA,uBAAA,qBAAA,CAAA,EAAD"}
@@ -6,16 +6,18 @@ import type { IAutoMovieFilmTimeline } from "@automovie/interface";
6
6
  * The header carries the timeline id. Cues are ordered by start frame, then end
7
7
  * frame, then id in code-unit order, and each cue's frame interval maps to
8
8
  * whole milliseconds with nearest rounding on the exact production frame rate.
9
+ * An authored top or bottom placement selects the first or last snapped line
10
+ * of a horizontal cue. Omitted placement uses WebVTT automatic line placement.
9
11
  * The payload sits in a `<lang>` span, inside a `<v>` voice span when the cue
10
12
  * names a speaker, and every block ends with a blank line. Throws when an id is
11
13
  * not a WebVTT identifier, a language is not a well-formed RFC 5646 tag, the
12
14
  * timeline's `fps` disagrees with its exact frame rate, or a cue interval is
13
- * empty or collapses on the millisecond clock.
15
+ * empty or collapses on the millisecond clock, or a placement is unsupported.
14
16
  *
15
- * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting.
17
+ * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting. WebVTT counts nonnegative snapped lines from the top and negative snapped lines from the bottom for horizontal cues.
16
18
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only orders cues and assembles lines; identifier refusal, text escaping, language validation, frame-to-tick mapping and timestamp spelling each live in the helper that owns them, so the delivery validator compares against the same bytes the writer emits.
17
19
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The only fixed values are WebVTT syntax and the 1000-tick millisecond clock WebVTT timestamps require; nothing is special-cased per cue, and a malformed cue throws instead of being skipped.
18
- * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the span nesting, and every refusal.
20
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the placement mapping, the span nesting, and every refusal.
19
21
  * @evidence contracts/development/implementation.md#efficient-algorithms For C cues of text length L the cost is an O(C log C) sort of a copied array plus O(L) escaping per cue; the copy keeps the caller's timeline unmodified, and the sort is needed because the order is part of the canonical bytes.
20
22
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call serializes one timeline into a fresh string and coordinates no phases or consumers whose work it could share.
21
23
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the sorted copy and the line array are held, both released on return; the output string, owned by the caller, grows linearly with cue count and text length.
@@ -14,16 +14,18 @@ const webVttTime_js_1 = require("./webVttTime.js");
14
14
  * The header carries the timeline id. Cues are ordered by start frame, then end
15
15
  * frame, then id in code-unit order, and each cue's frame interval maps to
16
16
  * whole milliseconds with nearest rounding on the exact production frame rate.
17
+ * An authored top or bottom placement selects the first or last snapped line
18
+ * of a horizontal cue. Omitted placement uses WebVTT automatic line placement.
17
19
  * The payload sits in a `<lang>` span, inside a `<v>` voice span when the cue
18
20
  * names a speaker, and every block ends with a blank line. Throws when an id is
19
21
  * not a WebVTT identifier, a language is not a well-formed RFC 5646 tag, the
20
22
  * timeline's `fps` disagrees with its exact frame rate, or a cue interval is
21
- * empty or collapses on the millisecond clock.
23
+ * empty or collapses on the millisecond clock, or a placement is unsupported.
22
24
  *
23
- * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting.
25
+ * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting. WebVTT counts nonnegative snapped lines from the top and negative snapped lines from the bottom for horizontal cues.
24
26
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only orders cues and assembles lines; identifier refusal, text escaping, language validation, frame-to-tick mapping and timestamp spelling each live in the helper that owns them, so the delivery validator compares against the same bytes the writer emits.
25
27
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The only fixed values are WebVTT syntax and the 1000-tick millisecond clock WebVTT timestamps require; nothing is special-cased per cue, and a malformed cue throws instead of being skipped.
26
- * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the span nesting, and every refusal.
28
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the placement mapping, the span nesting, and every refusal.
27
29
  * @evidence contracts/development/implementation.md#efficient-algorithms For C cues of text length L the cost is an O(C log C) sort of a copied array plus O(L) escaping per cue; the copy keeps the caller's timeline unmodified, and the sort is needed because the order is part of the canonical bytes.
28
30
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call serializes one timeline into a fresh string and coordinates no phases or consumers whose work it could share.
29
31
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the sorted copy and the line array are held, both released on return; the output string, owned by the caller, grows linearly with cue count and text length.
@@ -47,7 +49,7 @@ const canonicalProductionWebVtt = (timeline) => {
47
49
  const payload = (0, serializeAutoMovieWebVttCueText_js_1.serializeAutoMovieWebVttCueText)(cue.text);
48
50
  return [
49
51
  (0, serializeAutoMovieWebVttIdentifier_js_1.serializeAutoMovieWebVttIdentifier)(cue.id),
50
- `${(0, webVttTime_js_1.webVttTime)(interval.start)} --> ${(0, webVttTime_js_1.webVttTime)(interval.end)}`,
52
+ `${(0, webVttTime_js_1.webVttTime)(interval.start)} --> ${(0, webVttTime_js_1.webVttTime)(interval.end)}${lineSetting(cue)}`,
51
53
  `<lang ${(0, webVttCaptionLanguage_js_1.webVttCaptionLanguage)(cue.language)}>${cue.speaker === undefined
52
54
  ? payload
53
55
  : `<v ${(0, serializeAutoMovieWebVttSingleLineText_js_1.serializeAutoMovieWebVttSingleLineText)(cue.speaker)}>${payload}</v>`}</lang>`,
@@ -57,4 +59,17 @@ const canonicalProductionWebVtt = (timeline) => {
57
59
  ].join("\n");
58
60
  };
59
61
  exports.canonicalProductionWebVtt = canonicalProductionWebVtt;
62
+ /** Map the authored edge to a snapped line, with automatic placement for legacy cues. */
63
+ const lineSetting = (cue) => {
64
+ switch (cue.placement) {
65
+ case undefined:
66
+ return "";
67
+ case "top":
68
+ return " line:0";
69
+ case "bottom":
70
+ return " line:-1";
71
+ default:
72
+ throw new Error(`Caption cue "${cue.id}" has an unsupported placement.`);
73
+ }
74
+ };
60
75
  //# sourceMappingURL=canonicalProductionWebVtt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"canonicalProductionWebVtt.js","sourceRoot":"","sources":["../../src/caption/canonicalProductionWebVtt.ts"],"names":[],"mappings":";;;AAAA,8CAI2B;AAM3B,6FAAuF;AACvF,mGAA6F;AAC7F,2GAAqG;AACrG,yEAAmE;AACnE,mDAA6C;AAI7C;;;;;;;;;;;;;;;;;;;;GAoBG;AACI,MAAM,yBAAyB,GAExB,CAAC,QAAgC,EAAU,EAAE;IACzD,MAAM,SAAS,GACb,IAAA,mCAA0B,EAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,IAAI,GAAkB,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC5D,CAAC,IAAiB,EAAE,KAAkB,EAAU,EAAE,CAChD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU;QAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ;QAC9B,IAAA,yBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CACtC,CAAC;IACF,OAAO;QACL,UAAU,IAAA,0EAAkC,EAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;QAC3D,EAAE;QACF,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,GAAgB,EAAY,EAAE;YAC7C,MAAM,QAAQ,GACZ,IAAA,2CAAkC,EAAC;gBACjC,UAAU,EAAE,GAAG,CAAC,UAAU;gBAC1B,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,SAAS;gBACT,cAAc,EAAE,KAAK;gBACrB,QAAQ,EAAE,SAAS;aACpB,CAAC,CAAC;YACL,MAAM,OAAO,GAAW,IAAA,oEAA+B,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClE,OAAO;gBACL,IAAA,0EAAkC,EAAC,GAAG,CAAC,EAAE,CAAC;gBAC1C,GAAG,IAAA,0BAAU,EAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,IAAA,0BAAU,EAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;gBAC/D,SAAS,IAAA,gDAAqB,EAAC,GAAG,CAAC,QAAQ,CAAC,IAC1C,GAAG,CAAC,OAAO,KAAK,SAAS;oBACvB,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,MAAM,IAAA,kFAAsC,EAAC,GAAG,CAAC,OAAO,CAAC,IAAI,OAAO,MAC1E,SAAS;gBACT,EAAE;aACH,CAAC;QACJ,CAAC,CAAC;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC;AApCW,QAAA,yBAAyB,GAAzB,yBAAyB,CAoCpC"}
1
+ {"version":3,"file":"canonicalProductionWebVtt.js","sourceRoot":"","sources":["../../src/caption/canonicalProductionWebVtt.ts"],"names":[],"mappings":";;;AAAA,8CAI2B;AAM3B,6FAAuF;AACvF,mGAA6F;AAC7F,2GAAqG;AACrG,yEAAmE;AACnE,mDAA6C;AAI7C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACI,MAAM,yBAAyB,GAExB,CAAC,QAAgC,EAAU,EAAE;IACzD,MAAM,SAAS,GACb,IAAA,mCAA0B,EAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,IAAI,GAAkB,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAC5D,CAAC,IAAiB,EAAE,KAAkB,EAAU,EAAE,CAChD,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU;QAClC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ;QAC9B,IAAA,yBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CACtC,CAAC;IACF,OAAO;QACL,UAAU,IAAA,0EAAkC,EAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;QAC3D,EAAE;QACF,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,GAAgB,EAAY,EAAE;YAC7C,MAAM,QAAQ,GACZ,IAAA,2CAAkC,EAAC;gBACjC,UAAU,EAAE,GAAG,CAAC,UAAU;gBAC1B,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,SAAS;gBACT,cAAc,EAAE,KAAK;gBACrB,QAAQ,EAAE,SAAS;aACpB,CAAC,CAAC;YACL,MAAM,OAAO,GAAW,IAAA,oEAA+B,EAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAClE,OAAO;gBACL,IAAA,0EAAkC,EAAC,GAAG,CAAC,EAAE,CAAC;gBAC1C,GAAG,IAAA,0BAAU,EAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,IAAA,0BAAU,EAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,EAAE;gBAClF,SAAS,IAAA,gDAAqB,EAAC,GAAG,CAAC,QAAQ,CAAC,IAC1C,GAAG,CAAC,OAAO,KAAK,SAAS;oBACvB,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,MAAM,IAAA,kFAAsC,EAAC,GAAG,CAAC,OAAO,CAAC,IAAI,OAAO,MAC1E,SAAS;gBACT,EAAE;aACH,CAAC;QACJ,CAAC,CAAC;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC,CAAC;AApCW,QAAA,yBAAyB,GAAzB,yBAAyB,CAoCpC;AAEF,yFAAyF;AACzF,MAAM,WAAW,GAAG,CAAC,GAAgB,EAAU,EAAE;IAC/C,QAAQ,GAAG,CAAC,SAAS,EAAE,CAAC;QACtB,KAAK,SAAS;YACZ,OAAO,EAAE,CAAC;QACZ,KAAK,KAAK;YACR,OAAO,SAAS,CAAC;QACnB,KAAK,QAAQ;YACX,OAAO,UAAU,CAAC;QACpB;YACE,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,CAAC,EAAE,iCAAiC,CAAC,CAAC;IAC7E,CAAC;AACH,CAAC,CAAC"}
@@ -12,16 +12,18 @@ import { compareCodeUnits, productionFrameIntervalToGridTicks, resolveProduction
12
12
  * The header carries the timeline id. Cues are ordered by start frame, then end
13
13
  * frame, then id in code-unit order, and each cue's frame interval maps to
14
14
  * whole milliseconds with nearest rounding on the exact production frame rate.
15
+ * An authored top or bottom placement selects the first or last snapped line
16
+ * of a horizontal cue. Omitted placement uses WebVTT automatic line placement.
15
17
  * The payload sits in a `<lang>` span, inside a `<v>` voice span when the cue
16
18
  * names a speaker, and every block ends with a blank line. Throws when an id is
17
19
  * not a WebVTT identifier, a language is not a well-formed RFC 5646 tag, the
18
20
  * timeline's `fps` disagrees with its exact frame rate, or a cue interval is
19
- * empty or collapses on the millisecond clock.
21
+ * empty or collapses on the millisecond clock, or a placement is unsupported.
20
22
  *
21
- * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting.
23
+ * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting. WebVTT counts nonnegative snapped lines from the top and negative snapped lines from the bottom for horizontal cues.
22
24
  * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only orders cues and assembles lines; identifier refusal, text escaping, language validation, frame-to-tick mapping and timestamp spelling each live in the helper that owns them, so the delivery validator compares against the same bytes the writer emits.
23
25
  * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The only fixed values are WebVTT syntax and the 1000-tick millisecond clock WebVTT timestamps require; nothing is special-cased per cue, and a malformed cue throws instead of being skipped.
24
- * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the span nesting, and every refusal.
26
+ * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the placement mapping, the span nesting, and every refusal.
25
27
  * @evidence contracts/development/implementation.md#efficient-algorithms For C cues of text length L the cost is an O(C log C) sort of a copied array plus O(L) escaping per cue; the copy keeps the caller's timeline unmodified, and the sort is needed because the order is part of the canonical bytes.
26
28
  * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call serializes one timeline into a fresh string and coordinates no phases or consumers whose work it could share.
27
29
  * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the sorted copy and the line array are held, both released on return; the output string, owned by the caller, grows linearly with cue count and text length.
@@ -43,13 +45,22 @@ const canonicalProductionWebVtt = (timeline) => {
43
45
  const payload = serializeAutoMovieWebVttCueText(cue.text);
44
46
  return [
45
47
  serializeAutoMovieWebVttIdentifier(cue.id),
46
- `${webVttTime(interval.start)} --> ${webVttTime(interval.end)}`,
48
+ `${webVttTime(interval.start)} --> ${webVttTime(interval.end)}${lineSetting(cue)}`,
47
49
  `<lang ${webVttCaptionLanguage(cue.language)}>${cue.speaker === void 0 ? payload : `<v ${serializeAutoMovieWebVttSingleLineText(cue.speaker)}>${payload}</v>`}</lang>`,
48
50
  ""
49
51
  ];
50
52
  })
51
53
  ].join("\n");
52
54
  };
55
+ /** Map the authored edge to a snapped line, with automatic placement for legacy cues. */
56
+ const lineSetting = (cue) => {
57
+ switch (cue.placement) {
58
+ case void 0: return "";
59
+ case "top": return " line:0";
60
+ case "bottom": return " line:-1";
61
+ default: throw new Error(`Caption cue "${cue.id}" has an unsupported placement.`);
62
+ }
63
+ };
53
64
  export { canonicalProductionWebVtt };
54
65
 
55
66
  //# sourceMappingURL=canonicalProductionWebVtt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"canonicalProductionWebVtt.mjs","names":[],"sources":["../../src/caption/canonicalProductionWebVtt.ts"],"sourcesContent":["import {\n compareCodeUnits,\n productionFrameIntervalToGridTicks,\n resolveProductionFrameRate,\n} from \"@automovie/engine\";\nimport type {\n IAutoMovieFilmTimeline,\n IAutoMovieProductionFrameRate,\n} from \"@automovie/interface\";\n\nimport { serializeAutoMovieWebVttCueText } from \"./serializeAutoMovieWebVttCueText.js\";\nimport { serializeAutoMovieWebVttIdentifier } from \"./serializeAutoMovieWebVttIdentifier.js\";\nimport { serializeAutoMovieWebVttSingleLineText } from \"./serializeAutoMovieWebVttSingleLineText.js\";\nimport { webVttCaptionLanguage } from \"./webVttCaptionLanguage.js\";\nimport { webVttTime } from \"./webVttTime.js\";\n\ntype ICaptionCue = IAutoMovieFilmTimeline[\"tracks\"][\"captions\"][number];\n\n/**\n * Serialize a compiled timeline's caption track as the one canonical WebVTT\n * file its caption deliverable must equal byte for byte.\n *\n * The header carries the timeline id. Cues are ordered by start frame, then end\n * frame, then id in code-unit order, and each cue's frame interval maps to\n * whole milliseconds with nearest rounding on the exact production frame rate.\n * The payload sits in a `<lang>` span, inside a `<v>` voice span when the cue\n * names a speaker, and every block ends with a blank line. Throws when an id is\n * not a WebVTT identifier, a language is not a well-formed RFC 5646 tag, the\n * timeline's `fps` disagrees with its exact frame rate, or a cue interval is\n * empty or collapses on the millisecond clock.\n *\n * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only orders cues and assembles lines; identifier refusal, text escaping, language validation, frame-to-tick mapping and timestamp spelling each live in the helper that owns them, so the delivery validator compares against the same bytes the writer emits.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The only fixed values are WebVTT syntax and the 1000-tick millisecond clock WebVTT timestamps require; nothing is special-cased per cue, and a malformed cue throws instead of being skipped.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the span nesting, and every refusal.\n * @evidence contracts/development/implementation.md#efficient-algorithms For C cues of text length L the cost is an O(C log C) sort of a copied array plus O(L) escaping per cue; the copy keeps the caller's timeline unmodified, and the sort is needed because the order is part of the canonical bytes.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call serializes one timeline into a fresh string and coordinates no phases or consumers whose work it could share.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the sorted copy and the line array are held, both released on return; the output string, owned by the caller, grows linearly with cue count and text length.\n */\nexport const canonicalProductionWebVtt: (\n timeline: IAutoMovieFilmTimeline,\n) => string = (timeline: IAutoMovieFilmTimeline): string => {\n const frameRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(timeline);\n const cues: ICaptionCue[] = [...timeline.tracks.captions].sort(\n (left: ICaptionCue, right: ICaptionCue): number =>\n left.startFrame - right.startFrame ||\n left.endFrame - right.endFrame ||\n compareCodeUnits(left.id, right.id),\n );\n return [\n `WEBVTT ${serializeAutoMovieWebVttIdentifier(timeline.id)}`,\n \"\",\n ...cues.flatMap((cue: ICaptionCue): string[] => {\n const interval: { start: number; end: number } =\n productionFrameIntervalToGridTicks({\n startFrame: cue.startFrame,\n endFrame: cue.endFrame,\n frameRate,\n ticksPerSecond: 1_000,\n rounding: \"nearest\",\n });\n const payload: string = serializeAutoMovieWebVttCueText(cue.text);\n return [\n serializeAutoMovieWebVttIdentifier(cue.id),\n `${webVttTime(interval.start)} --> ${webVttTime(interval.end)}`,\n `<lang ${webVttCaptionLanguage(cue.language)}>${\n cue.speaker === undefined\n ? payload\n : `<v ${serializeAutoMovieWebVttSingleLineText(cue.speaker)}>${payload}</v>`\n }</lang>`,\n \"\",\n ];\n }),\n ].join(\"\\n\");\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,6BAEE,aAA6C;CAC1D,MAAM,YACJ,2BAA2B,QAAQ;CACrC,MAAM,OAAsB,CAAC,GAAG,SAAS,OAAO,QAAQ,CAAC,CAAC,MACvD,MAAmB,UAClB,KAAK,aAAa,MAAM,cACxB,KAAK,WAAW,MAAM,YACtB,iBAAiB,KAAK,IAAI,MAAM,EAAE,CACtC;CACA,OAAO;EACL,UAAU,mCAAmC,SAAS,EAAE;EACxD;EACA,GAAG,KAAK,SAAS,QAA+B;GAC9C,MAAM,WACJ,mCAAmC;IACjC,YAAY,IAAI;IAChB,UAAU,IAAI;IACd;IACA,gBAAgB;IAChB,UAAU;GACZ,CAAC;GACH,MAAM,UAAkB,gCAAgC,IAAI,IAAI;GAChE,OAAO;IACL,mCAAmC,IAAI,EAAE;IACzC,GAAG,WAAW,SAAS,KAAK,EAAE,OAAO,WAAW,SAAS,GAAG;IAC5D,SAAS,sBAAsB,IAAI,QAAQ,EAAE,GAC3C,IAAI,YAAY,KAAA,IACZ,UACA,MAAM,uCAAuC,IAAI,OAAO,EAAE,GAAG,QAAQ,MAC1E;IACD;GACF;EACF,CAAC;CACH,CAAC,CAAC,KAAK,IAAI;AACb"}
1
+ {"version":3,"file":"canonicalProductionWebVtt.mjs","names":[],"sources":["../../src/caption/canonicalProductionWebVtt.ts"],"sourcesContent":["import {\n compareCodeUnits,\n productionFrameIntervalToGridTicks,\n resolveProductionFrameRate,\n} from \"@automovie/engine\";\nimport type {\n IAutoMovieFilmTimeline,\n IAutoMovieProductionFrameRate,\n} from \"@automovie/interface\";\n\nimport { serializeAutoMovieWebVttCueText } from \"./serializeAutoMovieWebVttCueText.js\";\nimport { serializeAutoMovieWebVttIdentifier } from \"./serializeAutoMovieWebVttIdentifier.js\";\nimport { serializeAutoMovieWebVttSingleLineText } from \"./serializeAutoMovieWebVttSingleLineText.js\";\nimport { webVttCaptionLanguage } from \"./webVttCaptionLanguage.js\";\nimport { webVttTime } from \"./webVttTime.js\";\n\ntype ICaptionCue = IAutoMovieFilmTimeline[\"tracks\"][\"captions\"][number];\n\n/**\n * Serialize a compiled timeline's caption track as the one canonical WebVTT\n * file its caption deliverable must equal byte for byte.\n *\n * The header carries the timeline id. Cues are ordered by start frame, then end\n * frame, then id in code-unit order, and each cue's frame interval maps to\n * whole milliseconds with nearest rounding on the exact production frame rate.\n * An authored top or bottom placement selects the first or last snapped line\n * of a horizontal cue. Omitted placement uses WebVTT automatic line placement.\n * The payload sits in a `<lang>` span, inside a `<v>` voice span when the cue\n * names a speaker, and every block ends with a blank line. Throws when an id is\n * not a WebVTT identifier, a language is not a well-formed RFC 5646 tag, the\n * timeline's `fps` disagrees with its exact frame rate, or a cue interval is\n * empty or collapses on the millisecond clock, or a placement is unsupported.\n *\n * @evidence contracts/development/implementation.md#principled-implementation The cue syntax follows the W3C WebVTT file grammar: identifiers are preserved verbatim, cue text and annotations are escaped by the shared serializers, and times come from `productionFrameIntervalToGridTicks`, whose BigInt arithmetic maps each rational frame boundary to an exact integer millisecond before formatting. WebVTT counts nonnegative snapped lines from the top and negative snapped lines from the bottom for horizontal cues.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure The function only orders cues and assembles lines; identifier refusal, text escaping, language validation, frame-to-tick mapping and timestamp spelling each live in the helper that owns them, so the delivery validator compares against the same bytes the writer emits.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The only fixed values are WebVTT syntax and the 1000-tick millisecond clock WebVTT timestamps require; nothing is special-cased per cue, and a malformed cue throws instead of being skipped.\n * @evidence contracts/development/common.md#meaningful-documentation The doc states the byte-equality role, the header source, the cue order, the millisecond rounding, the placement mapping, the span nesting, and every refusal.\n * @evidence contracts/development/implementation.md#efficient-algorithms For C cues of text length L the cost is an O(C log C) sort of a copied array plus O(L) escaping per cue; the copy keeps the caller's timeline unmodified, and the sort is needed because the order is part of the canonical bytes.\n * @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call serializes one timeline into a fresh string and coordinates no phases or consumers whose work it could share.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the sorted copy and the line array are held, both released on return; the output string, owned by the caller, grows linearly with cue count and text length.\n */\nexport const canonicalProductionWebVtt: (\n timeline: IAutoMovieFilmTimeline,\n) => string = (timeline: IAutoMovieFilmTimeline): string => {\n const frameRate: IAutoMovieProductionFrameRate =\n resolveProductionFrameRate(timeline);\n const cues: ICaptionCue[] = [...timeline.tracks.captions].sort(\n (left: ICaptionCue, right: ICaptionCue): number =>\n left.startFrame - right.startFrame ||\n left.endFrame - right.endFrame ||\n compareCodeUnits(left.id, right.id),\n );\n return [\n `WEBVTT ${serializeAutoMovieWebVttIdentifier(timeline.id)}`,\n \"\",\n ...cues.flatMap((cue: ICaptionCue): string[] => {\n const interval: { start: number; end: number } =\n productionFrameIntervalToGridTicks({\n startFrame: cue.startFrame,\n endFrame: cue.endFrame,\n frameRate,\n ticksPerSecond: 1_000,\n rounding: \"nearest\",\n });\n const payload: string = serializeAutoMovieWebVttCueText(cue.text);\n return [\n serializeAutoMovieWebVttIdentifier(cue.id),\n `${webVttTime(interval.start)} --> ${webVttTime(interval.end)}${lineSetting(cue)}`,\n `<lang ${webVttCaptionLanguage(cue.language)}>${\n cue.speaker === undefined\n ? payload\n : `<v ${serializeAutoMovieWebVttSingleLineText(cue.speaker)}>${payload}</v>`\n }</lang>`,\n \"\",\n ];\n }),\n ].join(\"\\n\");\n};\n\n/** Map the authored edge to a snapped line, with automatic placement for legacy cues. */\nconst lineSetting = (cue: ICaptionCue): string => {\n switch (cue.placement) {\n case undefined:\n return \"\";\n case \"top\":\n return \" line:0\";\n case \"bottom\":\n return \" line:-1\";\n default:\n throw new Error(`Caption cue \"${cue.id}\" has an unsupported placement.`);\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,MAAa,6BAEE,aAA6C;CAC1D,MAAM,YACJ,2BAA2B,QAAQ;CACrC,MAAM,OAAsB,CAAC,GAAG,SAAS,OAAO,QAAQ,CAAC,CAAC,MACvD,MAAmB,UAClB,KAAK,aAAa,MAAM,cACxB,KAAK,WAAW,MAAM,YACtB,iBAAiB,KAAK,IAAI,MAAM,EAAE,CACtC;CACA,OAAO;EACL,UAAU,mCAAmC,SAAS,EAAE;EACxD;EACA,GAAG,KAAK,SAAS,QAA+B;GAC9C,MAAM,WACJ,mCAAmC;IACjC,YAAY,IAAI;IAChB,UAAU,IAAI;IACd;IACA,gBAAgB;IAChB,UAAU;GACZ,CAAC;GACH,MAAM,UAAkB,gCAAgC,IAAI,IAAI;GAChE,OAAO;IACL,mCAAmC,IAAI,EAAE;IACzC,GAAG,WAAW,SAAS,KAAK,EAAE,OAAO,WAAW,SAAS,GAAG,IAAI,YAAY,GAAG;IAC/E,SAAS,sBAAsB,IAAI,QAAQ,EAAE,GAC3C,IAAI,YAAY,KAAA,IACZ,UACA,MAAM,uCAAuC,IAAI,OAAO,EAAE,GAAG,QAAQ,MAC1E;IACD;GACF;EACF,CAAC;CACH,CAAC,CAAC,KAAK,IAAI;AACb;;AAGA,MAAM,eAAe,QAA6B;CAChD,QAAQ,IAAI,WAAZ;EACE,KAAK,KAAA,GACH,OAAO;EACT,KAAK,OACH,OAAO;EACT,KAAK,UACH,OAAO;EACT,SACE,MAAM,IAAI,MAAM,gBAAgB,IAAI,GAAG,gCAAgC;CAC3E;AACF"}
@@ -0,0 +1,15 @@
1
+ import type { IAutoMovieRenderSoftPropFrame } from "@automovie/interface";
2
+ import type { IAutoMovieDrawScene } from "./IAutoMovieDrawScene.js";
3
+ /**
4
+ * Route soft prop surfaces from a producer into the draw subject's scene.
5
+ * Each requested second is read after the subject has placed its other objects.
6
+ *
7
+ * @evidence contracts/development/common.md#meaningful-documentation Documents exact-time reads, placement order and disposal ownership.
8
+ * @evidence contracts/development/implementation.md#principled-implementation The draw host already seeks at the capture cell's second, so this adapter hands that same second to the surface producer and never interpolates particle data.
9
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps the existing subject's scene and presentation data and extends only its seek and disposal boundaries.
10
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A placement refusal propagates before a surface read; each successful placement uses the producer's current surfaces and their analysis status.
11
+ * @evidence contracts/development/implementation.md#efficient-algorithms One awaited base seek and one producer call per requested second, plus the current frame's mesh projection.
12
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The mounted mesh owner serves every seek in the subject's lifetime. Surface reads follow the current seek without retaining equivalent-time snapshots.
13
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns the attached soft-prop projection until disposal and independently retires it and the original subject in one attempt.
14
+ */
15
+ export declare function bindAutoMovieDrawSceneSoftProps(subject: IAutoMovieDrawScene, read: (seconds: number) => readonly IAutoMovieRenderSoftPropFrame[]): IAutoMovieDrawScene;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bindAutoMovieDrawSceneSoftProps = bindAutoMovieDrawSceneSoftProps;
4
+ const buildSceneSoftProps_js_1 = require("../scene/buildSceneSoftProps.js");
5
+ const restoreAutoMovieRenderModeOnce_js_1 = require("../scene/restoreAutoMovieRenderModeOnce.js");
6
+ const restoreAutoMovieRenderModeState_js_1 = require("../scene/restoreAutoMovieRenderModeState.js");
7
+ /**
8
+ * Route soft prop surfaces from a producer into the draw subject's scene.
9
+ * Each requested second is read after the subject has placed its other objects.
10
+ *
11
+ * @evidence contracts/development/common.md#meaningful-documentation Documents exact-time reads, placement order and disposal ownership.
12
+ * @evidence contracts/development/implementation.md#principled-implementation The draw host already seeks at the capture cell's second, so this adapter hands that same second to the surface producer and never interpolates particle data.
13
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps the existing subject's scene and presentation data and extends only its seek and disposal boundaries.
14
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A placement refusal propagates before a surface read; each successful placement uses the producer's current surfaces and their analysis status.
15
+ * @evidence contracts/development/implementation.md#efficient-algorithms One awaited base seek and one producer call per requested second, plus the current frame's mesh projection.
16
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The mounted mesh owner serves every seek in the subject's lifetime. Surface reads follow the current seek without retaining equivalent-time snapshots.
17
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns the attached soft-prop projection until disposal and independently retires it and the original subject in one attempt.
18
+ */
19
+ function bindAutoMovieDrawSceneSoftProps(subject, read) {
20
+ const props = (0, buildSceneSoftProps_js_1.buildSceneSoftProps)(subject.scene);
21
+ let closed = false;
22
+ return {
23
+ ...subject,
24
+ seek: async (seconds) => {
25
+ if (closed)
26
+ throw new Error("The soft prop draw subject is closed.");
27
+ await subject.seek(seconds);
28
+ if (closed)
29
+ throw new Error("The soft prop draw subject is closed.");
30
+ props.update(read(seconds));
31
+ },
32
+ dispose: (0, restoreAutoMovieRenderModeOnce_js_1.restoreAutoMovieRenderModeOnce)(() => {
33
+ closed = true;
34
+ (0, restoreAutoMovieRenderModeState_js_1.restoreAutoMovieRenderModeState)([
35
+ props.dispose,
36
+ () => subject.dispose(),
37
+ ]);
38
+ }),
39
+ };
40
+ }
41
+ //# sourceMappingURL=bindAutoMovieDrawSceneSoftProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindAutoMovieDrawSceneSoftProps.js","sourceRoot":"","sources":["../../src/draw/bindAutoMovieDrawSceneSoftProps.ts"],"names":[],"mappings":";;;AAGA,4EAAsE;AACtE,kGAA4F;AAC5F,oGAA8F;AAG9F;;;;;;;;;;;GAWG;AACH,yCACE,OAA4B,EAC5B,IAAmE;IAEnE,MAAM,KAAK,GAA6B,IAAA,4CAAmB,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC3E,IAAI,MAAM,GAAY,KAAK,CAAC;IAC5B,OAAO;QACL,GAAG,OAAO;QACV,IAAI,EAAE,KAAK,EAAE,OAAe,EAAiB,EAAE;YAC7C,IAAI,MAAM;gBAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;YACrE,MAAM,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC5B,IAAI,MAAM;gBAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;YACrE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;QAC9B,CAAC;QACD,OAAO,EAAE,IAAA,kEAA8B,EAAC,GAAS,EAAE;YACjD,MAAM,GAAG,IAAI,CAAC;YACd,IAAA,oEAA+B,EAAC;gBAC9B,KAAK,CAAC,OAAO;gBACb,GAAS,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;aAC9B,CAAC,CAAC;QACL,CAAC,CAAC;KACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { buildSceneSoftProps } from "../scene/buildSceneSoftProps.mjs";
2
+ import { restoreAutoMovieRenderModeOnce } from "../scene/restoreAutoMovieRenderModeOnce.mjs";
3
+ import { restoreAutoMovieRenderModeState } from "../scene/restoreAutoMovieRenderModeState.mjs";
4
+ // src/draw/bindAutoMovieDrawSceneSoftProps.ts
5
+ /**
6
+ * Route soft prop surfaces from a producer into the draw subject's scene.
7
+ * Each requested second is read after the subject has placed its other objects.
8
+ *
9
+ * @evidence contracts/development/common.md#meaningful-documentation Documents exact-time reads, placement order and disposal ownership.
10
+ * @evidence contracts/development/implementation.md#principled-implementation The draw host already seeks at the capture cell's second, so this adapter hands that same second to the surface producer and never interpolates particle data.
11
+ * @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps the existing subject's scene and presentation data and extends only its seek and disposal boundaries.
12
+ * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A placement refusal propagates before a surface read; each successful placement uses the producer's current surfaces and their analysis status.
13
+ * @evidence contracts/development/implementation.md#efficient-algorithms One awaited base seek and one producer call per requested second, plus the current frame's mesh projection.
14
+ * @evidence contracts/development/implementation.md#reuse-equivalent-work The mounted mesh owner serves every seek in the subject's lifetime. Surface reads follow the current seek without retaining equivalent-time snapshots.
15
+ * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns the attached soft-prop projection until disposal and independently retires it and the original subject in one attempt.
16
+ */
17
+ function bindAutoMovieDrawSceneSoftProps(subject, read) {
18
+ const props = buildSceneSoftProps(subject.scene);
19
+ let closed = false;
20
+ return {
21
+ ...subject,
22
+ seek: async (seconds) => {
23
+ if (closed) throw new Error("The soft prop draw subject is closed.");
24
+ await subject.seek(seconds);
25
+ if (closed) throw new Error("The soft prop draw subject is closed.");
26
+ props.update(read(seconds));
27
+ },
28
+ dispose: restoreAutoMovieRenderModeOnce(() => {
29
+ closed = true;
30
+ restoreAutoMovieRenderModeState([props.dispose, () => subject.dispose()]);
31
+ })
32
+ };
33
+ }
34
+ export { bindAutoMovieDrawSceneSoftProps };
35
+
36
+ //# sourceMappingURL=bindAutoMovieDrawSceneSoftProps.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindAutoMovieDrawSceneSoftProps.mjs","names":[],"sources":["../../src/draw/bindAutoMovieDrawSceneSoftProps.ts"],"sourcesContent":["import type { IAutoMovieRenderSoftPropFrame } from \"@automovie/interface\";\n\nimport type { IAutoMovieSceneSoftProps } from \"../scene/IAutoMovieSceneSoftProps.js\";\nimport { buildSceneSoftProps } from \"../scene/buildSceneSoftProps.js\";\nimport { restoreAutoMovieRenderModeOnce } from \"../scene/restoreAutoMovieRenderModeOnce.js\";\nimport { restoreAutoMovieRenderModeState } from \"../scene/restoreAutoMovieRenderModeState.js\";\nimport type { IAutoMovieDrawScene } from \"./IAutoMovieDrawScene.js\";\n\n/**\n * Route soft prop surfaces from a producer into the draw subject's scene.\n * Each requested second is read after the subject has placed its other objects.\n *\n * @evidence contracts/development/common.md#meaningful-documentation Documents exact-time reads, placement order and disposal ownership.\n * @evidence contracts/development/implementation.md#principled-implementation The draw host already seeks at the capture cell's second, so this adapter hands that same second to the surface producer and never interpolates particle data.\n * @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps the existing subject's scene and presentation data and extends only its seek and disposal boundaries.\n * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts A placement refusal propagates before a surface read; each successful placement uses the producer's current surfaces and their analysis status.\n * @evidence contracts/development/implementation.md#efficient-algorithms One awaited base seek and one producer call per requested second, plus the current frame's mesh projection.\n * @evidence contracts/development/implementation.md#reuse-equivalent-work The mounted mesh owner serves every seek in the subject's lifetime. Surface reads follow the current seek without retaining equivalent-time snapshots.\n * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns the attached soft-prop projection until disposal and independently retires it and the original subject in one attempt.\n */\nexport function bindAutoMovieDrawSceneSoftProps(\n subject: IAutoMovieDrawScene,\n read: (seconds: number) => readonly IAutoMovieRenderSoftPropFrame[],\n): IAutoMovieDrawScene {\n const props: IAutoMovieSceneSoftProps = buildSceneSoftProps(subject.scene);\n let closed: boolean = false;\n return {\n ...subject,\n seek: async (seconds: number): Promise<void> => {\n if (closed) throw new Error(\"The soft prop draw subject is closed.\");\n await subject.seek(seconds);\n if (closed) throw new Error(\"The soft prop draw subject is closed.\");\n props.update(read(seconds));\n },\n dispose: restoreAutoMovieRenderModeOnce((): void => {\n closed = true;\n restoreAutoMovieRenderModeState([\n props.dispose,\n (): void => subject.dispose(),\n ]);\n }),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAoBA,SAAgB,gCACd,SACA,MACqB;CACrB,MAAM,QAAkC,oBAAoB,QAAQ,KAAK;CACzE,IAAI,SAAkB;CACtB,OAAO;EACL,GAAG;EACH,MAAM,OAAO,YAAmC;GAC9C,IAAI,QAAQ,MAAM,IAAI,MAAM,uCAAuC;GACnE,MAAM,QAAQ,KAAK,OAAO;GAC1B,IAAI,QAAQ,MAAM,IAAI,MAAM,uCAAuC;GACnE,MAAM,OAAO,KAAK,OAAO,CAAC;EAC5B;EACA,SAAS,qCAA2C;GAClD,SAAS;GACT,gCAAgC,CAC9B,MAAM,eACM,QAAQ,QAAQ,CAC9B,CAAC;EACH,CAAC;CACH;AACF"}
@@ -1,6 +1,7 @@
1
1
  export * from "./AUTO_MOVIE_DRAW_GLOBALS.js";
2
2
  export * from "./AutoMovieDrawSession.js";
3
3
  export * from "./AutoMovieDrawSubjects.js";
4
+ export * from "./bindAutoMovieDrawSceneSoftProps.js";
4
5
  export * from "./decodeAutoMovieDrawPixels.js";
5
6
  export * from "./describeAutoMovieDrawScene.js";
6
7
  export * from "./encodeAutoMovieDrawPixels.js";
package/lib/draw/index.js CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./AUTO_MOVIE_DRAW_GLOBALS.js"), exports);
18
18
  __exportStar(require("./AutoMovieDrawSession.js"), exports);
19
19
  __exportStar(require("./AutoMovieDrawSubjects.js"), exports);
20
+ __exportStar(require("./bindAutoMovieDrawSceneSoftProps.js"), exports);
20
21
  __exportStar(require("./decodeAutoMovieDrawPixels.js"), exports);
21
22
  __exportStar(require("./describeAutoMovieDrawScene.js"), exports);
22
23
  __exportStar(require("./encodeAutoMovieDrawPixels.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/draw/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,kEAAgD;AAChD,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,sEAAoD;AACpD,kEAAgD;AAChD,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/draw/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,6DAA2C;AAC3C,uEAAqD;AACrD,iEAA+C;AAC/C,kEAAgD;AAChD,iEAA+C;AAC/C,0DAAwC;AACxC,iEAA+C;AAC/C,8DAA4C;AAC5C,0DAAwC;AACxC,2DAAyC;AACzC,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C;AAC3C,iEAA+C;AAC/C,sEAAoD;AACpD,kEAAgD;AAChD,gEAA8C"}
@@ -1,5 +1,6 @@
1
1
  import { AUTO_MOVIE_DRAW_GLOBALS } from "./AUTO_MOVIE_DRAW_GLOBALS.mjs";
2
2
  import { AutoMovieDrawSession } from "./AutoMovieDrawSession.mjs";
3
+ import { bindAutoMovieDrawSceneSoftProps } from "./bindAutoMovieDrawSceneSoftProps.mjs";
3
4
  import { decodeAutoMovieDrawPixels } from "./decodeAutoMovieDrawPixels.mjs";
4
5
  import { describeAutoMovieDrawScene } from "./describeAutoMovieDrawScene.mjs";
5
6
  import { encodeAutoMovieDrawPixels } from "./encodeAutoMovieDrawPixels.mjs";
@@ -9,4 +10,4 @@ import { renderAutoMovieDrawnVideo } from "./renderAutoMovieDrawnVideo.mjs";
9
10
  import { replaceAutoMovieDrawInspection } from "./replaceAutoMovieDrawInspection.mjs";
10
11
  import { selectAutoMovieDrawSubject } from "./selectAutoMovieDrawSubject.mjs";
11
12
  import { stampAutoMovieDrawLegend } from "./stampAutoMovieDrawLegend.mjs";
12
- export { AUTO_MOVIE_DRAW_GLOBALS, AutoMovieDrawSession, decodeAutoMovieDrawPixels, describeAutoMovieDrawScene, encodeAutoMovieDrawPixels, installAutoMovieDraw, planAutoMovieDrawCall, renderAutoMovieDrawnVideo, replaceAutoMovieDrawInspection, selectAutoMovieDrawSubject, stampAutoMovieDrawLegend };
13
+ export { AUTO_MOVIE_DRAW_GLOBALS, AutoMovieDrawSession, bindAutoMovieDrawSceneSoftProps, decodeAutoMovieDrawPixels, describeAutoMovieDrawScene, encodeAutoMovieDrawPixels, installAutoMovieDraw, planAutoMovieDrawCall, renderAutoMovieDrawnVideo, replaceAutoMovieDrawInspection, selectAutoMovieDrawSubject, stampAutoMovieDrawLegend };
package/lib/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./caption/index.js";
2
2
  export * from "./capture/index.js";
3
3
  export * from "./delivery/index.js";
4
+ export * from "./AutoMovieFrameGrid.js";
4
5
  export * from "./draw/index.js";
5
6
  export * from "./film/index.js";
6
7
  export * from "./ffmpegArgs.js";
package/lib/index.js CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./caption/index.js"), exports);
18
18
  __exportStar(require("./capture/index.js"), exports);
19
19
  __exportStar(require("./delivery/index.js"), exports);
20
+ __exportStar(require("./AutoMovieFrameGrid.js"), exports);
20
21
  __exportStar(require("./draw/index.js"), exports);
21
22
  __exportStar(require("./film/index.js"), exports);
22
23
  __exportStar(require("./ffmpegArgs.js"), exports);
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,mEAAiD;AACjD,mEAAiD;AACjD,qEAAmD;AACnD,+DAA6C;AAC7C,oDAAkC;AAClC,mEAAiD;AACjD,8DAA4C;AAC5C,sDAAoC;AACpC,iEAA+C;AAC/C,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,qEAAmD;AACnD,oEAAkD;AAClD,wEAAsD;AACtD,8EAA4D;AAC5D,qEAAmD;AACnD,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,wEAAsD;AACtD,sEAAoD;AACpD,6EAA2D;AAC3D,4EAA0D;AAC1D,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,oEAAkD;AAClD,kEAAgD;AAChD,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,6DAA2C;AAC3C,iEAA+C;AAC/C,4DAA0C;AAC1C,4DAA0C;AAC1C,mDAAiC;AACjC,8EAA4D;AAC5D,gEAA8C;AAC9C,mDAAiC;AACjC,iFAA+D;AAC/D,6EAA2D;AAC3D,8EAA4D;AAC5D,+EAA6D;AAC7D,4EAA0D;AAC1D,kFAAgE;AAChE,qEAAmD;AACnD,kEAAgD;AAChD,4EAA0D;AAC1D,0EAAwD;AACxD,0EAAwD;AACxD,2EAAyD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,qDAAmC;AACnC,sDAAoC;AACpC,0DAAwC;AACxC,kDAAgC;AAChC,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,oDAAkC;AAClC,kDAAgC;AAChC,mEAAiD;AACjD,mEAAiD;AACjD,qEAAmD;AACnD,+DAA6C;AAC7C,oDAAkC;AAClC,mEAAiD;AACjD,8DAA4C;AAC5C,sDAAoC;AACpC,iEAA+C;AAC/C,mDAAiC;AACjC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,qEAAmD;AACnD,oEAAkD;AAClD,wEAAsD;AACtD,8EAA4D;AAC5D,qEAAmD;AACnD,oEAAkD;AAClD,0DAAwC;AACxC,4DAA0C;AAC1C,wEAAsD;AACtD,sEAAoD;AACpD,6EAA2D;AAC3D,4EAA0D;AAC1D,2DAAyC;AACzC,4DAA0C;AAC1C,0DAAwC;AACxC,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,2DAAyC;AACzC,6DAA2C;AAC3C,oEAAkD;AAClD,kEAAgD;AAChD,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,mDAAiC;AACjC,0DAAwC;AACxC,6DAA2C;AAC3C,iEAA+C;AAC/C,4DAA0C;AAC1C,4DAA0C;AAC1C,mDAAiC;AACjC,8EAA4D;AAC5D,gEAA8C;AAC9C,mDAAiC;AACjC,iFAA+D;AAC/D,6EAA2D;AAC3D,8EAA4D;AAC5D,+EAA6D;AAC7D,4EAA0D;AAC1D,kFAAgE;AAChE,qEAAmD;AACnD,kEAAgD;AAChD,4EAA0D;AAC1D,0EAAwD;AACxD,0EAAwD;AACxD,2EAAyD"}