gl-draw 0.14.39 → 0.14.40
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/plugins/Worker/getAttributes/conicPolygon.d.ts +1 -2
- package/dist/plugins/Worker/getAttributes/extrudePolygon.d.ts +1 -2
- package/dist/plugins/index.js +1 -1
- package/dist/plugins/index.module.js +22 -22
- package/dist/projection.d.ts +1 -1
- package/dist/utils/getProjection.d.ts +2 -2
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.module.js +16 -16
- package/package.json +1 -1
package/dist/projection.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { geoMercator, GeoProjection, geoEquirectangular } from 'd3-geo';
|
|
2
|
-
import {
|
|
2
|
+
import { geoWinkel3 } from 'd3-geo-projection';
|
|
3
3
|
declare const projectionObj: {
|
|
4
4
|
mercator: typeof geoMercator;
|
|
5
5
|
equirectangular: typeof geoEquirectangular;
|
|
6
|
-
|
|
6
|
+
winkel3: typeof geoWinkel3;
|
|
7
7
|
};
|
|
8
8
|
export type ProjectionOptions = {
|
|
9
9
|
center: [number, number];
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../parseVector.js"),l=require("../isPlainObject.js"),u=require("../uvGenerator.js"),s=require("d3-geo"),g=require("d3-geo-projection"),j={mercator:s.geoMercator,equirectangular:s.geoEquirectangular,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../parseVector.js"),l=require("../isPlainObject.js"),u=require("../uvGenerator.js"),s=require("d3-geo"),g=require("d3-geo-projection"),j={mercator:s.geoMercator,equirectangular:s.geoEquirectangular,winkel3:g.geoWinkel3},o={},p=e=>{var a,n,i;const r=JSON.stringify(e);if(o[r])return o[r];const t=j[(a=e.projectionType)!=null?a:"mercator"]().center(e.center).scale(e.scale).translate((n=e.translate)!=null?n:[0,0]).precision((i=e.precision)!=null?i:.1);return e.rotate&&t.rotate(e.rotate),o[r]=t,t};exports.parseVector2=c.parseVector2;exports.parseVector3=c.parseVector3;exports.polar2Cartesian=c.polar2Cartesian;exports.colorCorrection=l.colorCorrection;exports.isPlainObject=l.isPlainObject;exports.claerUVGenerator=u.claerUVGenerator;exports.getUVGenerator=u.getUVGenerator;exports.getProjection=p;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
import { c as
|
|
1
|
+
import { b as x, p as V, a as b } from "../parseVector.module.js";
|
|
2
|
+
import { c as y, i as O } from "../isPlainObject.module.js";
|
|
3
3
|
import { c as C, g as G } from "../uvGenerator.module.js";
|
|
4
|
-
import { geoMercator as
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
mercator:
|
|
8
|
-
equirectangular:
|
|
9
|
-
|
|
10
|
-
}, a = {},
|
|
4
|
+
import { geoMercator as i, geoEquirectangular as s } from "d3-geo";
|
|
5
|
+
import { geoWinkel3 as l } from "d3-geo-projection";
|
|
6
|
+
const p = {
|
|
7
|
+
mercator: i,
|
|
8
|
+
equirectangular: s,
|
|
9
|
+
winkel3: l
|
|
10
|
+
}, a = {}, f = (r) => {
|
|
11
11
|
var o, c, n;
|
|
12
12
|
const e = JSON.stringify(r);
|
|
13
13
|
if (a[e])
|
|
14
14
|
return a[e];
|
|
15
|
-
const t =
|
|
15
|
+
const t = p[(o = r.projectionType) != null ? o : "mercator"]().center(r.center).scale(r.scale).translate((c = r.translate) != null ? c : [0, 0]).precision((n = r.precision) != null ? n : 0.1);
|
|
16
16
|
return r.rotate && t.rotate(r.rotate), a[e] = t, t;
|
|
17
17
|
};
|
|
18
18
|
export {
|
|
19
19
|
C as claerUVGenerator,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
y as colorCorrection,
|
|
21
|
+
f as getProjection,
|
|
22
22
|
G as getUVGenerator,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
O as isPlainObject,
|
|
24
|
+
x as parseVector2,
|
|
25
|
+
V as parseVector3,
|
|
26
|
+
b as polar2Cartesian
|
|
27
27
|
};
|