umwelt-js 0.1.1 → 0.2.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/dist/index.d.ts +6 -3
- package/dist/index.js +1177 -982
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -36,10 +36,12 @@ interface ExportableUmweltNameDataSource {
|
|
|
36
36
|
type ExportableUmweltDataSource = ExportableUmweltValuesDataSource | ExportableUmweltURLDataSource | ExportableUmweltNameDataSource;
|
|
37
37
|
type UmweltPredicate = LogicalComposition<FieldPredicate>;
|
|
38
38
|
declare const visualPropNames: readonly ["x", "y", "color", "shape", "size", "opacity", "order", "facet"];
|
|
39
|
-
declare const audioPropNames: readonly ["pitch", "duration", "volume"];
|
|
39
|
+
declare const audioPropNames: readonly ["pitch", "duration", "volume", "pan"];
|
|
40
40
|
type VisualPropName = (typeof visualPropNames)[number];
|
|
41
41
|
type AudioPropName = (typeof audioPropNames)[number];
|
|
42
42
|
type EncodingPropName = VisualPropName | AudioPropName;
|
|
43
|
+
declare const instrumentNames: readonly ["pure", "bright", "hollow", "bell", "reed", "strings"];
|
|
44
|
+
type InstrumentName = (typeof instrumentNames)[number];
|
|
43
45
|
declare const NONE = "None";
|
|
44
46
|
type FieldName = string;
|
|
45
47
|
interface EncodingRef {
|
|
@@ -101,6 +103,7 @@ type AudioEncoding = {
|
|
|
101
103
|
type AudioTraversal = AudioTraversalFieldDef[];
|
|
102
104
|
type AudioUnitSpec = {
|
|
103
105
|
name: string;
|
|
106
|
+
instrument?: InstrumentName;
|
|
104
107
|
encoding: AudioEncoding;
|
|
105
108
|
traversal: AudioTraversal;
|
|
106
109
|
};
|
|
@@ -162,8 +165,8 @@ interface ExportableTextSpec {
|
|
|
162
165
|
interface ExportableSpec extends Omit<UmweltSpec, 'fields' | 'data' | 'visual' | 'audio' | 'text'> {
|
|
163
166
|
data: ExportableUmweltDataSource;
|
|
164
167
|
fields: ExportableFieldDef[];
|
|
165
|
-
visual: ExportableVisualSpec;
|
|
166
|
-
audio: ExportableAudioSpec;
|
|
168
|
+
visual: ExportableVisualSpec | VisualUnitSpec;
|
|
169
|
+
audio: ExportableAudioSpec | AudioUnitSpec;
|
|
167
170
|
text?: ExportableTextSpec;
|
|
168
171
|
}
|
|
169
172
|
|