@gramlot/gramlot 0.3.27 → 0.3.30
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/assets/icons/chart.svg +1 -0
- package/dist/components/audio/__init__.py +13 -0
- package/dist/components/audio/assets/collection.js +3 -0
- package/dist/components/audio/assets/index.js +3 -0
- package/dist/components/audio/commands.json +7 -0
- package/dist/components/audio/grammar.json +335 -0
- package/dist/components/charts/__init__.py +13 -0
- package/dist/components/charts/assets/collection.js +47 -0
- package/dist/components/charts/assets/files/55ea01207028f76d844678511f29fc800f8a1e67a8a0fe80470128677847ad32-echarts-gl.txt +29 -0
- package/dist/components/charts/assets/files/63727832aaf62004a2b249c933e327f3c90caf49e41a72f4bf436edf632cbda8-vega.txt +27 -0
- package/dist/components/charts/assets/files/8c45d9eaf50c2f72dd9c7ab9ef440788ba58a3538484b5c51c1f17d5128752e7-plotly.txt +21 -0
- package/dist/components/charts/assets/files/8f989229699b4fe2f1a0432d0e9edc338a8a911e250e2d1b01ecd770a5f5b1bd-uplot.txt +21 -0
- package/dist/components/charts/assets/files/c8fa058cba98f7f288b5d8fa4116f441d6dacb25b96da859e518c973fff41d0c-claygl.txt +23 -0
- package/dist/components/charts/assets/index.js +3 -0
- package/dist/components/charts/assets/modules/chunk-2CCTLZE7.js +76 -0
- package/dist/components/charts/assets/modules/chunk-RMRBEYTI.js +1 -0
- package/dist/components/charts/assets/modules/echarts-gl-CXVTZA6G.js +4409 -0
- package/dist/components/charts/assets/modules/plotly.min-4LB7HE7P.js +3596 -0
- package/dist/components/charts/assets/modules/uPlot.esm-5JJNHHRF.js +3 -0
- package/dist/components/charts/assets/modules/uPlot.min-N3E3FA74.js +1 -0
- package/dist/components/charts/assets/modules/vega.module-2QCOVQ3A.js +13 -0
- package/dist/components/charts/commands.json +7 -0
- package/dist/components/charts/grammar.json +1113 -0
- package/dist/components/chat/__init__.py +1 -1
- package/dist/components/chat/assets/collection.js +3 -3
- package/dist/components/chat/assets/index.js +1 -1
- package/dist/components/drawing/__init__.py +15 -0
- package/dist/components/drawing/assets/collection.js +28 -0
- package/dist/components/drawing/assets/index.js +3 -0
- package/dist/components/drawing/commands.json +7 -0
- package/dist/components/drawing/grammar.json +110 -0
- package/dist/components/editors/__init__.py +2 -2
- package/dist/components/editors/assets/collection.js +18 -18
- package/dist/components/editors/assets/index.js +1 -1
- package/dist/components/editors/assets/modules/{prose-mirror-engine-GMZPJPNN.js → prose-mirror-engine-DQEAEIMV.js} +2 -2
- package/dist/components/editors/grammar.json +150 -0
- package/dist/components/grid/__init__.py +1 -1
- package/dist/components/grid/assets/collection.js +51 -30
- package/dist/components/grid/assets/index.js +1 -1
- package/dist/components/grid/grammar.json +258 -0
- package/dist/components/grouplets/__init__.py +1 -1
- package/dist/components/grouplets/assets/collection.js +3 -3
- package/dist/components/grouplets/assets/index.js +1 -1
- package/dist/components/inputs/__init__.py +3 -2
- package/dist/components/inputs/assets/collection.js +38 -23
- package/dist/components/inputs/assets/index.js +1 -1
- package/dist/components/inputs/grammar.json +1533 -321
- package/dist/components/layout/__init__.py +1 -1
- package/dist/components/layout/assets/collection.js +27 -23
- package/dist/components/layout/assets/index.js +1 -1
- package/dist/components/layout/grammar.json +85 -0
- package/dist/components/selection_trial/__init__.py +1 -1
- package/dist/components/selection_trial/assets/collection.js +3 -3
- package/dist/components/selection_trial/assets/index.js +1 -1
- package/dist/components/tree/__init__.py +1 -1
- package/dist/components/tree/assets/collection.js +11 -11
- package/dist/components/tree/assets/index.js +1 -1
- package/dist/components/tree/grammar.json +126 -0
- package/dist/components/typst/__init__.py +1 -1
- package/dist/components/typst/assets/collection.js +2 -2
- package/dist/components/typst/assets/index.js +1 -1
- package/dist/components/uploads/__init__.py +1 -1
- package/dist/components/uploads/assets/collection.js +8 -8
- package/dist/components/uploads/assets/index.js +1 -1
- package/dist/components/vizabi/__init__.py +13 -0
- package/dist/components/vizabi/assets/collection.js +22 -0
- package/dist/components/vizabi/assets/index.js +3 -0
- package/dist/components/vizabi/commands.json +7 -0
- package/dist/components/vizabi/grammar.json +128 -0
- package/dist/gramlot.js +572 -176
- package/dist/gramlot.min.js +85 -53
- package/dist/standard-collections.js +2 -0
- package/package.json +12 -4
- package/src/binding/grid-struct.js +2 -2
- package/src/binding/runtime.js +10 -0
- package/src/bootstrap.js +1 -1
- package/src/builder/gramlot-builder.d.ts +15 -2
- package/src/builder/gramlot-builder.js +22 -3
- package/src/builder/source.js +24 -1
- package/src/components/audio-analysis-session.js +65 -0
- package/src/components/audio.js +44 -0
- package/src/components/bases.js +6 -4
- package/src/components/border-container.js +6 -3
- package/src/components/buttons.js +47 -3
- package/src/components/chart-bar3d-options.js +30 -0
- package/src/components/chart-controls.js +83 -0
- package/src/components/chart-data-view.js +52 -0
- package/src/components/chart-data.js +42 -0
- package/src/components/chart-domains.js +46 -0
- package/src/components/chart-engines/echarts-options.js +50 -0
- package/src/components/chart-engines/echarts.js +82 -0
- package/src/components/chart-engines/index.js +22 -0
- package/src/components/chart-engines/plotly-map.js +34 -0
- package/src/components/chart-engines/plotly-spatial.js +35 -0
- package/src/components/chart-engines/plotly.js +138 -0
- package/src/components/chart-engines/uplot.js +57 -0
- package/src/components/chart-engines/vega.js +101 -0
- package/src/components/chart-fields.js +110 -0
- package/src/components/chart-geographic-options.js +47 -0
- package/src/components/chart-geojson.js +60 -0
- package/src/components/chart-geometry.js +11 -0
- package/src/components/chart-map-anchors.js +24 -0
- package/src/components/chart-map-bar3d-options.js +41 -0
- package/src/components/chart-map-data.js +25 -0
- package/src/components/chart-map-labels.js +8 -0
- package/src/components/chart-map-options.js +20 -0
- package/src/components/chart-pane.js +91 -0
- package/src/components/chart-renderer.js +58 -0
- package/src/components/chart-sample-view.js +32 -0
- package/src/components/chart-spatial-options.js +40 -0
- package/src/components/chart-time.js +84 -0
- package/src/components/chart-timeline.js +70 -0
- package/src/components/chart-types/area.js +2 -0
- package/src/components/chart-types/bar.js +2 -0
- package/src/components/chart-types/bar3D.js +2 -0
- package/src/components/chart-types/donut.js +2 -0
- package/src/components/chart-types/horizontalBar.js +2 -0
- package/src/components/chart-types/index.js +26 -0
- package/src/components/chart-types/line.js +2 -0
- package/src/components/chart-types/line3D.js +2 -0
- package/src/components/chart-types/lines3D.js +2 -0
- package/src/components/chart-types/map.js +2 -0
- package/src/components/chart-types/map3D.js +2 -0
- package/src/components/chart-types/mapBar3D.js +2 -0
- package/src/components/chart-types/pie.js +2 -0
- package/src/components/chart-types/polygons3D.js +2 -0
- package/src/components/chart-types/scatter.js +2 -0
- package/src/components/chart-types/scatter3D.js +2 -0
- package/src/components/chart-types/stackedArea.js +2 -0
- package/src/components/chart-types/stackedBar.js +2 -0
- package/src/components/chart-types/surface.js +2 -0
- package/src/components/charts.js +152 -0
- package/src/components/check-box-text-editor.js +88 -0
- package/src/components/check-box-text.js +193 -0
- package/src/components/check-box-tree.js +62 -0
- package/src/components/choice-editor.js +7 -5
- package/src/components/choice-field-styles.js +14 -0
- package/src/components/choices.js +5 -0
- package/src/components/drawing.js +199 -0
- package/src/components/grid-check-sets.js +98 -0
- package/src/components/grid-column-filters.js +198 -0
- package/src/components/grid-grammar.json +44 -0
- package/src/components/grid-header-interaction.js +3 -1
- package/src/components/grid-rows.js +2 -2
- package/src/components/grid-search-box.js +38 -22
- package/src/components/grid-search-styles.js +13 -14
- package/src/components/grid-search.js +8 -1
- package/src/components/grid-structure.js +10 -2
- package/src/components/grid-styles.js +23 -0
- package/src/components/grid.js +52 -10
- package/src/components/image-uploader.js +2 -2
- package/src/components/inputs.js +19 -10
- package/src/components/labelbox.js +5 -1
- package/src/components/licenses/claygl.txt +23 -0
- package/src/components/licenses/echarts-gl.txt +29 -0
- package/src/components/licenses/plotly.txt +21 -0
- package/src/components/licenses/uplot.txt +21 -0
- package/src/components/licenses/vega.txt +27 -0
- package/src/components/menus.js +19 -11
- package/src/components/toolbar-overflow.js +12 -8
- package/src/components/tree.js +30 -8
- package/src/components/typed-editor.js +14 -3
- package/src/components/vizabi-session.js +66 -0
- package/src/components/vizabi.js +66 -0
- package/src/components/window-surface.js +20 -9
- package/src/components/windows.js +1 -1
- package/src/gramlot.d.ts +1 -0
- package/src/gramlot.js +2 -0
- package/src/handlers/device-handler.js +32 -32
- package/src/handlers/source-handler.d.ts +2 -2
- package/src/ide-documents.js +19 -3
- package/src/ide-runtime.d.ts +1 -0
- package/src/ide-runtime.js +45 -31
- package/src/index.d.ts +1 -0
- package/src/renderer/drag-drop.js +1 -0
- package/src/renderer/gramlot-renderer.d.ts +2 -0
- package/src/renderer/gramlot-renderer.js +5 -4
- package/src/server/assets.d.ts +3 -0
- package/src/server/assets.js +9 -0
- package/src/server/gramlot-server.d.ts +1 -1
- package/src/server/gramlot-server.js +2 -1
- package/src/server/index.d.ts +1 -1
- package/src/server/index.js +1 -1
- package/src/server/visual-editor.js +17 -17
- package/src/stores/bag-collection-view.js +79 -17
- package/src/stores/collection-filter.js +2 -1
- package/src/stores/column-filter.js +49 -0
- package/src/stores/id-set.js +10 -0
- package/src/view/controls.js +8 -0
- package/src/view/html.js +10 -1
- package/src/view/label-menu.js +61 -0
- package/src/view/labelbox.js +15 -2
- package/themes/gramlot-base/theme.css +6 -0
- package/tools/gramlot-tools-inspector.js +169 -505
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#7b8795" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M4 3v17h17M8 16v-5M13 16V6M18 16v-8"/></svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from gramlot import GramlotCollection
|
|
2
|
+
|
|
3
|
+
mygramlot = GramlotCollection(
|
|
4
|
+
name="audio",
|
|
5
|
+
package=__package__,
|
|
6
|
+
grammar="grammar.json",
|
|
7
|
+
commands="commands.json",
|
|
8
|
+
module="assets/index.js",
|
|
9
|
+
css=(),
|
|
10
|
+
dependencies=(),
|
|
11
|
+
build_id="sha256:e8ccb6686763b2d3b172b66cbeede57b88a00bdf45f302511cc54f20b942fd79",
|
|
12
|
+
files=("assets/collection.js", "assets/index.js", "commands.json", "grammar.json",),
|
|
13
|
+
)
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var A=(i,t)=>{for(var e in t)g(i,e,{get:t[e],enumerable:!0})},w=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of x(t))!v.call(i,s)&&s!==e&&g(i,s,{get:()=>t[s],enumerable:!(r=b(t,s))||r.enumerable});return i},d=(i,t,e)=>(w(i,t,"default"),e&&w(e,t,"default"));var n={};A(n,{defineCollection:()=>f});d(n,N);import*as N from"@gramlot/gramlot/components";import{defineCollection as C}from"@gramlot/gramlot/components";function f(i){if(i.name!=="audio")throw new Error("Unexpected bundled collection");let t=[],e={};i.css?.forEach((r,s)=>{r.href=t[s].href});for(let[r,s]of Object.entries(i.assets??{}))s.href=e[r].href;return C({...i,css:t,assets:e})}function y(i,t){return i.parameters=E(i.constructor.gramlotComponent,t),Object.fromEntries(Object.entries(t).filter(([e])=>!Object.hasOwn(i.parameters,e)))}function E(i,t){return Object.fromEntries(Object.entries(i.parameters).map(([e,r])=>[e,Object.hasOwn(t,e)?t[e]:r.default]))}function m(i){return class extends i{constructor(){super();let t=this.attachShadow({mode:"open"}),e=this.ownerDocument.createElement("style");e.textContent=`:host{box-sizing:border-box;display:block;min-width:0;font:inherit;color:var(--gramlot-ink,CanvasText)}
|
|
2
|
+
*,*::before,*::after{box-sizing:border-box}.control-box{min-width:0}slot{display:contents}
|
|
3
|
+
::slotted(*){min-width:0;max-width:100%}`,this.controlBox=this.ownerDocument.createElement("div"),this.controlBox.className="control-box",this.control=this.controlBox,this.control.id="control",this.control.append(this.ownerDocument.createElement("slot")),t.append(e,this.controlBox)}projectAttributes(t){return y(this,t)}}}m.parameters={};function F({fftSize:i=1024,frameRate:t=20,minimumDb:e=-100}={}){if(!Number.isInteger(i)||i<256||i>8192||i&i-1)throw new RangeError("FFT size must be a power of two from 256 to 8192");if(!Number.isFinite(t)||t<1||t>30)throw new RangeError("Frame rate must be between 1 and 30");if(!Number.isFinite(e)||e>=0||e<-160)throw new RangeError("Minimum dB must be between -160 and 0 (exclusive)");return{fftSize:i,frameRate:t,minimumDb:e}}var u=class{#r;#s;#t;#e;#i=0;#a;#o;#c;#n;#h;#d=-1/0;#l;constructor(t,{frame:e,state:r,error:s}){this.#r=t,this.#s=e,this.#t=r,this.#e=s}configure(t){this.options=F(t),this.#n&&(this.#n.fftSize=this.options.fftSize)}async start(t){if(this.configure(t),this.#a)return;let e=this.#r;if(!e.isSecureContext||!e.navigator.mediaDevices?.getUserMedia||!e.AudioContext)throw new Error("Microphone analysis requires HTTPS or localhost and Web Audio support");let r=++this.#i,s=new e.AudioContext;this.#a=s,this.#t("requesting");try{if(await s.resume(),r!==this.#i)return;let o=await e.navigator.mediaDevices.getUserMedia({audio:!0,video:!1});if(r!==this.#i){for(let c of o.getTracks())c.stop();return}this.#o=o,this.#l=()=>{this.stop().then(()=>this.#e(new Error("Microphone capture ended")),c=>this.#e(c))};for(let c of o.getTracks())c.addEventListener("ended",this.#l);this.#c=s.createMediaStreamSource(o),this.#n=s.createAnalyser(),this.#n.fftSize=this.options.fftSize,this.#c.connect(this.#n),this.#t("running"),this.#d=-1/0;let a=c=>{if(r===this.#i)try{if(c-this.#d>=1e3/this.options.frameRate){this.#d=c;let h=this.#n,l=new Float32Array(h.fftSize),p=new Float32Array(h.frequencyBinCount);h.getFloatTimeDomainData(l),h.getFloatFrequencyData(p),this.#s({waveform:l,spectrum:p,sampleRate:s.sampleRate,minimumDb:this.options.minimumDb})}this.#h=e.requestAnimationFrame(a)}catch(h){this.stop().then(()=>this.#e(h),l=>this.#e(l))}};this.#h=e.requestAnimationFrame(a)}catch(o){if(r!==this.#i)return;throw await this.stop(),o}}async stop(){let t=++this.#i;this.#h!=null&&this.#r.cancelAnimationFrame(this.#h),this.#h=null;for(let r of this.#o?.getTracks()??[])r.removeEventListener("ended",this.#l),r.stop();this.#o=null,this.#c?.disconnect(),this.#n?.disconnect(),this.#c=this.#n=null;let e=this.#a;this.#a=null,e&&e.state!=="closed"&&await e.close(),t===this.#i&&this.#t("stopped")}};var j=(0,n.defineComponent)({name:"audioAnalyser",tag:"gramlot-audio-analyser",base:m,sourceContext:!0,parameters:{running:{dtype:"B",default:!1,binding:"twoWay"},fftSize:{dtype:"L",default:1024,binding:"read"},frameRate:{dtype:"N",default:20,binding:"read"},minimumDb:{dtype:"N",default:-100,binding:"read"},spectrum:{dtype:"X",nullable:!0,binding:"twoWay"},waveform:{dtype:"X",nullable:!0,binding:"twoWay"},sampleRate:{dtype:"N",default:0,binding:"twoWay"},status:{dtype:"T",default:"stopped",binding:"twoWay"},error:{dtype:"T",default:"",binding:"twoWay"}},implementation:i=>class extends i{#r;#s;#t=!1;#e=!1;#i;#a;setSourceContext(t){this.#r=t}connectedCallback(){this.#t=!0,this.style.display="none";let t=(e,r)=>{this.#t&&this.#r.writeParameter(e,r)};this.#s=new u(this.ownerDocument.defaultView,{state:e=>t("status",e),error:e=>this.#o(e),frame:({waveform:e,spectrum:r,sampleRate:s,minimumDb:o})=>{t("sampleRate",s),t("waveform",Array.from(e)),t("spectrum",Array.from(r,a=>Math.max(o,a)))}}),this.#i=()=>{this.#e=!1,t("running",!1),this.#s.stop().catch(e=>this.#o(e))},this.ownerDocument.defaultView.addEventListener("pagehide",this.#i),this.#c()}projectAttributes(t,e){let r=super.projectAttributes(t,e);return this.#t&&this.#c(),r}#o(t){this.#t&&(this.#e=!1,this.#r.writeParameter("running",!1),this.#r.writeParameter("error",t.message),this.#s.stop().then(()=>{this.#t&&this.#r.writeParameter("status","error")},e=>console.error("Audio cleanup failed",e)))}#c(){let{running:t,fftSize:e,frameRate:r,minimumDb:s}=this.parameters;try{let o=JSON.stringify([e,r,s]);if(o!==this.#a&&(this.#a=o,this.#s.configure({fftSize:e,frameRate:r,minimumDb:s})),t===this.#e)return;this.#e=t,t?(this.#r.writeParameter("error",""),this.#s.start({fftSize:e,frameRate:r,minimumDb:s}).catch(a=>this.#o(a))):this.#s.stop().catch(a=>this.#o(a))}catch(o){this.#o(o)}}disconnectedCallback(){this.#t=!1,this.#e=!1,this.ownerDocument.defaultView.removeEventListener("pagehide",this.#i),this.#s.stop().catch(t=>console.error("Audio analysis cleanup failed",t))}}}),V=f({name:"audio",components:[j]});export{j as AudioAnalyser,V as default};
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
{
|
|
2
|
+
"abstracts": {},
|
|
3
|
+
"document_format": {
|
|
4
|
+
"name": "builder_grammar",
|
|
5
|
+
"version": "1.1"
|
|
6
|
+
},
|
|
7
|
+
"elements": {
|
|
8
|
+
"audioAnalyser": {
|
|
9
|
+
"_meta": {
|
|
10
|
+
"gramlot_component": {
|
|
11
|
+
"command": false,
|
|
12
|
+
"dataScope": false,
|
|
13
|
+
"parameters": {
|
|
14
|
+
"error": {
|
|
15
|
+
"binding": "twoWay",
|
|
16
|
+
"default": "",
|
|
17
|
+
"dtype": "T"
|
|
18
|
+
},
|
|
19
|
+
"fftSize": {
|
|
20
|
+
"binding": "read",
|
|
21
|
+
"default": 1024,
|
|
22
|
+
"dtype": "L"
|
|
23
|
+
},
|
|
24
|
+
"frameRate": {
|
|
25
|
+
"binding": "read",
|
|
26
|
+
"default": 20,
|
|
27
|
+
"dtype": "N"
|
|
28
|
+
},
|
|
29
|
+
"minimumDb": {
|
|
30
|
+
"binding": "read",
|
|
31
|
+
"default": -100,
|
|
32
|
+
"dtype": "N"
|
|
33
|
+
},
|
|
34
|
+
"running": {
|
|
35
|
+
"binding": "twoWay",
|
|
36
|
+
"default": false,
|
|
37
|
+
"dtype": "B"
|
|
38
|
+
},
|
|
39
|
+
"sampleRate": {
|
|
40
|
+
"binding": "twoWay",
|
|
41
|
+
"default": 0,
|
|
42
|
+
"dtype": "N"
|
|
43
|
+
},
|
|
44
|
+
"spectrum": {
|
|
45
|
+
"binding": "twoWay",
|
|
46
|
+
"dtype": "X",
|
|
47
|
+
"nullable": true
|
|
48
|
+
},
|
|
49
|
+
"status": {
|
|
50
|
+
"binding": "twoWay",
|
|
51
|
+
"default": "stopped",
|
|
52
|
+
"dtype": "T"
|
|
53
|
+
},
|
|
54
|
+
"waveform": {
|
|
55
|
+
"binding": "twoWay",
|
|
56
|
+
"dtype": "X",
|
|
57
|
+
"nullable": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"presentationDefaults": [],
|
|
61
|
+
"sourceContext": true
|
|
62
|
+
},
|
|
63
|
+
"render_tag": "gramlot-audio-analyser"
|
|
64
|
+
},
|
|
65
|
+
"attributes": {
|
|
66
|
+
"accepts_var_keyword": true,
|
|
67
|
+
"accepts_var_positional": false,
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"annotation": {
|
|
71
|
+
"items": [
|
|
72
|
+
{
|
|
73
|
+
"dtype": "B",
|
|
74
|
+
"kind": "dtype"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"base": {
|
|
78
|
+
"dtype": "T",
|
|
79
|
+
"kind": "dtype"
|
|
80
|
+
},
|
|
81
|
+
"kind": "annotated",
|
|
82
|
+
"metadata": [
|
|
83
|
+
{
|
|
84
|
+
"flags": 0,
|
|
85
|
+
"kind": "regex",
|
|
86
|
+
"pattern": "^[\\^=].+"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"kind": "union"
|
|
92
|
+
},
|
|
93
|
+
"default": false,
|
|
94
|
+
"has_default": true,
|
|
95
|
+
"kind": "keyword_only",
|
|
96
|
+
"name": "running",
|
|
97
|
+
"role": "attribute"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"annotation": {
|
|
101
|
+
"items": [
|
|
102
|
+
{
|
|
103
|
+
"dtype": "L",
|
|
104
|
+
"kind": "dtype"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"base": {
|
|
108
|
+
"dtype": "T",
|
|
109
|
+
"kind": "dtype"
|
|
110
|
+
},
|
|
111
|
+
"kind": "annotated",
|
|
112
|
+
"metadata": [
|
|
113
|
+
{
|
|
114
|
+
"flags": 0,
|
|
115
|
+
"kind": "regex",
|
|
116
|
+
"pattern": "^[\\^=].+"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"kind": "union"
|
|
122
|
+
},
|
|
123
|
+
"default": 1024,
|
|
124
|
+
"has_default": true,
|
|
125
|
+
"kind": "keyword_only",
|
|
126
|
+
"name": "fftSize",
|
|
127
|
+
"role": "attribute"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"annotation": {
|
|
131
|
+
"items": [
|
|
132
|
+
{
|
|
133
|
+
"dtype": "N",
|
|
134
|
+
"kind": "dtype"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"base": {
|
|
138
|
+
"dtype": "T",
|
|
139
|
+
"kind": "dtype"
|
|
140
|
+
},
|
|
141
|
+
"kind": "annotated",
|
|
142
|
+
"metadata": [
|
|
143
|
+
{
|
|
144
|
+
"flags": 0,
|
|
145
|
+
"kind": "regex",
|
|
146
|
+
"pattern": "^[\\^=].+"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"kind": "union"
|
|
152
|
+
},
|
|
153
|
+
"default": 20,
|
|
154
|
+
"has_default": true,
|
|
155
|
+
"kind": "keyword_only",
|
|
156
|
+
"name": "frameRate",
|
|
157
|
+
"role": "attribute"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"annotation": {
|
|
161
|
+
"items": [
|
|
162
|
+
{
|
|
163
|
+
"dtype": "N",
|
|
164
|
+
"kind": "dtype"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"base": {
|
|
168
|
+
"dtype": "T",
|
|
169
|
+
"kind": "dtype"
|
|
170
|
+
},
|
|
171
|
+
"kind": "annotated",
|
|
172
|
+
"metadata": [
|
|
173
|
+
{
|
|
174
|
+
"flags": 0,
|
|
175
|
+
"kind": "regex",
|
|
176
|
+
"pattern": "^[\\^=].+"
|
|
177
|
+
}
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
"kind": "union"
|
|
182
|
+
},
|
|
183
|
+
"default": -100,
|
|
184
|
+
"has_default": true,
|
|
185
|
+
"kind": "keyword_only",
|
|
186
|
+
"name": "minimumDb",
|
|
187
|
+
"role": "attribute"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"annotation": {
|
|
191
|
+
"items": [
|
|
192
|
+
{
|
|
193
|
+
"dtype": "X",
|
|
194
|
+
"kind": "dtype"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"dtype": "NN",
|
|
198
|
+
"kind": "dtype"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"base": {
|
|
202
|
+
"dtype": "T",
|
|
203
|
+
"kind": "dtype"
|
|
204
|
+
},
|
|
205
|
+
"kind": "annotated",
|
|
206
|
+
"metadata": [
|
|
207
|
+
{
|
|
208
|
+
"flags": 0,
|
|
209
|
+
"kind": "regex",
|
|
210
|
+
"pattern": "^[\\^=].+"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"kind": "union"
|
|
216
|
+
},
|
|
217
|
+
"default": null,
|
|
218
|
+
"has_default": true,
|
|
219
|
+
"kind": "keyword_only",
|
|
220
|
+
"name": "spectrum",
|
|
221
|
+
"role": "attribute"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"annotation": {
|
|
225
|
+
"items": [
|
|
226
|
+
{
|
|
227
|
+
"dtype": "X",
|
|
228
|
+
"kind": "dtype"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"dtype": "NN",
|
|
232
|
+
"kind": "dtype"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"base": {
|
|
236
|
+
"dtype": "T",
|
|
237
|
+
"kind": "dtype"
|
|
238
|
+
},
|
|
239
|
+
"kind": "annotated",
|
|
240
|
+
"metadata": [
|
|
241
|
+
{
|
|
242
|
+
"flags": 0,
|
|
243
|
+
"kind": "regex",
|
|
244
|
+
"pattern": "^[\\^=].+"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"kind": "union"
|
|
250
|
+
},
|
|
251
|
+
"default": null,
|
|
252
|
+
"has_default": true,
|
|
253
|
+
"kind": "keyword_only",
|
|
254
|
+
"name": "waveform",
|
|
255
|
+
"role": "attribute"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"annotation": {
|
|
259
|
+
"items": [
|
|
260
|
+
{
|
|
261
|
+
"dtype": "N",
|
|
262
|
+
"kind": "dtype"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"base": {
|
|
266
|
+
"dtype": "T",
|
|
267
|
+
"kind": "dtype"
|
|
268
|
+
},
|
|
269
|
+
"kind": "annotated",
|
|
270
|
+
"metadata": [
|
|
271
|
+
{
|
|
272
|
+
"flags": 0,
|
|
273
|
+
"kind": "regex",
|
|
274
|
+
"pattern": "^[\\^=].+"
|
|
275
|
+
}
|
|
276
|
+
]
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"kind": "union"
|
|
280
|
+
},
|
|
281
|
+
"default": 0,
|
|
282
|
+
"has_default": true,
|
|
283
|
+
"kind": "keyword_only",
|
|
284
|
+
"name": "sampleRate",
|
|
285
|
+
"role": "attribute"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"annotation": {
|
|
289
|
+
"dtype": "T",
|
|
290
|
+
"kind": "dtype"
|
|
291
|
+
},
|
|
292
|
+
"default": "stopped",
|
|
293
|
+
"has_default": true,
|
|
294
|
+
"kind": "keyword_only",
|
|
295
|
+
"name": "status",
|
|
296
|
+
"role": "attribute"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"annotation": {
|
|
300
|
+
"dtype": "T",
|
|
301
|
+
"kind": "dtype"
|
|
302
|
+
},
|
|
303
|
+
"default": "",
|
|
304
|
+
"has_default": true,
|
|
305
|
+
"kind": "keyword_only",
|
|
306
|
+
"name": "error",
|
|
307
|
+
"role": "attribute"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"annotation": {
|
|
311
|
+
"kind": "any"
|
|
312
|
+
},
|
|
313
|
+
"has_default": false,
|
|
314
|
+
"kind": "var_keyword",
|
|
315
|
+
"name": "attr",
|
|
316
|
+
"role": "attribute"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"collection_key": null,
|
|
321
|
+
"doc": null,
|
|
322
|
+
"inherits_from": null,
|
|
323
|
+
"node_label": null,
|
|
324
|
+
"ns": null,
|
|
325
|
+
"parent_tags": null,
|
|
326
|
+
"sub_tags": ""
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
"grammar": {
|
|
330
|
+
"description": null,
|
|
331
|
+
"name": "audio",
|
|
332
|
+
"title": "audio",
|
|
333
|
+
"version": null
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from gramlot import GramlotCollection
|
|
2
|
+
|
|
3
|
+
mygramlot = GramlotCollection(
|
|
4
|
+
name="charts",
|
|
5
|
+
package=__package__,
|
|
6
|
+
grammar="grammar.json",
|
|
7
|
+
commands="commands.json",
|
|
8
|
+
module="assets/index.js",
|
|
9
|
+
css=(),
|
|
10
|
+
dependencies=(),
|
|
11
|
+
build_id="sha256:9c8168d84ec9430bafd1d025feae6bd3a124de501043eda84463e4f5654ae268",
|
|
12
|
+
files=("assets/collection.js", "assets/files/55ea01207028f76d844678511f29fc800f8a1e67a8a0fe80470128677847ad32-echarts-gl.txt", "assets/files/63727832aaf62004a2b249c933e327f3c90caf49e41a72f4bf436edf632cbda8-vega.txt", "assets/files/8c45d9eaf50c2f72dd9c7ab9ef440788ba58a3538484b5c51c1f17d5128752e7-plotly.txt", "assets/files/8f989229699b4fe2f1a0432d0e9edc338a8a911e250e2d1b01ecd770a5f5b1bd-uplot.txt", "assets/files/c8fa058cba98f7f288b5d8fa4116f441d6dacb25b96da859e518c973fff41d0c-claygl.txt", "assets/index.js", "assets/modules/chunk-2CCTLZE7.js", "assets/modules/chunk-RMRBEYTI.js", "assets/modules/echarts-gl-CXVTZA6G.js", "assets/modules/plotly.min-4LB7HE7P.js", "assets/modules/uPlot.esm-5JJNHHRF.js", "assets/modules/uPlot.min-N3E3FA74.js", "assets/modules/vega.module-2QCOVQ3A.js", "commands.json", "grammar.json",),
|
|
13
|
+
)
|