@diagrammo/dgmo 0.20.2 → 0.20.3
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 +2 -0
- package/dist/advanced.js +2 -0
- package/dist/auto.cjs +3 -1
- package/dist/auto.js +12 -12
- package/dist/auto.mjs +3 -1
- package/dist/cli.cjs +20 -20
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/dist/internal.cjs +2 -0
- package/dist/internal.js +2 -0
- package/package.json +1 -1
- package/src/map/layout.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -46557,6 +46557,8 @@ function layoutMap(resolved, data, size, opts) {
|
|
|
46557
46557
|
if (layerKind === "us-state" && usContext && INSET_STATES.has(iso))
|
|
46558
46558
|
continue;
|
|
46559
46559
|
if (layerKind === "country" && usContext && iso === "US") continue;
|
|
46560
|
+
if (layerKind === "country" && iso === "AQ" && !regionById.has("AQ"))
|
|
46561
|
+
continue;
|
|
46560
46562
|
const r = regionById.get(iso);
|
|
46561
46563
|
const viewF = shouldCull ? cullFeatureToView(f) : dropFrameFillers(f);
|
|
46562
46564
|
if (!viewF) continue;
|
package/dist/index.js
CHANGED
|
@@ -46582,6 +46582,8 @@ function layoutMap(resolved, data, size, opts) {
|
|
|
46582
46582
|
if (layerKind === "us-state" && usContext && INSET_STATES.has(iso))
|
|
46583
46583
|
continue;
|
|
46584
46584
|
if (layerKind === "country" && usContext && iso === "US") continue;
|
|
46585
|
+
if (layerKind === "country" && iso === "AQ" && !regionById.has("AQ"))
|
|
46586
|
+
continue;
|
|
46585
46587
|
const r = regionById.get(iso);
|
|
46586
46588
|
const viewF = shouldCull ? cullFeatureToView(f) : dropFrameFillers(f);
|
|
46587
46589
|
if (!viewF) continue;
|
package/dist/internal.cjs
CHANGED
|
@@ -46851,6 +46851,8 @@ function layoutMap(resolved, data, size, opts) {
|
|
|
46851
46851
|
if (layerKind === "us-state" && usContext && INSET_STATES.has(iso))
|
|
46852
46852
|
continue;
|
|
46853
46853
|
if (layerKind === "country" && usContext && iso === "US") continue;
|
|
46854
|
+
if (layerKind === "country" && iso === "AQ" && !regionById.has("AQ"))
|
|
46855
|
+
continue;
|
|
46854
46856
|
const r = regionById.get(iso);
|
|
46855
46857
|
const viewF = shouldCull ? cullFeatureToView(f) : dropFrameFillers(f);
|
|
46856
46858
|
if (!viewF) continue;
|
package/dist/internal.js
CHANGED
|
@@ -46876,6 +46876,8 @@ function layoutMap(resolved, data, size, opts) {
|
|
|
46876
46876
|
if (layerKind === "us-state" && usContext && INSET_STATES.has(iso))
|
|
46877
46877
|
continue;
|
|
46878
46878
|
if (layerKind === "country" && usContext && iso === "US") continue;
|
|
46879
|
+
if (layerKind === "country" && iso === "AQ" && !regionById.has("AQ"))
|
|
46880
|
+
continue;
|
|
46879
46881
|
const r = regionById.get(iso);
|
|
46880
46882
|
const viewF = shouldCull ? cullFeatureToView(f) : dropFrameFillers(f);
|
|
46881
46883
|
if (!viewF) continue;
|
package/package.json
CHANGED
package/src/map/layout.ts
CHANGED
|
@@ -976,6 +976,13 @@ export function layoutMap(
|
|
|
976
976
|
// redundant US country polygon underneath it (it only adds a coarser base
|
|
977
977
|
// and a doubled outline).
|
|
978
978
|
if (layerKind === 'country' && usContext && iso === 'US') continue;
|
|
979
|
+
// Antarctica is omitted from the world basemap. The natural-earth world
|
|
980
|
+
// frame is clamped to ~-58°N and global views take the stretch path (no
|
|
981
|
+
// clipExtent), so AQ's -90° geometry projects below the frame and spills
|
|
982
|
+
// out the bottom of the canvas as a distorted strip. Data world maps omit
|
|
983
|
+
// Antarctica by convention anyway. Keep it only if explicitly referenced.
|
|
984
|
+
if (layerKind === 'country' && iso === 'AQ' && !regionById.has('AQ'))
|
|
985
|
+
continue;
|
|
979
986
|
const r = regionById.get(iso);
|
|
980
987
|
// Cull off-view land in a regional view; in a global view keep all land
|
|
981
988
|
// but still drop antimeridian frame-fillers (Fiji et al.).
|