@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.
- package/dist/advanced.cjs +867 -286
- package/dist/advanced.js +866 -286
- package/dist/auto.cjs +635 -284
- package/dist/auto.js +113 -113
- package/dist/auto.mjs +635 -284
- package/dist/cli.cjs +156 -156
- package/dist/editor.cjs +6 -2
- package/dist/editor.js +6 -2
- package/dist/highlight.cjs +6 -2
- package/dist/highlight.js +6 -2
- package/dist/index.cjs +628 -281
- package/dist/index.js +628 -281
- package/dist/internal.cjs +867 -286
- package/dist/internal.js +866 -286
- package/dist/map-data/PROVENANCE.json +1 -1
- package/dist/map-data/mountain-ranges.json +1 -0
- package/docs/language-reference.md +27 -25
- package/gallery/fixtures/map-choropleth.dgmo +7 -7
- package/gallery/fixtures/map-direct-color.dgmo +10 -0
- package/gallery/fixtures/map-pois.dgmo +4 -4
- package/gallery/fixtures/map-region-scope.dgmo +8 -8
- package/gallery/fixtures/map-route.dgmo +5 -6
- package/package.json +1 -1
- package/src/advanced.ts +14 -0
- package/src/completion.ts +10 -4
- package/src/d3.ts +15 -9
- package/src/editor/keywords.ts +6 -2
- package/src/map/data/PROVENANCE.json +1 -1
- package/src/map/data/mountain-ranges.json +1 -0
- package/src/map/geo-query.ts +277 -0
- package/src/map/geo.ts +258 -1
- package/src/map/invert.ts +111 -0
- package/src/map/layout.ts +333 -139
- package/src/map/load-data.ts +7 -1
- package/src/map/parser.ts +142 -33
- package/src/map/renderer.ts +57 -6
- package/src/map/resolved-types.ts +21 -2
- package/src/map/resolver.ts +219 -53
- package/src/map/types.ts +57 -14
- package/src/utils/reserved-key-registry.ts +7 -7
- package/dist/advanced.d.cts +0 -5290
- package/dist/advanced.d.ts +0 -5290
- package/dist/auto.d.cts +0 -39
- package/dist/auto.d.ts +0 -39
- package/dist/index.d.cts +0 -336
- package/dist/index.d.ts +0 -336
- package/dist/internal.d.cts +0 -5290
- 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
|
-
"
|
|
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
|
-
"
|
|
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",
|
package/dist/highlight.cjs
CHANGED
|
@@ -151,13 +151,17 @@ var DIRECTIVE_KEYWORDS = /* @__PURE__ */ new Set([
|
|
|
151
151
|
// Map (§24B) directives
|
|
152
152
|
"region",
|
|
153
153
|
"projection",
|
|
154
|
-
"metric",
|
|
155
|
-
"
|
|
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
|
-
"
|
|
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",
|