jpfun 0.2.0 → 0.4.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 +141 -11
- package/dist/converter/midi/convert.d.ts +50 -0
- package/dist/converter/midi/convert.js +700 -0
- package/dist/converter/midi/index.d.ts +5 -0
- package/dist/converter/midi/index.js +11 -0
- package/dist/converter/midi/json.d.ts +38 -0
- package/dist/converter/midi/json.js +1 -0
- package/dist/converter/midi/triplet.d.ts +30 -0
- package/dist/converter/midi/triplet.js +75 -0
- package/dist/converter/musicxml/dom.d.ts +25 -0
- package/dist/converter/musicxml/dom.js +65 -0
- package/dist/converter/musicxml/features.d.ts +51 -0
- package/dist/converter/musicxml/features.js +232 -0
- package/dist/converter/musicxml/index.d.ts +9 -0
- package/dist/converter/musicxml/index.js +1140 -0
- package/dist/converter/musicxml/model.d.ts +123 -0
- package/dist/converter/musicxml/model.js +1 -0
- package/dist/converter/source.d.ts +22 -0
- package/dist/converter/source.js +51 -0
- package/dist/core.d.ts +22 -0
- package/dist/core.js +22 -0
- package/dist/diagnostic.js +5 -2
- package/dist/fraction.d.ts +24 -0
- package/dist/fraction.js +132 -0
- package/dist/functions/ASTtypes.d.ts +51 -31
- package/dist/functions/ASTtypes.js +59 -38
- package/dist/functions/adjust/index.d.ts +2 -0
- package/dist/functions/adjust/index.js +193 -0
- package/dist/functions/arpeggio/index.d.ts +2 -0
- package/dist/functions/arpeggio/index.js +180 -0
- package/dist/functions/arpeggio/shape.d.ts +7 -0
- package/dist/functions/arpeggio/shape.js +122 -0
- package/dist/functions/bar/index.d.ts +8 -0
- package/dist/functions/bar/index.js +62 -25
- package/dist/functions/beam/auto.d.ts +1 -1
- package/dist/functions/beam/auto.js +33 -16
- package/dist/functions/beam/index.js +10 -6
- package/dist/functions/beam/layout.d.ts +4 -3
- package/dist/functions/beam/layout.js +43 -65
- package/dist/functions/box/index.js +37 -36
- package/dist/functions/br/index.js +10 -8
- package/dist/functions/dash/index.js +40 -7
- package/dist/functions/default.js +19 -8
- package/dist/functions/div/index.d.ts +16 -0
- package/dist/functions/div/index.js +45 -17
- package/dist/functions/dot/index.js +23 -25
- package/dist/functions/dyn/index.d.ts +2 -0
- package/dist/functions/dyn/index.js +242 -0
- package/dist/functions/grace/index.d.ts +8 -11
- package/dist/functions/grace/index.js +84 -79
- package/dist/functions/head/index.d.ts +2 -0
- package/dist/functions/head/index.js +496 -0
- package/dist/functions/key/index.js +98 -3
- package/dist/functions/meter/index.d.ts +2 -0
- package/dist/functions/meter/index.js +155 -0
- package/dist/functions/note/accidentals.d.ts +24 -3
- package/dist/functions/note/accidentals.js +31 -1
- package/dist/functions/note/index.js +106 -79
- package/dist/functions/note/noteNameFSM.js +52 -63
- package/dist/functions/page/index.d.ts +11 -2
- package/dist/functions/page/index.js +65 -4
- package/dist/functions/program/index.d.ts +2 -0
- package/dist/functions/program/index.js +30 -0
- package/dist/functions/set/index.js +43 -32
- package/dist/functions/stack/index.js +26 -22
- package/dist/functions/symbol/index.d.ts +31 -0
- package/dist/functions/symbol/index.js +139 -0
- package/dist/functions/symbol/ornament.d.ts +15 -0
- package/dist/functions/symbol/ornament.js +73 -0
- package/dist/functions/symbol/shape.d.ts +24 -0
- package/dist/functions/symbol/shape.js +52 -0
- package/dist/functions/symbol/symbols/accent.d.ts +2 -0
- package/dist/functions/symbol/symbols/accent.js +24 -0
- package/dist/functions/symbol/symbols/dc.d.ts +4 -0
- package/dist/functions/symbol/symbols/dc.js +82 -0
- package/dist/functions/symbol/symbols/ds.d.ts +2 -0
- package/dist/functions/symbol/symbols/ds.js +93 -0
- package/dist/functions/symbol/symbols/dynamics.d.ts +3 -0
- package/dist/functions/symbol/symbols/dynamics.js +168 -0
- package/dist/functions/symbol/symbols/fermata.d.ts +2 -0
- package/dist/functions/symbol/symbols/fermata.js +24 -0
- package/dist/functions/symbol/symbols/fine.d.ts +2 -0
- package/dist/functions/symbol/symbols/fine.js +12 -0
- package/dist/functions/symbol/symbols/mordent.d.ts +2 -0
- package/dist/functions/symbol/symbols/mordent.js +56 -0
- package/dist/functions/symbol/symbols/prall.d.ts +2 -0
- package/dist/functions/symbol/symbols/prall.js +42 -0
- package/dist/functions/symbol/symbols/segno.d.ts +4 -0
- package/dist/functions/symbol/symbols/segno.js +82 -0
- package/dist/functions/symbol/symbols/tr.d.ts +2 -0
- package/dist/functions/symbol/symbols/tr.js +71 -0
- package/dist/functions/tempo/glyph.d.ts +12 -0
- package/dist/functions/tempo/glyph.js +30 -0
- package/dist/functions/tempo/index.js +57 -4
- package/dist/functions/temporal.d.ts +138 -0
- package/dist/functions/temporal.js +101 -0
- package/dist/functions/text/index.js +86 -27
- package/dist/functions/tie/index.js +136 -152
- package/dist/functions/tuplet/index.d.ts +2 -0
- package/dist/functions/tuplet/index.js +218 -0
- package/dist/functions/up/index.d.ts +1 -0
- package/dist/functions/up/index.js +258 -182
- package/dist/functions/voice/index.js +203 -109
- package/dist/functions/volta/index.d.ts +2 -0
- package/dist/functions/volta/index.js +230 -0
- package/dist/iife/core.d.ts +1 -0
- package/dist/iife/core.js +3 -0
- package/dist/iife/from-midi.d.ts +1 -0
- package/dist/iife/from-midi.js +15 -0
- package/dist/iife/from-musicxml.d.ts +1 -0
- package/dist/iife/from-musicxml.js +3 -0
- package/dist/iife/full.d.ts +1 -0
- package/dist/iife/full.js +3 -0
- package/dist/index.d.ts +3 -17
- package/dist/index.js +3 -17
- package/dist/jpfun.core.min.js +153 -0
- package/dist/jpfun.from-midi.min.js +9 -0
- package/dist/jpfun.from-musicxml.min.js +12 -0
- package/dist/jpfun.min.js +166 -0
- package/dist/layout/default.js +2 -3
- package/dist/layout/engine.d.ts +6 -12
- package/dist/layout/engine.js +115 -64
- package/dist/layout/model.d.ts +12 -5
- package/dist/layout/model.js +31 -18
- package/dist/layout/page.js +5 -4
- package/dist/layout/path.d.ts +19 -0
- package/dist/layout/path.js +101 -0
- package/dist/layout/types.d.ts +71 -20
- package/dist/layout/types.js +3 -1
- package/dist/lowering/loweringContext.d.ts +20 -20
- package/dist/lowering/loweringContext.js +153 -101
- package/dist/lowering/track.d.ts +5 -9
- package/dist/lowering/track.js +7 -2
- package/dist/lowering/types.d.ts +26 -112
- package/dist/lowering/types.js +1 -92
- package/dist/parser/parse-utils/call-utils.d.ts +0 -2
- package/dist/parser/parse-utils/call-utils.js +0 -6
- package/dist/parser/parse-utils/note-utils.d.ts +8 -0
- package/dist/parser/parse-utils/note-utils.js +35 -13
- package/dist/parser/parse-utils/string-utils.d.ts +10 -0
- package/dist/parser/parse-utils/string-utils.js +24 -0
- package/dist/parser/parserContext.d.ts +11 -9
- package/dist/parser/parserContext.js +65 -55
- package/dist/parser/preprocess.js +17 -11
- package/dist/pipeline.d.ts +6 -5
- package/dist/pipeline.js +4 -5
- package/dist/playback/compile.d.ts +18 -0
- package/dist/playback/compile.js +414 -0
- package/dist/playback/event.d.ts +105 -0
- package/dist/playback/event.js +105 -0
- package/dist/playback/time.d.ts +14 -0
- package/dist/playback/time.js +81 -0
- package/dist/playback/types.d.ts +129 -0
- package/dist/playback/types.js +3 -0
- package/dist/render/canvas.d.ts +4 -4
- package/dist/render/canvas.js +20 -5
- package/dist/render/index.d.ts +1 -0
- package/dist/render/index.js +1 -0
- package/dist/render/paint.d.ts +8 -0
- package/dist/render/paint.js +101 -0
- package/dist/render/svg.d.ts +3 -3
- package/dist/render/svg.js +10 -8
- package/dist/render/text.d.ts +22 -0
- package/dist/render/text.js +42 -0
- package/dist/render/types.d.ts +1 -1
- package/grammar.md +132 -13
- package/package.json +19 -6
package/dist/layout/types.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Painter, TextMeasurer } from "../render/types.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { Track } from "../lowering/track.js";
|
|
3
|
+
import type { Fraction } from "../fraction.js";
|
|
4
|
+
import type { SourceSpan } from "../parser/types.js";
|
|
3
5
|
import type { HorizontalLayoutHook } from "./model.js";
|
|
6
|
+
import type { LoweringAttachment } from "../lowering/types.js";
|
|
4
7
|
/** 轴对齐矩形,是所有排版几何的公共部分 */
|
|
5
8
|
export interface Rect {
|
|
6
9
|
x: number;
|
|
@@ -8,6 +11,14 @@ export interface Rect {
|
|
|
8
11
|
w: number;
|
|
9
12
|
h: number;
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* 相对某条基线的纵向占用
|
|
16
|
+
* 约定 top <= 0 <= bottom
|
|
17
|
+
*/
|
|
18
|
+
export interface Extent {
|
|
19
|
+
top: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
}
|
|
11
22
|
/**
|
|
12
23
|
* 一个排版对象的完整矩形和两个对齐基准
|
|
13
24
|
*
|
|
@@ -31,8 +42,8 @@ export interface HorizontalSpringConfig {
|
|
|
31
42
|
beta_R?: number;
|
|
32
43
|
}
|
|
33
44
|
export interface TimeLineEvent {
|
|
34
|
-
t:
|
|
35
|
-
T:
|
|
45
|
+
t: Fraction;
|
|
46
|
+
T: Fraction;
|
|
36
47
|
track: Track;
|
|
37
48
|
}
|
|
38
49
|
/** 文档页面的固化尺寸,所有值均为 px */
|
|
@@ -59,9 +70,22 @@ export interface LayoutPrepareContext {
|
|
|
59
70
|
export interface AttachmentLayoutContext extends LayoutPrepareContext {
|
|
60
71
|
width: number;
|
|
61
72
|
originX: number;
|
|
73
|
+
pages: readonly Rect[];
|
|
74
|
+
lines: readonly Omit<HorizontalLineView, "registerHorizontalLayoutHook">[];
|
|
62
75
|
getVisualAxis(line: number, track: Track): number;
|
|
63
76
|
/** 只包含可见主体的轴局部占用(top 通常为负),不受 attachment 或最终分页坐标影响 */
|
|
64
77
|
getHostExtent(line: number, track: Track): Readonly<Extent> | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* 闭区间列 [from, to] 内按轨分组的已定占用
|
|
80
|
+
*
|
|
81
|
+
* 主体按时间列精确筛选;attachment 按这些列最终盒子的横向范围筛选。
|
|
82
|
+
* attachment 部分与 getAttachmentBox 同一条可见性规则:只看得见比自己先注册的,
|
|
83
|
+
* 也就是「后声明的排在外层」。避让型 attachment 用它把自己排到已有内容之外。
|
|
84
|
+
* 省略列号表示整行,供跨行 attachment 查询没有可见列的中间行。
|
|
85
|
+
*/
|
|
86
|
+
getRangeExtents(line: number, columns?: readonly [from: number, to: number]): ReadonlyMap<Track, Readonly<Extent>>;
|
|
87
|
+
/** 读取本轮已完成的 attachment 边界;分组在 endLoweringGroup 才注册,因而组内对象必然排在分组之前 */
|
|
88
|
+
getAttachmentBox(attachment: LayoutAttachment): Readonly<Rect>;
|
|
65
89
|
}
|
|
66
90
|
/**
|
|
67
91
|
* 装饰所依附的主体
|
|
@@ -76,13 +100,14 @@ export interface LayoutHost extends TimeLineEvent {
|
|
|
76
100
|
box: LayoutBox;
|
|
77
101
|
springConfig: HorizontalSpringConfig;
|
|
78
102
|
ports: Record<string, LayoutPoint>;
|
|
103
|
+
readonly mergeKey: number;
|
|
79
104
|
readonly layoutLine: number;
|
|
80
105
|
readonly ast: {
|
|
81
106
|
readonly size: number;
|
|
82
107
|
};
|
|
83
108
|
}
|
|
84
109
|
/**
|
|
85
|
-
*
|
|
110
|
+
* 一条谱面行的横向拓扑与求解扩展点
|
|
86
111
|
*
|
|
87
112
|
* 时间列拓扑不可改变,但其中的 host 仍可写;
|
|
88
113
|
* 调用方可以调整 springConfig,也可以注册在 LayoutElement 归一化后执行的横向布局
|
|
@@ -90,6 +115,8 @@ export interface LayoutHost extends TimeLineEvent {
|
|
|
90
115
|
export interface HorizontalLineView {
|
|
91
116
|
/** 谱面行号,与 host.layoutLine 同一坐标系 */
|
|
92
117
|
readonly index: number;
|
|
118
|
+
/** 本行按横向顺序排列的可见时间列 */
|
|
119
|
+
readonly columns: readonly (readonly LayoutHost[])[];
|
|
93
120
|
/** 同一 Track 上按时间列顺序排好的主体,相邻两项即视觉上的前后邻居 */
|
|
94
121
|
readonly trackRuns: ReadonlyMap<Track, readonly LayoutHost[]>;
|
|
95
122
|
/** 主体所在时间列下标;不在本行时返回 -1 */
|
|
@@ -167,22 +194,43 @@ export interface LayoutDecoration {
|
|
|
167
194
|
};
|
|
168
195
|
}
|
|
169
196
|
/**
|
|
170
|
-
*
|
|
197
|
+
* 一次 attachment 放置产生的完整几何
|
|
171
198
|
*
|
|
172
|
-
*
|
|
173
|
-
* 它们不进入时间列,只需要报出自己占住的矩形,外接盒与纵向占用都由引擎从中导出
|
|
199
|
+
* 每次 createGeometry 都必须返回一个新结果;首轮试测可能被丢弃,只有最终结果会 paint。
|
|
174
200
|
*/
|
|
175
|
-
export interface
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
|
|
201
|
+
export interface AttachmentGeometry {
|
|
202
|
+
/** 绘制与命中的真实边界;同时是外接盒和缺省的 Track 占用 */
|
|
203
|
+
readonly regions: readonly LayoutRegion[];
|
|
204
|
+
/** 可选的 Track 占用;缺省时直接使用 regions */
|
|
205
|
+
readonly occupancy?: readonly LayoutRegion[];
|
|
206
|
+
paint(painter: Painter): void;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* lowering 产生的无时间关系定义
|
|
210
|
+
*
|
|
211
|
+
* 实例只保存语义输入和一次横向准备状态,不保存最终 box、regions 或绘制几何。
|
|
212
|
+
*/
|
|
213
|
+
export interface LayoutAttachment extends LoweringAttachment {
|
|
214
|
+
/** 相对于 Temporal 主体的绘制层;background 比内容先绘制 */
|
|
215
|
+
readonly layer: "background" | "foreground";
|
|
216
|
+
/** 对应的源码范围;自动生成图形可覆盖其首末宿主的源码 */
|
|
217
|
+
readonly sourceSpan?: SourceSpan;
|
|
180
218
|
/**
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
219
|
+
* 横向求解前:可测量资源、调整弹簧参数或注册横向布局 hook,不得改变对象/列顺序
|
|
220
|
+
*
|
|
221
|
+
* 此时 box 的固有尺寸 w/h/anchor/visualAxis 已是终值,只有 x/y 未定
|
|
184
222
|
*/
|
|
185
|
-
|
|
223
|
+
prepareHorizontal?(lines: HorizontalLineView[], context: LayoutPrepareContext): void;
|
|
224
|
+
createGeometry(context: AttachmentLayoutContext): AttachmentGeometry;
|
|
225
|
+
}
|
|
226
|
+
export declare function isLayoutAttachment(attachment: LoweringAttachment): attachment is LayoutAttachment;
|
|
227
|
+
/** layoutDocument 输出的最终 attachment 快照 */
|
|
228
|
+
export interface PlacedAttachment {
|
|
229
|
+
readonly box: Readonly<Rect>;
|
|
230
|
+
readonly regions: readonly LayoutRegion[];
|
|
231
|
+
/** 相对于 Temporal 主体的绘制层;background 比内容先绘制 */
|
|
232
|
+
readonly layer: "background" | "foreground";
|
|
233
|
+
readonly sourceSpan?: SourceSpan;
|
|
186
234
|
paint(painter: Painter): void;
|
|
187
235
|
}
|
|
188
236
|
/**
|
|
@@ -191,7 +239,10 @@ export interface LayoutAttachment {
|
|
|
191
239
|
* 总是计入外接盒;同时声明 line 和 track 时,还会折算成该轨道的纵向占用
|
|
192
240
|
* 只想影响画布边界、不想撑高行的图形(括线、边框)省略归属即可
|
|
193
241
|
*/
|
|
194
|
-
export
|
|
195
|
-
line
|
|
196
|
-
track
|
|
197
|
-
}
|
|
242
|
+
export type LayoutRegion = Rect & ({
|
|
243
|
+
line: number;
|
|
244
|
+
track: Track;
|
|
245
|
+
} | {
|
|
246
|
+
line?: never;
|
|
247
|
+
track?: never;
|
|
248
|
+
});
|
package/dist/layout/types.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Diagnostic } from "../diagnostic.js";
|
|
2
|
+
import { Fraction } from "../fraction.js";
|
|
2
3
|
import { ASTFunctionClass, ASTNodeBase } from "../functions/ASTtypes.js";
|
|
3
|
-
import type {
|
|
4
|
-
import { TemporalNodeBase
|
|
4
|
+
import type { PageConfig } from "../layout/types.js";
|
|
5
|
+
import { TemporalNodeBase } from "../functions/temporal.js";
|
|
6
|
+
import type { LoweringGroup, LoweringAttachment, LoweringResult } from "./types.js";
|
|
5
7
|
import { Track } from "./track.js";
|
|
6
8
|
/**
|
|
7
9
|
* 把 AST 展开并固化为时间列、attachment 和页面配置
|
|
@@ -15,7 +17,7 @@ import { Track } from "./track.js";
|
|
|
15
17
|
* 大多数 AST 函数通过以下入口参与 lowering(按时间顺序):
|
|
16
18
|
* - [hook] loweringEnter/loweringExit:进入或离开节点时生成 TemporalNode、管理作用域
|
|
17
19
|
* - [API] LoweringContext.beginLoweringGroup/endLoweringGroup:通常在 enter/exit 中被调用,以栈方式观察当前子树产生的 TemporalNode 和 attachment
|
|
18
|
-
* - [API] LoweringContext.
|
|
20
|
+
* - [API] LoweringContext.addAttachment:注册不推进时间的附属对象;当前外层分组会收到该对象
|
|
19
21
|
* - [config] timeFlowModel:声明子节点按 sequence 或 parallel 推进时间;parallel 还要声明音轨复用键与纵向排列策略
|
|
20
22
|
* - [hook] Temporal.onTimeState:锚点归并后固化调性、速度等状态
|
|
21
23
|
* - [hook] loweringAugment:最终列和 layoutLine 固化后扫描结果并生成要追加的 attachment
|
|
@@ -25,7 +27,8 @@ export declare class LoweringContext {
|
|
|
25
27
|
private loweringAugmenters;
|
|
26
28
|
private loweringFinalizers;
|
|
27
29
|
private cnt;
|
|
28
|
-
|
|
30
|
+
private usedTracks;
|
|
31
|
+
/** 不推进时间的附属对象 */
|
|
29
32
|
private attachments;
|
|
30
33
|
/** 当前完整文档的页面配置 */
|
|
31
34
|
private page?;
|
|
@@ -66,20 +69,15 @@ export declare class LoweringContext {
|
|
|
66
69
|
* 结束最近的分组并注册其辅助排版对象
|
|
67
70
|
* 嵌套分组按退出顺序注册,因此天然是由内向外计算边界
|
|
68
71
|
*/
|
|
69
|
-
endLoweringGroup(owner: ASTNodeBase):
|
|
72
|
+
endLoweringGroup(owner: ASTNodeBase): LoweringGroup;
|
|
70
73
|
/** 先统一生成派生 attachment,再按注册顺序执行最终处理 */
|
|
71
74
|
private postprocessResult;
|
|
72
75
|
/**
|
|
73
76
|
* 注册不推进时间的排版对象
|
|
74
77
|
* 被 tie、beam、box 等函数使用
|
|
75
78
|
*/
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* 查询 AST 节点在当前 lowering 中产生的所有 temporal 节点
|
|
79
|
-
*
|
|
80
|
-
* 被折叠进别人盒子的成员没有独立的全局位置,统一上溯到宿主,
|
|
81
|
-
* 所以写在成员上的标签等价于写在整个复合节点上。
|
|
82
|
-
*/
|
|
79
|
+
addAttachment(attachment: LoweringAttachment): void;
|
|
80
|
+
/** 查询 AST 自己产生的 temporal;是否沿 foldedInto 投影由调用者决定 */
|
|
83
81
|
getTemporalNodes(ast: ASTNodeBase): readonly TemporalNodeBase[];
|
|
84
82
|
/**
|
|
85
83
|
* 展开内容,但外层分组看不见它们
|
|
@@ -95,14 +93,14 @@ export declare class LoweringContext {
|
|
|
95
93
|
private initEvent;
|
|
96
94
|
/**
|
|
97
95
|
* 递归展开一棵子树,得到它的时间列与结束时间
|
|
98
|
-
* @param timeOffset 当前节点的时间偏移量(单位QN)
|
|
96
|
+
* @param timeOffset 当前节点的时间偏移量(单位QN) 由父节点传入,会被原地修改
|
|
99
97
|
* @param track 当前所在的纵向音轨
|
|
100
98
|
*/
|
|
101
|
-
trackedEvents(node: ASTNodeBase, timeOffset:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
trackedEvents(node: ASTNodeBase, timeOffset: Fraction, track: Track): TimeColumn[];
|
|
100
|
+
/**
|
|
101
|
+
* 将 hook 返回的事件规范化、加入索引与分组,再追加到时间列
|
|
102
|
+
* 原地修改 timeOffset
|
|
103
|
+
*/
|
|
106
104
|
private appendEvents;
|
|
107
105
|
/** 记录 AST->TemporalNode 的映射 */
|
|
108
106
|
private indexTemporal;
|
|
@@ -114,10 +112,12 @@ export declare class LoweringContext {
|
|
|
114
112
|
static anchorAlign(tracks: TimeColumn[][]): TimeColumn[];
|
|
115
113
|
}
|
|
116
114
|
declare class TimeColumn extends Array<TemporalNodeBase> {
|
|
115
|
+
static get [Symbol.species](): ArrayConstructor;
|
|
117
116
|
readonly mergeKey: number;
|
|
118
117
|
constructor(n: TemporalNodeBase);
|
|
119
|
-
get t():
|
|
120
|
-
set t(value:
|
|
118
|
+
get t(): Fraction;
|
|
119
|
+
set t(value: Fraction);
|
|
120
|
+
shiftTime(offset: Fraction): void;
|
|
121
121
|
/** 将当前列所有事件的行号固化为 lowering 后的实际行号 */
|
|
122
122
|
set layoutLine(value: number);
|
|
123
123
|
}
|