@diagrammo/dgmo 0.20.3 → 0.21.1

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.
Files changed (48) hide show
  1. package/dist/advanced.cjs +867 -286
  2. package/dist/advanced.js +866 -286
  3. package/dist/auto.cjs +635 -284
  4. package/dist/auto.js +113 -113
  5. package/dist/auto.mjs +635 -284
  6. package/dist/cli.cjs +156 -156
  7. package/dist/editor.cjs +6 -2
  8. package/dist/editor.js +6 -2
  9. package/dist/highlight.cjs +6 -2
  10. package/dist/highlight.js +6 -2
  11. package/dist/index.cjs +628 -281
  12. package/dist/index.js +628 -281
  13. package/dist/internal.cjs +867 -286
  14. package/dist/internal.js +866 -286
  15. package/dist/map-data/PROVENANCE.json +1 -1
  16. package/dist/map-data/mountain-ranges.json +1 -0
  17. package/docs/language-reference.md +27 -25
  18. package/gallery/fixtures/map-choropleth.dgmo +7 -7
  19. package/gallery/fixtures/map-direct-color.dgmo +10 -0
  20. package/gallery/fixtures/map-pois.dgmo +4 -4
  21. package/gallery/fixtures/map-region-scope.dgmo +8 -8
  22. package/gallery/fixtures/map-route.dgmo +5 -6
  23. package/package.json +1 -1
  24. package/src/advanced.ts +14 -0
  25. package/src/completion.ts +10 -4
  26. package/src/d3.ts +15 -9
  27. package/src/editor/keywords.ts +6 -2
  28. package/src/map/data/PROVENANCE.json +1 -1
  29. package/src/map/data/mountain-ranges.json +1 -0
  30. package/src/map/geo-query.ts +277 -0
  31. package/src/map/geo.ts +258 -1
  32. package/src/map/invert.ts +111 -0
  33. package/src/map/layout.ts +333 -139
  34. package/src/map/load-data.ts +7 -1
  35. package/src/map/parser.ts +142 -33
  36. package/src/map/renderer.ts +57 -6
  37. package/src/map/resolved-types.ts +21 -2
  38. package/src/map/resolver.ts +219 -53
  39. package/src/map/types.ts +57 -14
  40. package/src/utils/reserved-key-registry.ts +7 -7
  41. package/dist/advanced.d.cts +0 -5290
  42. package/dist/advanced.d.ts +0 -5290
  43. package/dist/auto.d.cts +0 -39
  44. package/dist/auto.d.ts +0 -39
  45. package/dist/index.d.cts +0 -336
  46. package/dist/index.d.ts +0 -336
  47. package/dist/internal.d.cts +0 -5290
  48. package/dist/internal.d.ts +0 -5290
package/dist/editor.cjs CHANGED
@@ -190,13 +190,17 @@ var DIRECTIVE_KEYWORDS = /* @__PURE__ */ new Set([
190
190
  // Map (§24B) directives
191
191
  "region",
192
192
  "projection",
193
- "metric",
194
- "size-metric",
193
+ "region-metric",
194
+ "poi-metric",
195
+ "flow-metric",
195
196
  "region-labels",
196
197
  "poi-labels",
197
198
  "default-country",
198
199
  "default-state",
199
200
  "no-legend",
201
+ "no-insets",
202
+ "muted",
203
+ "natural",
200
204
  "subtitle",
201
205
  "caption",
202
206
  "poi",
package/dist/editor.js CHANGED
@@ -160,13 +160,17 @@ var DIRECTIVE_KEYWORDS = /* @__PURE__ */ new Set([
160
160
  // Map (§24B) directives
161
161
  "region",
162
162
  "projection",
163
- "metric",
164
- "size-metric",
163
+ "region-metric",
164
+ "poi-metric",
165
+ "flow-metric",
165
166
  "region-labels",
166
167
  "poi-labels",
167
168
  "default-country",
168
169
  "default-state",
169
170
  "no-legend",
171
+ "no-insets",
172
+ "muted",
173
+ "natural",
170
174
  "subtitle",
171
175
  "caption",
172
176
  "poi",
@@ -151,13 +151,17 @@ var DIRECTIVE_KEYWORDS = /* @__PURE__ */ new Set([
151
151
  // Map (§24B) directives
152
152
  "region",
153
153
  "projection",
154
- "metric",
155
- "size-metric",
154
+ "region-metric",
155
+ "poi-metric",
156
+ "flow-metric",
156
157
  "region-labels",
157
158
  "poi-labels",
158
159
  "default-country",
159
160
  "default-state",
160
161
  "no-legend",
162
+ "no-insets",
163
+ "muted",
164
+ "natural",
161
165
  "subtitle",
162
166
  "caption",
163
167
  "poi",
package/dist/highlight.js CHANGED
@@ -122,13 +122,17 @@ var DIRECTIVE_KEYWORDS = /* @__PURE__ */ new Set([
122
122
  // Map (§24B) directives
123
123
  "region",
124
124
  "projection",
125
- "metric",
126
- "size-metric",
125
+ "region-metric",
126
+ "poi-metric",
127
+ "flow-metric",
127
128
  "region-labels",
128
129
  "poi-labels",
129
130
  "default-country",
130
131
  "default-state",
131
132
  "no-legend",
133
+ "no-insets",
134
+ "muted",
135
+ "natural",
132
136
  "subtitle",
133
137
  "caption",
134
138
  "poi",