ixmaps-gl 0.2.8 → 0.2.10
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/README.md +9 -5
- package/ixmaps-gl.js +1716 -1095
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,7 +36,8 @@ page. It currently implements:
|
|
|
36
36
|
(equal-interval, QUANTILE, NATURAL/Jenks breaks) or multi-field DOMINANT
|
|
37
37
|
(per-polygon argmax, plain/`PERCENTOFMEAN`/`DEVIATION`; with a `value100` the field means are
|
|
38
38
|
flat's pooled Σ field ÷ Σ value100) or COMPOSECOLOR (additive or
|
|
39
|
-
`SUBTRACTIVE` color blend)
|
|
39
|
+
`SUBTRACTIVE` color blend) or, with `CATEGORICAL|AGGREGATE` on one field, the dominant category of
|
|
40
|
+
each polygon's records (sum of the size field per category); `HEADTAIL` breaks, `DENSITY` (value per km²), flat's
|
|
40
41
|
`ZEROISNOTVALUE`/`UNDEFINEDISNOTVALUE`; plus DOPACITY/DOPACITYMIN/DOPACITYMAX/DOPACITYMINMAX for
|
|
41
42
|
value- or density-driven fill opacity
|
|
42
43
|
- **CHART\|SYMBOL\|GLOW\|CATEGORICAL\|AGGREGATE\|COUNT\|RELOCATE\|VALUES** — the
|
|
@@ -55,6 +56,9 @@ page. It currently implements:
|
|
|
55
56
|
chart — symbol, glow, shadow, box, title and value — as flat does
|
|
56
57
|
- A range theme of at most two classes gets flat's one-row legend (the value range, or for a
|
|
57
58
|
`$item$` count the label or field name)
|
|
59
|
+
- **CHART\|SYMBOL\|SEQUENCE** on AGGREGATE CATEGORICAL data — one chart per cell (or aggregation
|
|
60
|
+
field value) with a symbol per category, laid out as flat does (`STAR`, `HORZ`, centered), with
|
|
61
|
+
flat's part sizes, glow and value labels
|
|
58
62
|
- **CHART\|USER** — a page's own chart function (`style.userdraw`: `ixmaps.<name>(SVGDocument, opt)`
|
|
59
63
|
and its `_init`, as flat calls them), drawn in flat's chart units and shown as an icon at flat's size
|
|
60
64
|
- **DOT** — the simplest base symbol (fixed-radius, unclustered points)
|
|
@@ -72,7 +76,7 @@ page. It currently implements:
|
|
|
72
76
|
`window.__setFacetFilter`) for building filterable sidebars
|
|
73
77
|
- Globe (orthographic) projection alongside flat Mercator
|
|
74
78
|
|
|
75
|
-
Not yet implemented: `CATEGORICAL` choropleths, and the `QUAD`/`BEZIER`/`VECTOR`/
|
|
79
|
+
Not yet implemented: plain (non-AGGREGATE) `CATEGORICAL` choropleths, and the `QUAD`/`BEZIER`/`VECTOR`/
|
|
76
80
|
`PIE`/`DONUT`/`WAFFLE`/`BAR` base types and SYMBOL shape variants beyond
|
|
77
81
|
circle/square/diamond/triangle. See the top-of-file comment in
|
|
78
82
|
[`ixmaps-gl.js`](./ixmaps-gl.js) for the exact, currently-accurate scope note.
|
|
@@ -203,7 +207,7 @@ of your own project files gl can render.
|
|
|
203
207
|
Load the engine from jsDelivr, pinned to a release tag (or `@main` for the latest commit):
|
|
204
208
|
|
|
205
209
|
```html
|
|
206
|
-
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.
|
|
210
|
+
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.10/ixmaps-gl.js"></script>
|
|
207
211
|
```
|
|
208
212
|
|
|
209
213
|
or from unpkg, the npm package [`ixmaps-gl`](https://www.npmjs.com/package/ixmaps-gl)
|
|
@@ -211,13 +215,13 @@ or from unpkg, the npm package [`ixmaps-gl`](https://www.npmjs.com/package/ixmap
|
|
|
211
215
|
browser script, which defines the global `ixmaps`):
|
|
212
216
|
|
|
213
217
|
```html
|
|
214
|
-
<script src="https://unpkg.com/ixmaps-gl@0.2.
|
|
218
|
+
<script src="https://unpkg.com/ixmaps-gl@0.2.10/ixmaps-gl.js"></script>
|
|
215
219
|
```
|
|
216
220
|
|
|
217
221
|
or use a local copy (`<script src="ixmaps-gl.js"></script>`). A minimal page:
|
|
218
222
|
|
|
219
223
|
```html
|
|
220
|
-
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.
|
|
224
|
+
<script src="https://cdn.jsdelivr.net/gh/gjrichter/ixmaps-gl@v0.2.10/ixmaps-gl.js"></script>
|
|
221
225
|
<div id="map_div" style="position:absolute;inset:0;"></div>
|
|
222
226
|
|
|
223
227
|
<script>
|