umwelt-js 0.1.0 → 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.css +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +1220 -1009
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
body{margin:0}._App_1uzho_5{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:row;height:100vh;overflow:hidden}._App_1uzho_5 ._column_1uzho_14{flex:1;min-width:0;padding:1em;height:100%;overflow-y:auto;box-sizing:border-box}._App_1uzho_5 h1{margin-top:0}._App_1uzho_5 code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}._Editor_1uzho_29,._Viewer_1uzho_29{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._Editor_1uzho_29 h1,._Viewer_1uzho_29 h1{margin-top:0}._Editor_1uzho_29 h2,._Editor_1uzho_29 h3,._Editor_1uzho_29 h4,._Editor_1uzho_29 h5,._Viewer_1uzho_29 h2,._Viewer_1uzho_29 h3,._Viewer_1uzho_29 h4,._Viewer_1uzho_29 h5{margin-bottom:.5em}._Editor_1uzho_29 h3,._Viewer_1uzho_29 h3{margin-top:1.5em}._Editor_1uzho_29 table,._Viewer_1uzho_29 table{display:block;width:100%;max-height:200px;overflow:auto}._Editor_1uzho_29 td,._Editor_1uzho_29 th,._Viewer_1uzho_29 td,._Viewer_1uzho_29 th{text-align:left;padding-right:5px}._Editor_1uzho_29 details>summary,._Viewer_1uzho_29 details>summary{cursor:pointer}._Editor_1uzho_29 input[type=checkbox],._Editor_1uzho_29 input[type=radio],._Viewer_1uzho_29 input[type=checkbox],._Viewer_1uzho_29 input[type=radio]{margin:0 .5em 0 0;position:relative;top:1px}._Editor_1uzho_29 ol,._Viewer_1uzho_29 ol{list-style:decimal;padding-left:1.2em}
|
|
1
|
+
body{margin:0}._App_1uzho_5{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:flex;flex-direction:row;height:100vh;overflow:hidden}._App_1uzho_5 ._column_1uzho_14{flex:1;min-width:0;padding:1em;height:100%;overflow-y:auto;box-sizing:border-box}._App_1uzho_5 h1{margin-top:0}._App_1uzho_5 code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}._Editor_1uzho_29,._Viewer_1uzho_29{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._Editor_1uzho_29 h1,._Viewer_1uzho_29 h1{margin-top:0}._Editor_1uzho_29 h2,._Editor_1uzho_29 h3,._Editor_1uzho_29 h4,._Editor_1uzho_29 h5,._Viewer_1uzho_29 h2,._Viewer_1uzho_29 h3,._Viewer_1uzho_29 h4,._Viewer_1uzho_29 h5{margin-bottom:.5em}._Editor_1uzho_29 h3,._Viewer_1uzho_29 h3{margin-top:1.5em}._Editor_1uzho_29 table,._Viewer_1uzho_29 table{display:block;width:100%;max-height:200px;overflow:auto}._Editor_1uzho_29 td,._Editor_1uzho_29 th,._Viewer_1uzho_29 td,._Viewer_1uzho_29 th{text-align:left;padding-right:5px}._Editor_1uzho_29 details>summary,._Viewer_1uzho_29 details>summary{cursor:pointer}._Editor_1uzho_29 input[type=checkbox],._Editor_1uzho_29 input[type=radio],._Viewer_1uzho_29 input[type=checkbox],._Viewer_1uzho_29 input[type=radio]{margin:0 .5em 0 0;position:relative;top:1px}._Editor_1uzho_29 ol,._Viewer_1uzho_29 ol{list-style:decimal;padding-left:1.2em}.olli-vis{--olli-focus-bg: #eee;--olli-hover-bg: #ddd;--olli-indent: 1.5em;--olli-virtual-style: italic}.olli-vis *{all:revert}.olli-vis.olli-tree,.olli-vis .olli-tree-group{list-style:none;margin:0;padding:0}.olli-vis .olli-tree-group{padding-left:var(--olli-indent)}.olli-vis .olli-tree-item{outline:none;padding:2px 4px}.olli-vis .olli-tree-item[aria-expanded=false]>.olli-tree-group{display:none}.olli-vis .olli-node-label{padding:0 2px;border-radius:2px}.olli-vis .olli-node-label:hover,.olli-vis .olli-tree-item.olli-focused>.olli-node-label:hover{background:var(--olli-hover-bg)}.olli-vis .olli-tree-item.olli-focused>.olli-node-label{background:var(--olli-focus-bg)}.olli-vis .olli-tree-item.olli-virtual>.olli-node-label{font-style:var(--olli-virtual-style)}.olli-vis .olli-node-label code,.olli-vis .olli-description-preview code{font-family:monospace;background:var(--olli-code-bg, rgba(0, 0, 0, .06));padding:0 3px;border-radius:2px}.olli-dialog-overlay{position:fixed;inset:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.olli-dialog{background:#fff;padding:1em;border-radius:4px;min-width:320px;max-width:90vw;max-height:90vh;overflow:auto}.olli-dialog *{all:revert}.olli-dialog-content{max-height:60vh;overflow:auto}.olli-dialog-content>p:first-child,.olli-dialog-content>:first-child>p:first-child{margin-top:0}#olli-dialog-title:has(+#olli-dialog-description){margin-bottom:0}#olli-dialog-description{margin-top:0}.olli-dialog table{border-spacing:2px}.olli-dialog th,.olli-dialog td{text-align:left;padding-right:5px}.olli-dialog .olli-token-description{color:#666}.olli-dialog kbd{display:inline-block;padding:2px 6px;font-family:monospace;background:#f4f4f4;border:1px solid #ccc;border-radius:3px;font-size:.9em}.olli-help-dialog h3{margin-top:1em;margin-bottom:.5em}.olli-help-dialog h4{margin-top:.5em;margin-bottom:.25em}
|
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
|
|