@uwdata/mosaic-spec 0.17.0 → 0.18.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/LICENSE +47 -0
- package/README.md +1 -1
- package/dist/mosaic-schema.json +201085 -0
- package/dist/src/ast/ASTNode.d.ts +27 -0
- package/dist/src/ast/ASTNode.d.ts.map +1 -0
- package/dist/src/ast/ColumnParamRefNode.d.ts +9 -0
- package/dist/src/ast/ColumnParamRefNode.d.ts.map +1 -0
- package/dist/src/ast/DataNode.d.ts +61 -0
- package/dist/src/ast/DataNode.d.ts.map +1 -0
- package/dist/src/ast/ExpressionNode.d.ts +14 -0
- package/dist/src/ast/ExpressionNode.d.ts.map +1 -0
- package/dist/src/ast/HConcatNode.d.ts +11 -0
- package/dist/src/ast/HConcatNode.d.ts.map +1 -0
- package/dist/src/ast/HSpaceNode.d.ts +12 -0
- package/dist/src/ast/HSpaceNode.d.ts.map +1 -0
- package/dist/src/ast/InputNode.d.ts +9 -0
- package/dist/src/ast/InputNode.d.ts.map +1 -0
- package/dist/src/ast/LiteralNode.d.ts +8 -0
- package/dist/src/ast/LiteralNode.d.ts.map +1 -0
- package/dist/src/ast/OptionsNode.d.ts +11 -0
- package/dist/src/ast/OptionsNode.d.ts.map +1 -0
- package/dist/src/ast/ParamNode.d.ts +9 -0
- package/dist/src/ast/ParamNode.d.ts.map +1 -0
- package/dist/src/ast/ParamRefNode.d.ts +9 -0
- package/dist/src/ast/ParamRefNode.d.ts.map +1 -0
- package/dist/src/ast/PlotAttributeNode.d.ts +19 -0
- package/dist/src/ast/PlotAttributeNode.d.ts.map +1 -0
- package/dist/src/ast/PlotFromNode.d.ts +10 -0
- package/dist/src/ast/PlotFromNode.d.ts.map +1 -0
- package/dist/src/ast/PlotInteractorNode.d.ts +9 -0
- package/dist/src/ast/PlotInteractorNode.d.ts.map +1 -0
- package/dist/src/ast/PlotLegendNode.d.ts +11 -0
- package/dist/src/ast/PlotLegendNode.d.ts.map +1 -0
- package/dist/src/ast/PlotMarkNode.d.ts +11 -0
- package/dist/src/ast/PlotMarkNode.d.ts.map +1 -0
- package/dist/src/ast/PlotNode.d.ts +12 -0
- package/dist/src/ast/PlotNode.d.ts.map +1 -0
- package/dist/src/ast/SelectionNode.d.ts +25 -0
- package/dist/src/ast/SelectionNode.d.ts.map +1 -0
- package/dist/src/ast/SpecNode.d.ts +11 -0
- package/dist/src/ast/SpecNode.d.ts.map +1 -0
- package/dist/src/ast/TransformNode.d.ts +22 -0
- package/dist/src/ast/TransformNode.d.ts.map +1 -0
- package/dist/src/ast/VConcatNode.d.ts +11 -0
- package/dist/src/ast/VConcatNode.d.ts.map +1 -0
- package/dist/src/ast/VSpaceNode.d.ts +12 -0
- package/dist/src/ast/VSpaceNode.d.ts.map +1 -0
- package/dist/src/ast/WindowFrameNode.d.ts +16 -0
- package/dist/src/ast/WindowFrameNode.d.ts.map +1 -0
- package/dist/src/ast-to-dom.d.ts +41 -0
- package/dist/src/ast-to-dom.d.ts.map +1 -0
- package/dist/src/ast-to-esm.d.ts +65 -0
- package/dist/src/ast-to-esm.d.ts.map +1 -0
- package/dist/src/config/components.d.ts +5 -0
- package/dist/src/config/components.d.ts.map +1 -0
- package/dist/src/config/extensions.d.ts +10 -0
- package/dist/src/config/extensions.d.ts.map +1 -0
- package/dist/src/config/inputs.d.ts +6 -0
- package/dist/src/config/inputs.d.ts.map +1 -0
- package/dist/src/config/plots.d.ts +35 -0
- package/dist/src/config/plots.d.ts.map +1 -0
- package/dist/src/config/transforms.d.ts +5 -0
- package/dist/src/config/transforms.d.ts.map +1 -0
- package/dist/src/constants.d.ts +33 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/index.d.ts +30 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/parse-spec.d.ts +112 -0
- package/dist/src/parse-spec.d.ts.map +1 -0
- package/dist/src/spec/CSSStyles.d.ts +4 -0
- package/dist/src/spec/CSSStyles.d.ts.map +1 -0
- package/dist/src/spec/Data.d.ts +166 -0
- package/dist/src/spec/Data.d.ts.map +1 -0
- package/dist/src/spec/Expression.d.ts +28 -0
- package/dist/src/spec/Expression.d.ts.map +1 -0
- package/dist/src/spec/HConcat.d.ts +9 -0
- package/dist/src/spec/HConcat.d.ts.map +1 -0
- package/dist/src/spec/HSpace.d.ts +10 -0
- package/dist/src/spec/HSpace.d.ts.map +1 -0
- package/dist/src/spec/Input.d.ts +213 -0
- package/dist/src/spec/Input.d.ts.map +1 -0
- package/dist/src/spec/Interval.d.ts +59 -0
- package/dist/src/spec/Interval.d.ts.map +1 -0
- package/dist/src/spec/Param.d.ts +64 -0
- package/dist/src/spec/Param.d.ts.map +1 -0
- package/dist/src/spec/Plot.d.ts +15 -0
- package/dist/src/spec/Plot.d.ts.map +1 -0
- package/dist/src/spec/PlotAttribute.d.ts +1535 -0
- package/dist/src/spec/PlotAttribute.d.ts.map +1 -0
- package/dist/src/spec/PlotFrom.d.ts +21 -0
- package/dist/src/spec/PlotFrom.d.ts.map +1 -0
- package/dist/src/spec/PlotInteractor.d.ts +10 -0
- package/dist/src/spec/PlotInteractor.d.ts.map +1 -0
- package/dist/src/spec/PlotLegend.d.ts +69 -0
- package/dist/src/spec/PlotLegend.d.ts.map +1 -0
- package/dist/src/spec/PlotMark.d.ts +29 -0
- package/dist/src/spec/PlotMark.d.ts.map +1 -0
- package/dist/src/spec/PlotTypes.d.ts +294 -0
- package/dist/src/spec/PlotTypes.d.ts.map +1 -0
- package/dist/src/spec/Spec.d.ts +53 -0
- package/dist/src/spec/Spec.d.ts.map +1 -0
- package/dist/src/spec/Transform.d.ts +393 -0
- package/dist/src/spec/Transform.d.ts.map +1 -0
- package/dist/src/spec/VConcat.d.ts +9 -0
- package/dist/src/spec/VConcat.d.ts.map +1 -0
- package/dist/src/spec/VSpace.d.ts +10 -0
- package/dist/src/spec/VSpace.d.ts.map +1 -0
- package/dist/src/spec/interactors/BrushStyles.d.ts +28 -0
- package/dist/src/spec/interactors/BrushStyles.d.ts.map +1 -0
- package/dist/src/spec/interactors/Highlight.d.ts +38 -0
- package/dist/src/spec/interactors/Highlight.d.ts.map +1 -0
- package/dist/src/spec/interactors/Interval1D.d.ts +43 -0
- package/dist/src/spec/interactors/Interval1D.d.ts.map +1 -0
- package/dist/src/spec/interactors/Interval2D.d.ts +48 -0
- package/dist/src/spec/interactors/Interval2D.d.ts.map +1 -0
- package/dist/src/spec/interactors/Nearest.d.ts +45 -0
- package/dist/src/spec/interactors/Nearest.d.ts.map +1 -0
- package/dist/src/spec/interactors/PanZoom.d.ts +59 -0
- package/dist/src/spec/interactors/PanZoom.d.ts.map +1 -0
- package/dist/src/spec/interactors/Region.d.ts +33 -0
- package/dist/src/spec/interactors/Region.d.ts.map +1 -0
- package/dist/src/spec/interactors/Toggle.d.ts +60 -0
- package/dist/src/spec/interactors/Toggle.d.ts.map +1 -0
- package/dist/src/spec/marks/Area.d.ts +140 -0
- package/dist/src/spec/marks/Area.d.ts.map +1 -0
- package/dist/src/spec/marks/Arrow.d.ts +95 -0
- package/dist/src/spec/marks/Arrow.d.ts.map +1 -0
- package/dist/src/spec/marks/Axis.d.ts +282 -0
- package/dist/src/spec/marks/Axis.d.ts.map +1 -0
- package/dist/src/spec/marks/Bar.d.ts +151 -0
- package/dist/src/spec/marks/Bar.d.ts.map +1 -0
- package/dist/src/spec/marks/Cell.d.ts +58 -0
- package/dist/src/spec/marks/Cell.d.ts.map +1 -0
- package/dist/src/spec/marks/Contour.d.ts +24 -0
- package/dist/src/spec/marks/Contour.d.ts.map +1 -0
- package/dist/src/spec/marks/Delaunay.d.ts +87 -0
- package/dist/src/spec/marks/Delaunay.d.ts.map +1 -0
- package/dist/src/spec/marks/DenseLine.d.ts +28 -0
- package/dist/src/spec/marks/DenseLine.d.ts.map +1 -0
- package/dist/src/spec/marks/Density.d.ts +137 -0
- package/dist/src/spec/marks/Density.d.ts.map +1 -0
- package/dist/src/spec/marks/Dot.d.ts +134 -0
- package/dist/src/spec/marks/Dot.d.ts.map +1 -0
- package/dist/src/spec/marks/ErrorBar.d.ts +83 -0
- package/dist/src/spec/marks/ErrorBar.d.ts.map +1 -0
- package/dist/src/spec/marks/Frame.d.ts +22 -0
- package/dist/src/spec/marks/Frame.d.ts.map +1 -0
- package/dist/src/spec/marks/Geo.d.ts +54 -0
- package/dist/src/spec/marks/Geo.d.ts.map +1 -0
- package/dist/src/spec/marks/Hexbin.d.ts +31 -0
- package/dist/src/spec/marks/Hexbin.d.ts.map +1 -0
- package/dist/src/spec/marks/Hexgrid.d.ts +26 -0
- package/dist/src/spec/marks/Hexgrid.d.ts.map +1 -0
- package/dist/src/spec/marks/Image.d.ts +90 -0
- package/dist/src/spec/marks/Image.d.ts.map +1 -0
- package/dist/src/spec/marks/Line.d.ts +83 -0
- package/dist/src/spec/marks/Line.d.ts.map +1 -0
- package/dist/src/spec/marks/Link.d.ts +61 -0
- package/dist/src/spec/marks/Link.d.ts.map +1 -0
- package/dist/src/spec/marks/Marks.d.ts +911 -0
- package/dist/src/spec/marks/Marks.d.ts.map +1 -0
- package/dist/src/spec/marks/Raster.d.ts +125 -0
- package/dist/src/spec/marks/Raster.d.ts.map +1 -0
- package/dist/src/spec/marks/Rect.d.ts +167 -0
- package/dist/src/spec/marks/Rect.d.ts.map +1 -0
- package/dist/src/spec/marks/Regression.d.ts +59 -0
- package/dist/src/spec/marks/Regression.d.ts.map +1 -0
- package/dist/src/spec/marks/Rule.d.ts +101 -0
- package/dist/src/spec/marks/Rule.d.ts.map +1 -0
- package/dist/src/spec/marks/Text.d.ts +111 -0
- package/dist/src/spec/marks/Text.d.ts.map +1 -0
- package/dist/src/spec/marks/Tick.d.ts +62 -0
- package/dist/src/spec/marks/Tick.d.ts.map +1 -0
- package/dist/src/spec/marks/Vector.d.ts +100 -0
- package/dist/src/spec/marks/Vector.d.ts.map +1 -0
- package/dist/src/spec/marks/Waffle.d.ts +59 -0
- package/dist/src/spec/marks/Waffle.d.ts.map +1 -0
- package/dist/src/util.d.ts +13 -0
- package/dist/src/util.d.ts.map +1 -0
- package/package.json +18 -10
- package/tsconfig.json +0 -13
- package/vitest.config.ts +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-2025, UW Interactive Data Lab
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
Portions of this software are derived from Observable Plot, which is released
|
|
33
|
+
under the ISC license.
|
|
34
|
+
|
|
35
|
+
Copyright 2020-2023 Observable, Inc.
|
|
36
|
+
|
|
37
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
38
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
39
|
+
and this permission notice appear in all copies.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
42
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
43
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
45
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
46
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
47
|
+
THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@uwdata/mosaic-spec)
|
|
4
4
|
|
|
5
|
-
Declarative specification of Mosaic-powered applications as JSON or YAML files. This package provides a parser and code generation framework for reading specifications in a JSON format and generating live Mosaic visualizations and dashboards using the [vgplot](https://github.com/uwdata/mosaic/tree/main/packages/vgplot) API.
|
|
5
|
+
Declarative specification of Mosaic-powered applications as JSON or YAML files. This package provides a parser and code generation framework for reading specifications in a JSON format and generating live Mosaic visualizations and dashboards using the [vgplot](https://github.com/uwdata/mosaic/tree/main/packages/vgplot/vgplot) API.
|
|
6
6
|
|
|
7
7
|
## Usage
|
|
8
8
|
|