@opendaw/lib-dawproject 0.0.2 → 0.0.4
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/dist/index.d.ts +27 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +105 -124
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
@@ -22,8 +22,24 @@ export declare enum Interpolation {
|
|
22
22
|
HOLD = "hold",
|
23
23
|
LINEAR = "linear"
|
24
24
|
}
|
25
|
+
export declare enum TimeUnit {
|
26
|
+
BEATS = "beats",
|
27
|
+
SECONDS = "seconds"
|
28
|
+
}
|
25
29
|
export declare class MetaDataSchema {
|
26
|
-
readonly
|
30
|
+
readonly title?: string;
|
31
|
+
readonly artist?: string;
|
32
|
+
readonly album?: string;
|
33
|
+
readonly originalArtist?: string;
|
34
|
+
readonly composer?: string;
|
35
|
+
readonly songwriter?: string;
|
36
|
+
readonly producer?: string;
|
37
|
+
readonly arranger?: string;
|
38
|
+
readonly year?: string;
|
39
|
+
readonly genre?: string;
|
40
|
+
readonly copyright?: string;
|
41
|
+
readonly website?: string;
|
42
|
+
readonly comment?: string;
|
27
43
|
}
|
28
44
|
export declare class ApplicationSchema {
|
29
45
|
readonly name: string;
|
@@ -41,7 +57,7 @@ export declare class RealParameterSchema {
|
|
41
57
|
readonly max?: number;
|
42
58
|
}
|
43
59
|
export declare class TimeSignatureParameterSchema {
|
44
|
-
readonly
|
60
|
+
readonly numerator?: number;
|
45
61
|
readonly denominator?: number;
|
46
62
|
}
|
47
63
|
export declare class ParameterSchema implements Referenceable {
|
@@ -135,6 +151,7 @@ export declare class ClipSchema implements Nameable {
|
|
135
151
|
readonly fadeInTime?: number;
|
136
152
|
readonly fadeOutTime?: number;
|
137
153
|
readonly enable?: boolean;
|
154
|
+
readonly content?: TimelineSchema;
|
138
155
|
readonly reference?: string;
|
139
156
|
}
|
140
157
|
export declare class ClipsSchema extends TimelineSchema {
|
@@ -192,43 +209,26 @@ export declare class PointSchema {
|
|
192
209
|
readonly value?: any;
|
193
210
|
readonly interpolation?: Interpolation;
|
194
211
|
}
|
212
|
+
export declare class RealPointSchema extends PointSchema {
|
213
|
+
}
|
195
214
|
export declare class PointsSchema extends TimelineSchema {
|
196
215
|
readonly target?: AutomationTargetSchema;
|
197
216
|
readonly points?: ReadonlyArray<PointSchema>;
|
198
217
|
readonly unit?: Unit;
|
199
218
|
}
|
200
|
-
export declare class LanesSchema
|
201
|
-
readonly
|
202
|
-
readonly timelines?: ReadonlyArray<TimelineSchema>;
|
203
|
-
readonly subLanes?: LanesSchema[];
|
204
|
-
readonly notes?: NotesSchema[];
|
205
|
-
readonly clips?: ClipsSchema[];
|
206
|
-
readonly clipSlots?: ClipSlotSchema[];
|
207
|
-
readonly markerTracks?: MarkersSchema[];
|
208
|
-
readonly warps?: WarpsSchema[];
|
209
|
-
readonly audio?: AudioSchema[];
|
210
|
-
readonly video?: VideoSchema[];
|
211
|
-
readonly automation?: PointsSchema[];
|
219
|
+
export declare class LanesSchema extends TimelineSchema {
|
220
|
+
readonly lanes?: ReadonlyArray<TimelineSchema>;
|
212
221
|
}
|
213
222
|
export declare class ArrangementSchema implements Referenceable {
|
214
223
|
readonly id?: string;
|
215
|
-
readonly lanes?: LanesSchema;
|
216
|
-
readonly markers?: MarkerSchema[];
|
217
|
-
readonly tempoAutomation?: PointsSchema;
|
218
224
|
readonly timeSignatureAutomation?: PointsSchema;
|
225
|
+
readonly tempoAutomation?: PointsSchema;
|
226
|
+
readonly markers?: MarkerSchema;
|
227
|
+
readonly lanes?: LanesSchema;
|
219
228
|
}
|
220
229
|
export declare class SceneSchema implements Referenceable {
|
221
230
|
readonly id?: string;
|
222
|
-
readonly
|
223
|
-
readonly lanes?: LanesSchema;
|
224
|
-
readonly notes?: NotesSchema;
|
225
|
-
readonly clips?: ClipsSchema;
|
226
|
-
readonly clipSlot?: ClipSlotSchema;
|
227
|
-
readonly markers?: MarkersSchema;
|
228
|
-
readonly warps?: WarpsSchema;
|
229
|
-
readonly audio?: AudioSchema;
|
230
|
-
readonly video?: VideoSchema;
|
231
|
-
readonly points?: PointsSchema;
|
231
|
+
readonly content?: TimelineSchema;
|
232
232
|
}
|
233
233
|
export declare class ProjectSchema {
|
234
234
|
readonly version: "1.0";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AAIzC,UAAU,QAAQ;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,aAAc,SAAQ,QAAQ;IACpC,EAAE,CAAC,EAAE,MAAM,CAAA;CACd;AAED,oBAAY,IAAI;IACZ,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,GAAG,QAAQ;CACd;AAED,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;CACpB;AAED,oBAAY,QAAQ;IAChB,KAAK,UAAU;IACf,OAAO,YAAY;CACtB;AAED,qBACa,cAAc;IACO,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAA;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MA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C,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAG/B,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAC/B;AAED,qBACa,WAAY,YAAW,aAAa;IAE7C,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IAGpB,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CACpC;AAED,qBACa,aAAa;IAEtB,QAAQ,CAAC,OAAO,EAAG,KAAK,CAAA;IAGxB,QAAQ,CAAC,WAAW,EAAG,iBAAiB,CAAA;IAGxC,QAAQ,CAAC,SAAS,CAAC,EAAE,eAAe,CAAA;IAGpC,QAAQ,CAAC,SAAS,EAAG,aAAa,CAAC,UAAU,CAAC,CAAA;IAG9C,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAGxC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;CAC/C"}
|
package/dist/index.js
CHANGED
@@ -26,13 +26,78 @@ export var Interpolation;
|
|
26
26
|
Interpolation["HOLD"] = "hold";
|
27
27
|
Interpolation["LINEAR"] = "linear";
|
28
28
|
})(Interpolation || (Interpolation = {}));
|
29
|
+
export var TimeUnit;
|
30
|
+
(function (TimeUnit) {
|
31
|
+
TimeUnit["BEATS"] = "beats";
|
32
|
+
TimeUnit["SECONDS"] = "seconds";
|
33
|
+
})(TimeUnit || (TimeUnit = {}));
|
29
34
|
let MetaDataSchema = class MetaDataSchema {
|
30
|
-
|
35
|
+
title;
|
36
|
+
artist;
|
37
|
+
album;
|
38
|
+
originalArtist;
|
39
|
+
composer;
|
40
|
+
songwriter;
|
41
|
+
producer;
|
42
|
+
arranger;
|
43
|
+
year;
|
44
|
+
genre;
|
45
|
+
copyright;
|
46
|
+
website;
|
47
|
+
comment;
|
31
48
|
};
|
32
49
|
__decorate([
|
33
|
-
Xml.
|
50
|
+
Xml.Element("Title", String),
|
51
|
+
__metadata("design:type", String)
|
52
|
+
], MetaDataSchema.prototype, "title", void 0);
|
53
|
+
__decorate([
|
54
|
+
Xml.Element("Artist", String),
|
55
|
+
__metadata("design:type", String)
|
56
|
+
], MetaDataSchema.prototype, "artist", void 0);
|
57
|
+
__decorate([
|
58
|
+
Xml.Element("Album", String),
|
59
|
+
__metadata("design:type", String)
|
60
|
+
], MetaDataSchema.prototype, "album", void 0);
|
61
|
+
__decorate([
|
62
|
+
Xml.Element("OriginalArtist", String),
|
63
|
+
__metadata("design:type", String)
|
64
|
+
], MetaDataSchema.prototype, "originalArtist", void 0);
|
65
|
+
__decorate([
|
66
|
+
Xml.Element("Composer", String),
|
67
|
+
__metadata("design:type", String)
|
68
|
+
], MetaDataSchema.prototype, "composer", void 0);
|
69
|
+
__decorate([
|
70
|
+
Xml.Element("Songwriter", String),
|
71
|
+
__metadata("design:type", String)
|
72
|
+
], MetaDataSchema.prototype, "songwriter", void 0);
|
73
|
+
__decorate([
|
74
|
+
Xml.Element("Producer", String),
|
75
|
+
__metadata("design:type", String)
|
76
|
+
], MetaDataSchema.prototype, "producer", void 0);
|
77
|
+
__decorate([
|
78
|
+
Xml.Element("Arranger", String),
|
79
|
+
__metadata("design:type", String)
|
80
|
+
], MetaDataSchema.prototype, "arranger", void 0);
|
81
|
+
__decorate([
|
82
|
+
Xml.Element("Year", String),
|
83
|
+
__metadata("design:type", String)
|
84
|
+
], MetaDataSchema.prototype, "year", void 0);
|
85
|
+
__decorate([
|
86
|
+
Xml.Element("Genre", String),
|
87
|
+
__metadata("design:type", String)
|
88
|
+
], MetaDataSchema.prototype, "genre", void 0);
|
89
|
+
__decorate([
|
90
|
+
Xml.Element("Copyright", String),
|
91
|
+
__metadata("design:type", String)
|
92
|
+
], MetaDataSchema.prototype, "copyright", void 0);
|
93
|
+
__decorate([
|
94
|
+
Xml.Element("Website", String),
|
34
95
|
__metadata("design:type", String)
|
35
|
-
], MetaDataSchema.prototype, "
|
96
|
+
], MetaDataSchema.prototype, "website", void 0);
|
97
|
+
__decorate([
|
98
|
+
Xml.Element("Comment", String),
|
99
|
+
__metadata("design:type", String)
|
100
|
+
], MetaDataSchema.prototype, "comment", void 0);
|
36
101
|
MetaDataSchema = __decorate([
|
37
102
|
Xml.Class("MetaData")
|
38
103
|
], MetaDataSchema);
|
@@ -101,13 +166,13 @@ RealParameterSchema = __decorate([
|
|
101
166
|
], RealParameterSchema);
|
102
167
|
export { RealParameterSchema };
|
103
168
|
let TimeSignatureParameterSchema = class TimeSignatureParameterSchema {
|
104
|
-
|
169
|
+
numerator;
|
105
170
|
denominator;
|
106
171
|
};
|
107
172
|
__decorate([
|
108
|
-
Xml.Attribute("
|
173
|
+
Xml.Attribute("numerator", Xml.NumberOptional),
|
109
174
|
__metadata("design:type", Number)
|
110
|
-
], TimeSignatureParameterSchema.prototype, "
|
175
|
+
], TimeSignatureParameterSchema.prototype, "numerator", void 0);
|
111
176
|
__decorate([
|
112
177
|
Xml.Attribute("denominator", Xml.NumberOptional),
|
113
178
|
__metadata("design:type", Number)
|
@@ -463,6 +528,7 @@ let ClipSchema = class ClipSchema {
|
|
463
528
|
fadeInTime;
|
464
529
|
fadeOutTime;
|
465
530
|
enable;
|
531
|
+
content;
|
466
532
|
reference;
|
467
533
|
};
|
468
534
|
__decorate([
|
@@ -521,6 +587,10 @@ __decorate([
|
|
521
587
|
Xml.Attribute("enable", Xml.BoolOptional),
|
522
588
|
__metadata("design:type", Boolean)
|
523
589
|
], ClipSchema.prototype, "enable", void 0);
|
590
|
+
__decorate([
|
591
|
+
Xml.ElementRef(TimelineSchema),
|
592
|
+
__metadata("design:type", TimelineSchema)
|
593
|
+
], ClipSchema.prototype, "content", void 0);
|
524
594
|
__decorate([
|
525
595
|
Xml.Attribute("reference"),
|
526
596
|
__metadata("design:type", String)
|
@@ -732,7 +802,7 @@ __decorate([
|
|
732
802
|
__metadata("design:type", Number)
|
733
803
|
], AutomationTargetSchema.prototype, "controller", void 0);
|
734
804
|
AutomationTargetSchema = __decorate([
|
735
|
-
Xml.Class("
|
805
|
+
Xml.Class("Target")
|
736
806
|
], AutomationTargetSchema);
|
737
807
|
export { AutomationTargetSchema };
|
738
808
|
let PointSchema = class PointSchema {
|
@@ -756,6 +826,12 @@ PointSchema = __decorate([
|
|
756
826
|
Xml.Class("Point")
|
757
827
|
], PointSchema);
|
758
828
|
export { PointSchema };
|
829
|
+
let RealPointSchema = class RealPointSchema extends PointSchema {
|
830
|
+
};
|
831
|
+
RealPointSchema = __decorate([
|
832
|
+
Xml.Class("RealPoint")
|
833
|
+
], RealPointSchema);
|
834
|
+
export { RealPointSchema };
|
759
835
|
let PointsSchema = class PointsSchema extends TimelineSchema {
|
760
836
|
target;
|
761
837
|
points;
|
@@ -777,155 +853,60 @@ PointsSchema = __decorate([
|
|
777
853
|
Xml.Class("Points")
|
778
854
|
], PointsSchema);
|
779
855
|
export { PointsSchema };
|
780
|
-
let LanesSchema = class LanesSchema {
|
781
|
-
|
782
|
-
timelines;
|
783
|
-
subLanes;
|
784
|
-
notes;
|
785
|
-
clips;
|
786
|
-
clipSlots;
|
787
|
-
markerTracks;
|
788
|
-
warps;
|
789
|
-
audio;
|
790
|
-
video;
|
791
|
-
automation;
|
856
|
+
let LanesSchema = class LanesSchema extends TimelineSchema {
|
857
|
+
lanes;
|
792
858
|
};
|
793
859
|
__decorate([
|
794
|
-
Xml.
|
795
|
-
__metadata("design:type", String)
|
796
|
-
], LanesSchema.prototype, "id", void 0);
|
797
|
-
__decorate([
|
798
|
-
Xml.Element("Timeline", Array),
|
799
|
-
__metadata("design:type", Array)
|
800
|
-
], LanesSchema.prototype, "timelines", void 0);
|
801
|
-
__decorate([
|
802
|
-
Xml.Element("Lanes", Array),
|
803
|
-
__metadata("design:type", Array)
|
804
|
-
], LanesSchema.prototype, "subLanes", void 0);
|
805
|
-
__decorate([
|
806
|
-
Xml.Element("Notes", Array),
|
807
|
-
__metadata("design:type", Array)
|
808
|
-
], LanesSchema.prototype, "notes", void 0);
|
809
|
-
__decorate([
|
810
|
-
Xml.Element("Clips", Array),
|
811
|
-
__metadata("design:type", Array)
|
812
|
-
], LanesSchema.prototype, "clips", void 0);
|
813
|
-
__decorate([
|
814
|
-
Xml.Element("ClipSlot", Array),
|
860
|
+
Xml.ElementRef(TimelineSchema),
|
815
861
|
__metadata("design:type", Array)
|
816
|
-
], LanesSchema.prototype, "
|
817
|
-
__decorate([
|
818
|
-
Xml.Element("markers", Array),
|
819
|
-
__metadata("design:type", Array)
|
820
|
-
], LanesSchema.prototype, "markerTracks", void 0);
|
821
|
-
__decorate([
|
822
|
-
Xml.Element("Warps", Array),
|
823
|
-
__metadata("design:type", Array)
|
824
|
-
], LanesSchema.prototype, "warps", void 0);
|
825
|
-
__decorate([
|
826
|
-
Xml.Element("Audio", Array),
|
827
|
-
__metadata("design:type", Array)
|
828
|
-
], LanesSchema.prototype, "audio", void 0);
|
829
|
-
__decorate([
|
830
|
-
Xml.Element("Video", Array),
|
831
|
-
__metadata("design:type", Array)
|
832
|
-
], LanesSchema.prototype, "video", void 0);
|
833
|
-
__decorate([
|
834
|
-
Xml.Element("Points", Array),
|
835
|
-
__metadata("design:type", Array)
|
836
|
-
], LanesSchema.prototype, "automation", void 0);
|
862
|
+
], LanesSchema.prototype, "lanes", void 0);
|
837
863
|
LanesSchema = __decorate([
|
838
864
|
Xml.Class("Lanes")
|
839
865
|
], LanesSchema);
|
840
866
|
export { LanesSchema };
|
841
867
|
let ArrangementSchema = class ArrangementSchema {
|
842
868
|
id;
|
843
|
-
lanes;
|
844
|
-
markers;
|
845
|
-
tempoAutomation;
|
846
869
|
timeSignatureAutomation;
|
870
|
+
tempoAutomation;
|
871
|
+
markers;
|
872
|
+
lanes;
|
847
873
|
};
|
848
874
|
__decorate([
|
849
875
|
Xml.Attribute("id"),
|
850
876
|
__metadata("design:type", String)
|
851
877
|
], ArrangementSchema.prototype, "id", void 0);
|
852
878
|
__decorate([
|
853
|
-
Xml.Element("
|
854
|
-
__metadata("design:type",
|
855
|
-
], ArrangementSchema.prototype, "
|
856
|
-
__decorate([
|
857
|
-
Xml.Element("Markers", Array),
|
858
|
-
__metadata("design:type", Array)
|
859
|
-
], ArrangementSchema.prototype, "markers", void 0);
|
879
|
+
Xml.Element("TimeSignatureAutomation", PointsSchema),
|
880
|
+
__metadata("design:type", PointsSchema)
|
881
|
+
], ArrangementSchema.prototype, "timeSignatureAutomation", void 0);
|
860
882
|
__decorate([
|
861
883
|
Xml.Element("TempoAutomation", PointsSchema),
|
862
884
|
__metadata("design:type", PointsSchema)
|
863
885
|
], ArrangementSchema.prototype, "tempoAutomation", void 0);
|
864
886
|
__decorate([
|
865
|
-
Xml.Element("
|
866
|
-
__metadata("design:type",
|
867
|
-
], ArrangementSchema.prototype, "
|
887
|
+
Xml.Element("Markers", MarkersSchema),
|
888
|
+
__metadata("design:type", MarkerSchema)
|
889
|
+
], ArrangementSchema.prototype, "markers", void 0);
|
890
|
+
__decorate([
|
891
|
+
Xml.Element("Lanes", LanesSchema),
|
892
|
+
__metadata("design:type", LanesSchema)
|
893
|
+
], ArrangementSchema.prototype, "lanes", void 0);
|
868
894
|
ArrangementSchema = __decorate([
|
869
895
|
Xml.Class("Arrangement")
|
870
896
|
], ArrangementSchema);
|
871
897
|
export { ArrangementSchema };
|
872
898
|
let SceneSchema = class SceneSchema {
|
873
899
|
id;
|
874
|
-
|
875
|
-
lanes;
|
876
|
-
notes;
|
877
|
-
clips;
|
878
|
-
clipSlot;
|
879
|
-
markers;
|
880
|
-
warps;
|
881
|
-
audio;
|
882
|
-
video;
|
883
|
-
points;
|
900
|
+
content;
|
884
901
|
};
|
885
902
|
__decorate([
|
886
903
|
Xml.Attribute("id"),
|
887
904
|
__metadata("design:type", String)
|
888
905
|
], SceneSchema.prototype, "id", void 0);
|
889
906
|
__decorate([
|
890
|
-
Xml.
|
907
|
+
Xml.ElementRef(TimelineSchema),
|
891
908
|
__metadata("design:type", TimelineSchema)
|
892
|
-
], SceneSchema.prototype, "
|
893
|
-
__decorate([
|
894
|
-
Xml.Element("Lanes", LanesSchema),
|
895
|
-
__metadata("design:type", LanesSchema)
|
896
|
-
], SceneSchema.prototype, "lanes", void 0);
|
897
|
-
__decorate([
|
898
|
-
Xml.Element("Notes", NotesSchema),
|
899
|
-
__metadata("design:type", NotesSchema)
|
900
|
-
], SceneSchema.prototype, "notes", void 0);
|
901
|
-
__decorate([
|
902
|
-
Xml.Element("Clips", ClipsSchema),
|
903
|
-
__metadata("design:type", ClipsSchema)
|
904
|
-
], SceneSchema.prototype, "clips", void 0);
|
905
|
-
__decorate([
|
906
|
-
Xml.Element("ClipSlot", ClipSlotSchema),
|
907
|
-
__metadata("design:type", ClipSlotSchema)
|
908
|
-
], SceneSchema.prototype, "clipSlot", void 0);
|
909
|
-
__decorate([
|
910
|
-
Xml.Element("markers", MarkersSchema),
|
911
|
-
__metadata("design:type", MarkersSchema)
|
912
|
-
], SceneSchema.prototype, "markers", void 0);
|
913
|
-
__decorate([
|
914
|
-
Xml.Element("Warps", WarpsSchema),
|
915
|
-
__metadata("design:type", WarpsSchema)
|
916
|
-
], SceneSchema.prototype, "warps", void 0);
|
917
|
-
__decorate([
|
918
|
-
Xml.Element("Audio", AudioSchema),
|
919
|
-
__metadata("design:type", AudioSchema)
|
920
|
-
], SceneSchema.prototype, "audio", void 0);
|
921
|
-
__decorate([
|
922
|
-
Xml.Element("Video", VideoSchema),
|
923
|
-
__metadata("design:type", VideoSchema)
|
924
|
-
], SceneSchema.prototype, "video", void 0);
|
925
|
-
__decorate([
|
926
|
-
Xml.Element("Points", PointsSchema),
|
927
|
-
__metadata("design:type", PointsSchema)
|
928
|
-
], SceneSchema.prototype, "points", void 0);
|
909
|
+
], SceneSchema.prototype, "content", void 0);
|
929
910
|
SceneSchema = __decorate([
|
930
911
|
Xml.Class("Scene")
|
931
912
|
], SceneSchema);
|
@@ -951,7 +932,7 @@ __decorate([
|
|
951
932
|
__metadata("design:type", TransportSchema)
|
952
933
|
], ProjectSchema.prototype, "transport", void 0);
|
953
934
|
__decorate([
|
954
|
-
Xml.
|
935
|
+
Xml.ElementRef(LaneSchema, "Structure"),
|
955
936
|
__metadata("design:type", Array)
|
956
937
|
], ProjectSchema.prototype, "structure", void 0);
|
957
938
|
__decorate([
|
@@ -959,7 +940,7 @@ __decorate([
|
|
959
940
|
__metadata("design:type", ArrangementSchema)
|
960
941
|
], ProjectSchema.prototype, "arrangement", void 0);
|
961
942
|
__decorate([
|
962
|
-
Xml.
|
943
|
+
Xml.ElementRef(SceneSchema, "Scenes"),
|
963
944
|
__metadata("design:type", Array)
|
964
945
|
], ProjectSchema.prototype, "scenes", void 0);
|
965
946
|
ProjectSchema = __decorate([
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opendaw/lib-dawproject",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.4",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"license": "LGPL-3.0-or-later",
|
@@ -22,12 +22,12 @@
|
|
22
22
|
"test": "vitest run"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@opendaw/lib-xml": "^0.0.
|
25
|
+
"@opendaw/lib-xml": "^0.0.4"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
|
-
"@opendaw/eslint-config": "^0.0.
|
29
|
-
"@opendaw/typescript-config": "^0.0.
|
28
|
+
"@opendaw/eslint-config": "^0.0.18",
|
29
|
+
"@opendaw/typescript-config": "^0.0.18",
|
30
30
|
"jsdom": "^26.1.0"
|
31
31
|
},
|
32
|
-
"gitHead": "
|
32
|
+
"gitHead": "c5a09134e8559ca6d8b2f7f45f6b6a409466c51b"
|
33
33
|
}
|