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.
@@ -1,4 +1,4 @@
1
1
  declare module 'd3-geo-projection' {
2
2
  import {GeoProjection} from 'd3-geo';
3
- export function geoFahey(): GeoProjection;
3
+ export function geoWinkel3(): GeoProjection;
4
4
  }
@@ -1,9 +1,9 @@
1
1
  import { geoMercator, GeoProjection, geoEquirectangular } from 'd3-geo';
2
- import { geoFahey } from 'd3-geo-projection';
2
+ import { geoWinkel3 } from 'd3-geo-projection';
3
3
  declare const projectionObj: {
4
4
  mercator: typeof geoMercator;
5
5
  equirectangular: typeof geoEquirectangular;
6
- fahey: typeof geoFahey;
6
+ winkel3: typeof geoWinkel3;
7
7
  };
8
8
  export type ProjectionOptions = {
9
9
  center: [number, number];
@@ -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,fahey:g.geoFahey},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
+ "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 y, p as x, a as V } from "../parseVector.module.js";
2
- import { c as O, i as h } from "../isPlainObject.module.js";
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 s, geoEquirectangular as i } from "d3-geo";
5
- import { geoFahey as p } from "d3-geo-projection";
6
- const l = {
7
- mercator: s,
8
- equirectangular: i,
9
- fahey: p
10
- }, a = {}, m = (r) => {
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 = l[(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);
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
- O as colorCorrection,
21
- m as getProjection,
20
+ y as colorCorrection,
21
+ f as getProjection,
22
22
  G as getUVGenerator,
23
- h as isPlainObject,
24
- y as parseVector2,
25
- x as parseVector3,
26
- V as polar2Cartesian
23
+ O as isPlainObject,
24
+ x as parseVector2,
25
+ V as parseVector3,
26
+ b as polar2Cartesian
27
27
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gl-draw",
3
- "version": "0.14.39",
3
+ "version": "0.14.40",
4
4
  "author": "gitplus <hstits@gmail.com>",
5
5
  "scripts": {
6
6
  "start": "bundler-dev",