@performant-software/geospatial 3.1.3 → 3.1.4
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/index.cjs100.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs133.js +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs173.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs182.js +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs209.js +1 -7
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +7 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs41.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs74.js +1 -743
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs76.js +9 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +17 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js +743 -9
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js +1 -17
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es106.js +3 -3
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +2 -2
- package/dist/index.es109.js +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es117.js +1 -1
- package/dist/index.es120.js +2 -2
- package/dist/index.es121.js +2 -2
- package/dist/index.es122.js +1 -1
- package/dist/index.es126.js +2 -2
- package/dist/index.es129.js +1 -1
- package/dist/index.es133.js +1 -1
- package/dist/index.es136.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es145.js +1 -1
- package/dist/index.es146.js +1 -1
- package/dist/index.es147.js +2 -2
- package/dist/index.es148.js +1 -1
- package/dist/index.es149.js +1 -1
- package/dist/index.es150.js +1 -1
- package/dist/index.es152.js +2 -2
- package/dist/index.es153.js +2 -2
- package/dist/index.es154.js +1 -1
- package/dist/index.es155.js +1 -1
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +2 -2
- package/dist/index.es160.js +1 -1
- package/dist/index.es163.js +2 -2
- package/dist/index.es164.js +2 -2
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +1 -1
- package/dist/index.es168.js +2 -2
- package/dist/index.es169.js +1 -1
- package/dist/index.es170.js +2 -2
- package/dist/index.es171.js +1 -1
- package/dist/index.es172.js +1 -1
- package/dist/index.es173.js +1 -1
- package/dist/index.es179.js +1 -1
- package/dist/index.es180.js +2 -2
- package/dist/index.es181.js +1 -1
- package/dist/index.es182.js +1 -1
- package/dist/index.es183.js +1 -1
- package/dist/index.es188.js +1 -1
- package/dist/index.es189.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +2 -2
- package/dist/index.es193.js +3 -3
- package/dist/index.es194.js +1 -1
- package/dist/index.es195.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es198.js +2 -2
- package/dist/index.es199.js +3 -3
- package/dist/index.es209.js +7 -7506
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es210.js +5 -2
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +4 -8
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +3 -5
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +3 -4
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +9 -3
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +19 -3
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +20 -8
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +10 -16
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +12 -18
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +5 -12
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es220.js +7 -14
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +6 -5
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +20 -6
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +8 -5
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +9 -22
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +4 -10
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +11 -9
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +8 -4
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +19 -9
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +10 -7
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es230.js +17 -20
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +4 -11
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +16 -16
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +12 -4
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +3 -17
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +4 -11
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +7506 -3
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +2 -5
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es240.js +3 -25
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +7 -16
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +5 -30
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +23 -20
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +15 -73
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +30 -20
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +21 -40
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +72 -47
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +20 -7
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +40 -20
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es250.js +46 -62
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +7 -42
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +20 -63
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +64 -7
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +42 -3
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +63 -12
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +7 -58
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +3 -49
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +13 -3
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +58 -6
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es260.js +49 -5
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +2 -15
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +4 -2
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +15 -69
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +69 -4
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es27.js +1 -1
- package/dist/index.es31.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +2 -2
- package/dist/index.es41.js +2 -2
- package/dist/index.es42.js +2 -2
- package/dist/index.es43.js +2 -2
- package/dist/index.es45.js +1 -1
- package/dist/index.es46.js +2 -2
- package/dist/index.es47.js +2 -2
- package/dist/index.es49.js +1 -1
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +1 -1
- package/dist/index.es55.js +2 -2
- package/dist/index.es56.js +3 -3
- package/dist/index.es57.js +1 -1
- package/dist/index.es59.js +1 -1
- package/dist/index.es60.js +1 -1
- package/dist/index.es62.js +1 -1
- package/dist/index.es74.js +7 -21351
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es76.js +25 -7
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +589 -2
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js +21351 -25
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js +2 -589
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es97.js +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
package/dist/index.es252.js
CHANGED
|
@@ -1,67 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
point: function(c, a) {
|
|
21
|
-
var r = [c, a], t, f = h(c, a), I = C ? f ? 0 : K(c, a) : f ? K(c + (c < 0 ? v : -v), a) : 0;
|
|
22
|
-
if (!i && (z = e = f) && n.lineStart(), f !== e && (t = H(i, r), (!t || J(i, t) || J(r, t)) && (r[0] += x, r[1] += x, f = h(r[0], r[1]))), f !== e)
|
|
23
|
-
u = 0, f ? (n.lineStart(), t = H(r, i), n.point(t[0], t[1])) : (t = H(i, r), n.point(t[0], t[1]), n.lineEnd()), i = t;
|
|
24
|
-
else if (W && i && C ^ f) {
|
|
25
|
-
var l;
|
|
26
|
-
!(I & o) && (l = H(r, i, !0)) && (u = 0, C ? (n.lineStart(), n.point(l[0][0], l[0][1]), n.point(l[1][0], l[1][1]), n.lineEnd()) : (n.point(l[1][0], l[1][1]), n.lineEnd(), n.lineStart(), n.point(l[0][0], l[0][1])));
|
|
27
|
-
}
|
|
28
|
-
f && (!i || !J(i, r)) && n.point(r[0], r[1]), i = r, e = f, o = I;
|
|
29
|
-
},
|
|
30
|
-
lineEnd: function() {
|
|
31
|
-
e && n.lineEnd(), i = null;
|
|
32
|
-
},
|
|
33
|
-
// Rejoin first and last segments if there were intersections and the first
|
|
34
|
-
// and last points were visible.
|
|
35
|
-
clean: function() {
|
|
36
|
-
return u | (z && e) << 1;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function H(n, i, o) {
|
|
41
|
-
var e = Q(n), z = Q(i), u = [1, 0, 0], c = T(e, z), a = R(c, c), r = c[0], t = a - r * r;
|
|
42
|
-
if (!t) return !o && n;
|
|
43
|
-
var f = A * a / t, I = -A * r / t, l = T(u, c), d = g(u, f), Z = g(c, I);
|
|
44
|
-
y(d, Z);
|
|
45
|
-
var B = l, L = R(d, B), j = R(B, B), M = L * L - j * (R(d, d) - 1);
|
|
46
|
-
if (!(M < 0)) {
|
|
47
|
-
var N = b(M), p = g(B, (-L - N) / j);
|
|
48
|
-
if (y(p, d), p = U(p), !o) return p;
|
|
49
|
-
var E = n[0], D = i[0], s = n[1], q = i[1], P;
|
|
50
|
-
D < E && (P = E, E = D, D = P);
|
|
51
|
-
var k = D - E, w = G(k - v) < x, _ = w || k < x;
|
|
52
|
-
if (!w && q < s && (P = s, s = q, q = P), _ ? w ? s + q > 0 ^ p[1] < (G(p[0] - E) < x ? s : q) : s <= p[1] && p[1] <= q : k > v ^ (E <= p[0] && p[0] <= D)) {
|
|
53
|
-
var O = g(B, (-L + N) / j);
|
|
54
|
-
return y(O, d), [p, U(O)];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function K(n, i) {
|
|
59
|
-
var o = C ? S : v - S, e = 0;
|
|
60
|
-
return n < -o ? e |= 1 : n > o && (e |= 2), i < -o ? e |= 4 : i > o && (e |= 8), e;
|
|
61
|
-
}
|
|
62
|
-
return m(h, Y, X, C ? [0, -S] : [-v, S - v]);
|
|
1
|
+
import { atan2 as f, asin as s, sqrt as m, sin as i, cos as o } from "./index.es246.js";
|
|
2
|
+
function z(u) {
|
|
3
|
+
return function(n, r) {
|
|
4
|
+
var t = o(n), c = o(r), a = u(t * c);
|
|
5
|
+
return [
|
|
6
|
+
a * c * i(n),
|
|
7
|
+
a * i(r)
|
|
8
|
+
];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
function h(u) {
|
|
12
|
+
return function(n, r) {
|
|
13
|
+
var t = m(n * n + r * r), c = u(t), a = i(c), e = o(c);
|
|
14
|
+
return [
|
|
15
|
+
f(n * a, t * e),
|
|
16
|
+
s(t && r * a / t)
|
|
17
|
+
];
|
|
18
|
+
};
|
|
63
19
|
}
|
|
64
20
|
export {
|
|
65
|
-
|
|
21
|
+
h as azimuthalInvert,
|
|
22
|
+
z as azimuthalRaw
|
|
66
23
|
};
|
|
67
24
|
//# sourceMappingURL=index.es252.js.map
|
package/dist/index.es252.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es252.js","sources":["../../../node_modules/d3-geo/src/clip/circle.js"],"sourcesContent":["import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian\";\nimport {circleStream} from \"../circle\";\nimport {abs, cos, epsilon, pi, sqrt} from \"../math\";\nimport pointEqual from \"../pointEqual\";\nimport clip from \"./index\";\n\nexport default function(radius, delta) {\n var cr = cos(radius),\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n"],"names":["clipCircle","radius","delta","cr","cos","smallRadius","notHemisphere","abs","epsilon","interpolate","from","to","direction","stream","circleStream","visible","lambda","phi","clipLine","point0","c0","v0","v00","clean","point1","point2","v","c","code","pi","intersect","pointEqual","t","a","b","two","pa","cartesian","pb","n1","n2","cartesianCross","n2n2","cartesianDot","n1n2","determinant","c1","c2","n1xn2","A","cartesianScale","B","cartesianAddInPlace","u","w","uu","t2","sqrt","q","spherical","lambda0","lambda1","phi0","phi1","z","polar","meridian","q1","r","clip"],"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B,KAAM+B,KAAWF,EAAE,CAAC,KAAKA,EAAE,CAAC,KAAKG,IAAU;AACvD,YAAIM,IAAKjB,EAAeG,IAAI,CAACC,IAAItB,KAAKuB,CAAE;AACxC,eAAAH,EAAoBe,GAAIlB,CAAC,GAClB,CAACS,GAAGC,EAAUQ,CAAE,CAAC;AAAA,MAC1B;AAAA;AAAA,EACF;AAIA,WAASvC,EAAKZ,GAAQC,GAAK;AACzB,QAAImD,IAAI/D,IAAcJ,IAAS4B,IAAK5B,GAChC2B,IAAO;AACX,WAAIZ,IAAS,CAACoD,IAAGxC,KAAQ,IAChBZ,IAASoD,MAAGxC,KAAQ,IACzBX,IAAM,CAACmD,IAAGxC,KAAQ,IACbX,IAAMmD,MAAGxC,KAAQ,IACnBA;AAAAA,EACT;AAEA,SAAOyC,EAAKtD,GAASG,GAAUT,GAAaJ,IAAc,CAAC,GAAG,CAACJ,CAAM,IAAI,CAAC,CAAC4B,GAAI5B,IAAS4B,CAAE,CAAC;AAC7F;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es252.js","sources":["../../../node_modules/d3-geo/src/projection/azimuthal.js"],"sourcesContent":["import {asin, atan2, cos, sin, sqrt} from \"../math\";\n\nexport function azimuthalRaw(scale) {\n return function(x, y) {\n var cx = cos(x),\n cy = cos(y),\n k = scale(cx * cy);\n return [\n k * cy * sin(x),\n k * sin(y)\n ];\n }\n}\n\nexport function azimuthalInvert(angle) {\n return function(x, y) {\n var z = sqrt(x * x + y * y),\n c = angle(z),\n sc = sin(c),\n cc = cos(c);\n return [\n atan2(x * sc, z * cc),\n asin(z && y * sc / z)\n ];\n }\n}\n"],"names":["azimuthalRaw","scale","x","y","cx","cos","cy","k","sin","azimuthalInvert","angle","z","sqrt","sc","cc","atan2","asin"],"mappings":";AAEO,SAASA,EAAaC,GAAO;AAClC,SAAO,SAASC,GAAGC,GAAG;AACpB,QAAIC,IAAKC,EAAIH,CAAC,GACVI,IAAKD,EAAIF,CAAC,GACVI,IAAIN,EAAMG,IAAKE,CAAE;AACrB,WAAO;AAAA,MACLC,IAAID,IAAKE,EAAIN,CAAC;AAAA,MACdK,IAAIC,EAAIL,CAAC;AAAA,IAAA;AAAA,EAEb;AACF;AAEO,SAASM,EAAgBC,GAAO;AACrC,SAAO,SAASR,GAAGC,GAAG;AACpB,QAAIQ,IAAIC,EAAKV,IAAIA,IAAIC,IAAIA,CAAC,GACtB,IAAIO,EAAMC,CAAC,GACXE,IAAKL,EAAI,CAAC,GACVM,IAAKT,EAAI,CAAC;AACd,WAAO;AAAA,MACLU,EAAMb,IAAIW,GAAIF,IAAIG,CAAE;AAAA,MACpBE,EAAKL,KAAKR,IAAIU,IAAKF,CAAC;AAAA,IAAA;AAAA,EAExB;AACF;","x_google_ignoreList":[0]}
|
package/dist/index.es253.js
CHANGED
|
@@ -1,12 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import P from "./index.es254.js";
|
|
2
|
+
import D from "./index.es255.js";
|
|
3
|
+
import { clipExtent as F } from "./index.es247.js";
|
|
4
|
+
import H from "./index.es256.js";
|
|
5
|
+
import T from "./index.es257.js";
|
|
6
|
+
import { radians as n, degrees as i, sqrt as I } from "./index.es246.js";
|
|
7
|
+
import { rotateRadians as J } from "./index.es191.js";
|
|
8
|
+
import { transformer as K } from "./index.es197.js";
|
|
9
|
+
import { fitExtent as N, fitSize as O } from "./index.es258.js";
|
|
10
|
+
import w from "./index.es259.js";
|
|
11
|
+
var Q = K({
|
|
12
|
+
point: function(o, u) {
|
|
13
|
+
this.stream.point(o * n, u * n);
|
|
4
14
|
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
});
|
|
16
|
+
function et(o) {
|
|
17
|
+
return U(function() {
|
|
18
|
+
return o;
|
|
19
|
+
})();
|
|
20
|
+
}
|
|
21
|
+
function U(o) {
|
|
22
|
+
var u, e = 150, g = 480, d = 250, l, m, h = 0, j = 0, v = 0, x = 0, y = 0, q, E, R = null, C = P, f = null, S, b, z, G = T, A = 0.5, L = w(M, A), s, k;
|
|
23
|
+
function r(t) {
|
|
24
|
+
return t = E(t[0] * n, t[1] * n), [t[0] * e + l, m - t[1] * e];
|
|
25
|
+
}
|
|
26
|
+
function B(t) {
|
|
27
|
+
return t = E.invert((t[0] - l) / e, (m - t[1]) / e), t && [t[0] * i, t[1] * i];
|
|
28
|
+
}
|
|
29
|
+
function M(t, c) {
|
|
30
|
+
return t = u(t, c), [t[0] * e + l, m - t[1] * e];
|
|
31
|
+
}
|
|
32
|
+
r.stream = function(t) {
|
|
33
|
+
return s && k === t ? s : s = Q(C(q, L(G(k = t))));
|
|
34
|
+
}, r.clipAngle = function(t) {
|
|
35
|
+
return arguments.length ? (C = +t ? D(R = t * n, 6 * n) : (R = null, P), p()) : R * i;
|
|
36
|
+
}, r.clipExtent = function(t) {
|
|
37
|
+
return arguments.length ? (G = t == null ? (f = S = b = z = null, T) : F(f = +t[0][0], S = +t[0][1], b = +t[1][0], z = +t[1][1]), p()) : f == null ? null : [[f, S], [b, z]];
|
|
38
|
+
}, r.scale = function(t) {
|
|
39
|
+
return arguments.length ? (e = +t, a()) : e;
|
|
40
|
+
}, r.translate = function(t) {
|
|
41
|
+
return arguments.length ? (g = +t[0], d = +t[1], a()) : [g, d];
|
|
42
|
+
}, r.center = function(t) {
|
|
43
|
+
return arguments.length ? (h = t[0] % 360 * n, j = t[1] % 360 * n, a()) : [h * i, j * i];
|
|
44
|
+
}, r.rotate = function(t) {
|
|
45
|
+
return arguments.length ? (v = t[0] % 360 * n, x = t[1] % 360 * n, y = t.length > 2 ? t[2] % 360 * n : 0, a()) : [v * i, x * i, y * i];
|
|
46
|
+
}, r.precision = function(t) {
|
|
47
|
+
return arguments.length ? (L = w(M, A = t * t), p()) : I(A);
|
|
48
|
+
}, r.fitExtent = function(t, c) {
|
|
49
|
+
return N(r, t, c);
|
|
50
|
+
}, r.fitSize = function(t, c) {
|
|
51
|
+
return O(r, t, c);
|
|
52
|
+
};
|
|
53
|
+
function a() {
|
|
54
|
+
E = H(q = J(v, x, y), u);
|
|
55
|
+
var t = u(h, j);
|
|
56
|
+
return l = g - t[0] * e, m = d + t[1] * e, p();
|
|
57
|
+
}
|
|
58
|
+
function p() {
|
|
59
|
+
return s = k = null, r;
|
|
60
|
+
}
|
|
61
|
+
return function() {
|
|
62
|
+
return u = o.apply(this, arguments), r.invert = u.invert && B, a();
|
|
63
|
+
};
|
|
8
64
|
}
|
|
9
65
|
export {
|
|
10
|
-
|
|
66
|
+
et as default,
|
|
67
|
+
U as projectionMutator
|
|
11
68
|
};
|
|
12
69
|
//# sourceMappingURL=index.es253.js.map
|
package/dist/index.es253.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es253.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es253.js","sources":["../../../node_modules/d3-geo/src/projection/index.js"],"sourcesContent":["import clipAntimeridian from \"../clip/antimeridian\";\nimport clipCircle from \"../clip/circle\";\nimport {clipExtent} from \"../clip/extent\";\nimport compose from \"../compose\";\nimport identity from \"../identity\";\nimport {degrees, radians, sqrt} from \"../math\";\nimport {rotateRadians} from \"../rotation\";\nimport {transformer} from \"../transform\";\nimport {fitExtent, fitSize} from \"./fit\";\nimport resample from \"./resample\";\n\nvar transformRadians = transformer({\n point: function(x, y) {\n this.stream.point(x * radians, y * radians);\n }\n});\n\nexport default function projection(project) {\n return projectionMutator(function() { return project; })();\n}\n\nexport function projectionMutator(projectAt) {\n var project,\n k = 150, // scale\n x = 480, y = 250, // translate\n dx, dy, lambda = 0, phi = 0, // center\n deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, projectRotate, // rotate\n theta = null, preclip = clipAntimeridian, // clip angle\n x0 = null, y0, x1, y1, postclip = identity, // clip extent\n delta2 = 0.5, projectResample = resample(projectTransform, delta2), // precision\n cache,\n cacheStream;\n\n function projection(point) {\n point = projectRotate(point[0] * radians, point[1] * radians);\n return [point[0] * k + dx, dy - point[1] * k];\n }\n\n function invert(point) {\n point = projectRotate.invert((point[0] - dx) / k, (dy - point[1]) / k);\n return point && [point[0] * degrees, point[1] * degrees];\n }\n\n function projectTransform(x, y) {\n return x = project(x, y), [x[0] * k + dx, dy - x[1] * k];\n }\n\n projection.stream = function(stream) {\n return cache && cacheStream === stream ? cache : cache = transformRadians(preclip(rotate, projectResample(postclip(cacheStream = stream))));\n };\n\n projection.clipAngle = function(_) {\n return arguments.length ? (preclip = +_ ? clipCircle(theta = _ * radians, 6 * radians) : (theta = null, clipAntimeridian), reset()) : theta * degrees;\n };\n\n projection.clipExtent = function(_) {\n return arguments.length ? (postclip = _ == null ? (x0 = y0 = x1 = y1 = null, identity) : clipExtent(x0 = +_[0][0], y0 = +_[0][1], x1 = +_[1][0], y1 = +_[1][1]), reset()) : x0 == null ? null : [[x0, y0], [x1, y1]];\n };\n\n projection.scale = function(_) {\n return arguments.length ? (k = +_, recenter()) : k;\n };\n\n projection.translate = function(_) {\n return arguments.length ? (x = +_[0], y = +_[1], recenter()) : [x, y];\n };\n\n projection.center = function(_) {\n return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];\n };\n\n projection.rotate = function(_) {\n return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];\n };\n\n projection.precision = function(_) {\n return arguments.length ? (projectResample = resample(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);\n };\n\n projection.fitExtent = function(extent, object) {\n return fitExtent(projection, extent, object);\n };\n\n projection.fitSize = function(size, object) {\n return fitSize(projection, size, object);\n };\n\n function recenter() {\n projectRotate = compose(rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project);\n var center = project(lambda, phi);\n dx = x - center[0] * k;\n dy = y + center[1] * k;\n return reset();\n }\n\n function reset() {\n cache = cacheStream = null;\n return projection;\n }\n\n return function() {\n project = projectAt.apply(this, arguments);\n projection.invert = project.invert && invert;\n return recenter();\n };\n}\n"],"names":["transformRadians","transformer","x","y","radians","projection","project","projectionMutator","projectAt","k","dx","dy","lambda","phi","deltaLambda","deltaPhi","deltaGamma","rotate","projectRotate","theta","preclip","clipAntimeridian","x0","y0","x1","y1","postclip","identity","delta2","projectResample","resample","projectTransform","cache","cacheStream","point","invert","degrees","stream","_","clipCircle","reset","clipExtent","recenter","sqrt","extent","object","fitExtent","size","fitSize","compose","rotateRadians","center"],"mappings":";;;;;;;;;;AAWA,IAAIA,IAAmBC,EAAY;AAAA,EACjC,OAAO,SAASC,GAAGC,GAAG;AACpB,SAAK,OAAO,MAAMD,IAAIE,GAASD,IAAIC,CAAO;AAAA,EAC5C;AACF,CAAC;AAED,SAAwBC,GAAWC,GAAS;AAC1C,SAAOC,EAAkB,WAAW;AAAE,WAAOD;AAAA,EAAS,CAAC,EAAA;AACzD;AAEO,SAASC,EAAkBC,GAAW;AAC3C,MAAIF,GACAG,IAAI,KACJP,IAAI,KAAKC,IAAI,KACbO,GAAIC,GAAIC,IAAS,GAAGC,IAAM,GAC1BC,IAAc,GAAGC,IAAW,GAAGC,IAAa,GAAGC,GAAQC,GACvDC,IAAQ,MAAMC,IAAUC,GACxBC,IAAK,MAAMC,GAAIC,GAAIC,GAAIC,IAAWC,GAClCC,IAAS,KAAKC,IAAkBC,EAASC,GAAkBH,CAAM,GACjEI,GACAC;AAEJ,WAAS5B,EAAW6B,GAAO;AACzB,WAAAA,IAAQhB,EAAcgB,EAAM,CAAC,IAAI9B,GAAS8B,EAAM,CAAC,IAAI9B,CAAO,GACrD,CAAC8B,EAAM,CAAC,IAAIzB,IAAIC,GAAIC,IAAKuB,EAAM,CAAC,IAAIzB,CAAC;AAAA,EAC9C;AAEA,WAAS0B,EAAOD,GAAO;AACrB,WAAAA,IAAQhB,EAAc,QAAQgB,EAAM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,WAASA,IAAQ;AACf,WAAAR,IAAQC,IAAc,MACf5B;AAAAA,EACT;AAEA,SAAO,WAAW;AAChB,WAAAC,IAAUE,EAAU,MAAM,MAAM,SAAS,GACzCH,EAAW,SAASC,EAAQ,UAAU6B,GAC/BO,EAAA;AAAA,EACT;AACF;","x_google_ignoreList":[0]}
|
package/dist/index.es254.js
CHANGED
|
@@ -1,7 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import L from "./index.es264.js";
|
|
2
|
+
import { pi as f, halfPi as A, abs as N, epsilon as l, atan as P, sin as v, cos as S } from "./index.es246.js";
|
|
3
|
+
const j = L(
|
|
4
|
+
function() {
|
|
5
|
+
return !0;
|
|
6
|
+
},
|
|
7
|
+
d,
|
|
8
|
+
r,
|
|
9
|
+
[-f, -A]
|
|
10
|
+
);
|
|
11
|
+
function d(i) {
|
|
12
|
+
var p = NaN, t = NaN, n = NaN, o;
|
|
13
|
+
return {
|
|
14
|
+
lineStart: function() {
|
|
15
|
+
i.lineStart(), o = 1;
|
|
16
|
+
},
|
|
17
|
+
point: function(c, u) {
|
|
18
|
+
var e = c > 0 ? f : -f, E = N(c - p);
|
|
19
|
+
N(E - f) < l ? (i.point(p, t = (t + u) / 2 > 0 ? A : -A), i.point(n, t), i.lineEnd(), i.lineStart(), i.point(e, t), i.point(c, t), o = 0) : n !== e && E >= f && (N(p - n) < l && (p -= n * l), N(c - e) < l && (c -= e * l), t = g(p, t, c, u), i.point(n, t), i.lineEnd(), i.lineStart(), i.point(e, t), o = 0), i.point(p = c, t = u), n = e;
|
|
20
|
+
},
|
|
21
|
+
lineEnd: function() {
|
|
22
|
+
i.lineEnd(), p = t = NaN;
|
|
23
|
+
},
|
|
24
|
+
clean: function() {
|
|
25
|
+
return 2 - o;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function g(i, p, t, n) {
|
|
30
|
+
var o, c, u = v(i - t);
|
|
31
|
+
return N(u) > l ? P((v(p) * (c = S(n)) * v(t) - v(n) * (o = S(p)) * v(i)) / (o * c * u)) : (p + n) / 2;
|
|
32
|
+
}
|
|
33
|
+
function r(i, p, t, n) {
|
|
34
|
+
var o;
|
|
35
|
+
if (i == null)
|
|
36
|
+
o = t * A, n.point(-f, o), n.point(0, o), n.point(f, o), n.point(f, 0), n.point(f, -o), n.point(0, -o), n.point(-f, -o), n.point(-f, 0), n.point(-f, o);
|
|
37
|
+
else if (N(i[0] - p[0]) > l) {
|
|
38
|
+
var c = i[0] < p[0] ? f : -f;
|
|
39
|
+
o = t * c / 2, n.point(-c, o), n.point(0, o), n.point(c, o);
|
|
40
|
+
} else
|
|
41
|
+
n.point(p[0], p[1]);
|
|
3
42
|
}
|
|
4
43
|
export {
|
|
5
|
-
|
|
44
|
+
j as default
|
|
6
45
|
};
|
|
7
46
|
//# sourceMappingURL=index.es254.js.map
|
package/dist/index.es254.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es254.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es254.js","sources":["../../../node_modules/d3-geo/src/clip/antimeridian.js"],"sourcesContent":["import clip from \"./index\";\nimport {abs, atan, cos, epsilon, halfPi, pi, sin} from \"../math\";\n\nexport default clip(\n function() { return true; },\n clipAntimeridianLine,\n clipAntimeridianInterpolate,\n [-pi, -halfPi]\n);\n\n// Takes a line and cuts into visible segments. Return values: 0 - there were\n// intersections or the line was empty; 1 - no intersections; 2 - there were\n// intersections, and the first and last segments should be rejoined.\nfunction clipAntimeridianLine(stream) {\n var lambda0 = NaN,\n phi0 = NaN,\n sign0 = NaN,\n clean; // no intersections\n\n return {\n lineStart: function() {\n stream.lineStart();\n clean = 1;\n },\n point: function(lambda1, phi1) {\n var sign1 = lambda1 > 0 ? pi : -pi,\n delta = abs(lambda1 - lambda0);\n if (abs(delta - pi) < epsilon) { // line crosses a pole\n stream.point(lambda0, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n stream.point(lambda1, phi0);\n clean = 0;\n } else if (sign0 !== sign1 && delta >= pi) { // line crosses antimeridian\n if (abs(lambda0 - sign0) < epsilon) lambda0 -= sign0 * epsilon; // handle degeneracies\n if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;\n phi0 = clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1);\n stream.point(sign0, phi0);\n stream.lineEnd();\n stream.lineStart();\n stream.point(sign1, phi0);\n clean = 0;\n }\n stream.point(lambda0 = lambda1, phi0 = phi1);\n sign0 = sign1;\n },\n lineEnd: function() {\n stream.lineEnd();\n lambda0 = phi0 = NaN;\n },\n clean: function() {\n return 2 - clean; // if intersections, rejoin first and last segments\n }\n };\n}\n\nfunction clipAntimeridianIntersect(lambda0, phi0, lambda1, phi1) {\n var cosPhi0,\n cosPhi1,\n sinLambda0Lambda1 = sin(lambda0 - lambda1);\n return abs(sinLambda0Lambda1) > epsilon\n ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1)\n - sin(phi1) * (cosPhi0 = cos(phi0)) * sin(lambda0))\n / (cosPhi0 * cosPhi1 * sinLambda0Lambda1))\n : (phi0 + phi1) / 2;\n}\n\nfunction clipAntimeridianInterpolate(from, to, direction, stream) {\n var phi;\n if (from == null) {\n phi = direction * halfPi;\n stream.point(-pi, phi);\n stream.point(0, phi);\n stream.point(pi, phi);\n stream.point(pi, 0);\n stream.point(pi, -phi);\n stream.point(0, -phi);\n stream.point(-pi, -phi);\n stream.point(-pi, 0);\n stream.point(-pi, phi);\n } else if (abs(from[0] - to[0]) > epsilon) {\n var lambda = from[0] < to[0] ? pi : -pi;\n phi = direction * lambda / 2;\n stream.point(-lambda, phi);\n stream.point(0, phi);\n stream.point(lambda, phi);\n } else {\n stream.point(to[0], to[1]);\n }\n}\n"],"names":["clipAntimeridian","clip","clipAntimeridianLine","clipAntimeridianInterpolate","pi","halfPi","stream","lambda0","phi0","sign0","clean","lambda1","phi1","sign1","delta","abs","epsilon","clipAntimeridianIntersect","cosPhi0","cosPhi1","sinLambda0Lambda1","sin","atan","cos","from","to","direction","phi","lambda"],"mappings":";;AAGA,MAAAA,IAAeC;AAAA,EACb,WAAW;AAAE,WAAO;AAAA,EAAM;AAAA,EAC1BC;AAAA,EACAC;AAAA,EACA,CAAC,CAACC,GAAI,CAACC,CAAM;AACf;AAKA,SAASH,EAAqBI,GAAQ;AACpC,MAAIC,IAAU,KACVC,IAAO,KACPC,IAAQ,KACRC;AAEJ,SAAO;AAAA,IACL,WAAW,WAAW;AACpB,MAAAJ,EAAO,UAAA,GACPI,IAAQ;AAAA,IACV;AAAA,IACA,OAAO,SAASC,GAASC,GAAM;AAC7B,UAAIC,IAAQF,IAAU,IAAIP,IAAK,CAACA,GAC5BU,IAAQC,EAAIJ,IAAUJ,CAAO;AACjC,MAAIQ,EAAID,IAAQV,CAAE,IAAIY,KACpBV,EAAO,MAAMC,GAASC,KAAQA,IAAOI,KAAQ,IAAI,IAAIP,IAAS,CAACA,CAAM,GACrEC,EAAO,MAAMG,GAAOD,CAAI,GACxBF,EAAO,QAAA,GACPA,EAAO,UAAA,GACPA,EAAO,MAAMO,GAAOL,CAAI,GACxBF,EAAO,MAAMK,GAASH,CAAI,GAC1BE,IAAQ,KACCD,MAAUI,KAASC,KAASV,MACjCW,EAAIR,IAAUE,CAAK,IAAIO,WAAoBP,IAAQO,IACnDD,EAAIJ,IAAUE,CAAK,IAAIG,WAAoBH,IAAQG,IACvDR,IAAOS,EAA0BV,GAASC,GAAMG,GAASC,CAAI,GAC7DN,EAAO,MAAMG,GAAOD,CAAI,GACxBF,EAAO,QAAA,GACPA,EAAO,UAAA,GACPA,EAAO,MAAMO,GAAOL,CAAI,GACxBE,IAAQ,IAEVJ,EAAO,MAAMC,IAAUI,GAASH,IAAOI,CAAI,GAC3CH,IAAQI;AAAA,IACV;AAAA,IACA,SAAS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AAA,EAC1B;AACE,IAAArB,EAAO,MAAMmB,EAAG,CAAC,GAAGA,EAAG,CAAC,CAAC;AAE7B;","x_google_ignoreList":[0]}
|
package/dist/index.es255.js
CHANGED
|
@@ -1,16 +1,67 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { cartesian as Q, cartesianCross as T, cartesianDot as R, cartesianScale as g, cartesianAddInPlace as y, spherical as U } from "./index.es245.js";
|
|
2
|
+
import { circleStream as $ } from "./index.es244.js";
|
|
3
|
+
import { pi as v, cos as F, epsilon as x, abs as G, sqrt as b } from "./index.es246.js";
|
|
4
|
+
import J from "./index.es262.js";
|
|
5
|
+
import m from "./index.es264.js";
|
|
6
|
+
function fn(S, V) {
|
|
7
|
+
var A = F(S), C = A > 0, W = G(A) > x;
|
|
8
|
+
function X(n, i, o, e) {
|
|
9
|
+
$(e, S, V, o, n, i);
|
|
10
|
+
}
|
|
11
|
+
function h(n, i) {
|
|
12
|
+
return F(n) * F(i) > A;
|
|
13
|
+
}
|
|
14
|
+
function Y(n) {
|
|
15
|
+
var i, o, e, z, u;
|
|
16
|
+
return {
|
|
17
|
+
lineStart: function() {
|
|
18
|
+
z = e = !1, u = 1;
|
|
19
|
+
},
|
|
20
|
+
point: function(c, a) {
|
|
21
|
+
var r = [c, a], t, f = h(c, a), I = C ? f ? 0 : K(c, a) : f ? K(c + (c < 0 ? v : -v), a) : 0;
|
|
22
|
+
if (!i && (z = e = f) && n.lineStart(), f !== e && (t = H(i, r), (!t || J(i, t) || J(r, t)) && (r[0] += x, r[1] += x, f = h(r[0], r[1]))), f !== e)
|
|
23
|
+
u = 0, f ? (n.lineStart(), t = H(r, i), n.point(t[0], t[1])) : (t = H(i, r), n.point(t[0], t[1]), n.lineEnd()), i = t;
|
|
24
|
+
else if (W && i && C ^ f) {
|
|
25
|
+
var l;
|
|
26
|
+
!(I & o) && (l = H(r, i, !0)) && (u = 0, C ? (n.lineStart(), n.point(l[0][0], l[0][1]), n.point(l[1][0], l[1][1]), n.lineEnd()) : (n.point(l[1][0], l[1][1]), n.lineEnd(), n.lineStart(), n.point(l[0][0], l[0][1])));
|
|
27
|
+
}
|
|
28
|
+
f && (!i || !J(i, r)) && n.point(r[0], r[1]), i = r, e = f, o = I;
|
|
29
|
+
},
|
|
30
|
+
lineEnd: function() {
|
|
31
|
+
e && n.lineEnd(), i = null;
|
|
32
|
+
},
|
|
33
|
+
// Rejoin first and last segments if there were intersections and the first
|
|
34
|
+
// and last points were visible.
|
|
35
|
+
clean: function() {
|
|
36
|
+
return u | (z && e) << 1;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function H(n, i, o) {
|
|
41
|
+
var e = Q(n), z = Q(i), u = [1, 0, 0], c = T(e, z), a = R(c, c), r = c[0], t = a - r * r;
|
|
42
|
+
if (!t) return !o && n;
|
|
43
|
+
var f = A * a / t, I = -A * r / t, l = T(u, c), d = g(u, f), Z = g(c, I);
|
|
44
|
+
y(d, Z);
|
|
45
|
+
var B = l, L = R(d, B), j = R(B, B), M = L * L - j * (R(d, d) - 1);
|
|
46
|
+
if (!(M < 0)) {
|
|
47
|
+
var N = b(M), p = g(B, (-L - N) / j);
|
|
48
|
+
if (y(p, d), p = U(p), !o) return p;
|
|
49
|
+
var E = n[0], D = i[0], s = n[1], q = i[1], P;
|
|
50
|
+
D < E && (P = E, E = D, D = P);
|
|
51
|
+
var k = D - E, w = G(k - v) < x, _ = w || k < x;
|
|
52
|
+
if (!w && q < s && (P = s, s = q, q = P), _ ? w ? s + q > 0 ^ p[1] < (G(p[0] - E) < x ? s : q) : s <= p[1] && p[1] <= q : k > v ^ (E <= p[0] && p[0] <= D)) {
|
|
53
|
+
var O = g(B, (-L + N) / j);
|
|
54
|
+
return y(O, d), [p, U(O)];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function K(n, i) {
|
|
59
|
+
var o = C ? S : v - S, e = 0;
|
|
60
|
+
return n < -o ? e |= 1 : n > o && (e |= 2), i < -o ? e |= 4 : i > o && (e |= 8), e;
|
|
61
|
+
}
|
|
62
|
+
return m(h, Y, X, C ? [0, -S] : [-v, S - v]);
|
|
11
63
|
}
|
|
12
64
|
export {
|
|
13
|
-
|
|
14
|
-
h as fitSize
|
|
65
|
+
fn as default
|
|
15
66
|
};
|
|
16
67
|
//# sourceMappingURL=index.es255.js.map
|
package/dist/index.es255.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es255.js","sources":["../../../node_modules/d3-geo/src/projection/fit.js"],"sourcesContent":["import {default as geoStream} from \"../stream\";\nimport boundsStream from \"../path/bounds\";\n\nexport function fitExtent(projection, extent, object) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n clip = projection.clipExtent && projection.clipExtent();\n\n projection\n .scale(150)\n .translate([0, 0]);\n\n if (clip != null) projection.clipExtent(null);\n\n geoStream(object, projection.stream(boundsStream));\n\n var b = boundsStream.result(),\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n\n if (clip != null) projection.clipExtent(clip);\n\n return projection\n .scale(k * 150)\n .translate([x, y]);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n"],"names":["fitExtent","projection","extent","object","w","h","clip","geoStream","boundsStream","b","k","x","y","fitSize","size"],"mappings":";;AAGO,SAASA,EAAUC,GAAYC,GAAQC,GAAQ;AACpD,MAAIC,IAAIF,EAAO,CAAC,EAAE,CAAC,IAAIA,EAAO,CAAC,EAAE,CAAC,GAC9BG,IAAIH,EAAO,CAAC,EAAE,CAAC,IAAIA,EAAO,CAAC,EAAE,CAAC,GAC9BI,IAAOL,EAAW,cAAcA,EAAW,WAAA;AAE/C,EAAAA,EACK,MAAM,GAAG,EACT,UAAU,CAAC,GAAG,CAAC,CAAC,GAEjBK,KAAQ,QAAML,EAAW,WAAW,IAAI,GAE5CM,EAAUJ,GAAQF,EAAW,OAAOO,CAAY,CAAC;AAEjD,MAAIC,IAAID,EAAa,OAAA,GACjBE,IAAI,KAAK,IAAIN,KAAKK,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,IAAIJ,KAAKI,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,EAAE,GAC7DE,IAAI,CAACT,EAAO,CAAC,EAAE,CAAC,KAAKE,IAAIM,KAAKD,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,MAAM,GACpDG,IAAI,CAACV,EAAO,CAAC,EAAE,CAAC,KAAKG,IAAIK,KAAKD,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,MAAM;AAExD,SAAIH,KAAQ,QAAML,EAAW,WAAWK,CAAI,GAErCL,EACF,MAAMS,IAAI,GAAG,EACb,UAAU,CAACC,GAAGC,CAAC,CAAC;AACvB;AAEO,SAASC,EAAQZ,GAAYa,GAAMX,GAAQ;AAChD,SAAOH,EAAUC,GAAY,CAAC,CAAC,GAAG,CAAC,GAAGa,CAAI,GAAGX,CAAM;AACrD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es255.js","sources":["../../../node_modules/d3-geo/src/clip/circle.js"],"sourcesContent":["import {cartesian, cartesianAddInPlace, cartesianCross, cartesianDot, cartesianScale, spherical} from \"../cartesian\";\nimport {circleStream} from \"../circle\";\nimport {abs, cos, epsilon, pi, sqrt} from \"../math\";\nimport pointEqual from \"../pointEqual\";\nimport clip from \"./index\";\n\nexport default function(radius, delta) {\n var cr = cos(radius),\n smallRadius = cr > 0,\n notHemisphere = abs(cr) > epsilon; // TODO optimise for this common case\n\n function interpolate(from, to, direction, stream) {\n circleStream(stream, radius, delta, direction, from, to);\n }\n\n function visible(lambda, phi) {\n return cos(lambda) * cos(phi) > cr;\n }\n\n // Takes a line and cuts into visible segments. Return values used for polygon\n // clipping: 0 - there were intersections or the line was empty; 1 - no\n // intersections 2 - there were intersections, and the first and last segments\n // should be rejoined.\n function clipLine(stream) {\n var point0, // previous point\n c0, // code for previous point\n v0, // visibility of previous point\n v00, // visibility of first point\n clean; // no intersections\n return {\n lineStart: function() {\n v00 = v0 = false;\n clean = 1;\n },\n point: function(lambda, phi) {\n var point1 = [lambda, phi],\n point2,\n v = visible(lambda, phi),\n c = smallRadius\n ? v ? 0 : code(lambda, phi)\n : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;\n if (!point0 && (v00 = v0 = v)) stream.lineStart();\n // Handle degeneracies.\n // TODO ignore if not clipping polygons.\n if (v !== v0) {\n point2 = intersect(point0, point1);\n if (!point2 || pointEqual(point0, point2) || pointEqual(point1, point2)) {\n point1[0] += epsilon;\n point1[1] += epsilon;\n v = visible(point1[0], point1[1]);\n }\n }\n if (v !== v0) {\n clean = 0;\n if (v) {\n // outside going in\n stream.lineStart();\n point2 = intersect(point1, point0);\n stream.point(point2[0], point2[1]);\n } else {\n // inside going out\n point2 = intersect(point0, point1);\n stream.point(point2[0], point2[1]);\n stream.lineEnd();\n }\n point0 = point2;\n } else if (notHemisphere && point0 && smallRadius ^ v) {\n var t;\n // If the codes for two points are different, or are both zero,\n // and there this segment intersects with the small circle.\n if (!(c & c0) && (t = intersect(point1, point0, true))) {\n clean = 0;\n if (smallRadius) {\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n } else {\n stream.point(t[1][0], t[1][1]);\n stream.lineEnd();\n stream.lineStart();\n stream.point(t[0][0], t[0][1]);\n }\n }\n }\n if (v && (!point0 || !pointEqual(point0, point1))) {\n stream.point(point1[0], point1[1]);\n }\n point0 = point1, v0 = v, c0 = c;\n },\n lineEnd: function() {\n if (v0) stream.lineEnd();\n point0 = null;\n },\n // Rejoin first and last segments if there were intersections and the first\n // and last points were visible.\n clean: function() {\n return clean | ((v00 && v0) << 1);\n }\n };\n }\n\n // Intersects the great circle between a and b with the clip circle.\n function intersect(a, b, two) {\n var pa = cartesian(a),\n pb = cartesian(b);\n\n // We have two planes, n1.p = d1 and n2.p = d2.\n // Find intersection line p(t) = c1 n1 + c2 n2 + t (n1 ⨯ n2).\n var n1 = [1, 0, 0], // normal\n n2 = cartesianCross(pa, pb),\n n2n2 = cartesianDot(n2, n2),\n n1n2 = n2[0], // cartesianDot(n1, n2),\n determinant = n2n2 - n1n2 * n1n2;\n\n // Two polar points.\n if (!determinant) return !two && a;\n\n var c1 = cr * n2n2 / determinant,\n c2 = -cr * n1n2 / determinant,\n n1xn2 = cartesianCross(n1, n2),\n A = cartesianScale(n1, c1),\n B = cartesianScale(n2, c2);\n cartesianAddInPlace(A, B);\n\n // Solve |p(t)|^2 = 1.\n var u = n1xn2,\n w = cartesianDot(A, u),\n uu = cartesianDot(u, u),\n t2 = w * w - uu * (cartesianDot(A, A) - 1);\n\n if (t2 < 0) return;\n\n var t = sqrt(t2),\n q = cartesianScale(u, (-w - t) / uu);\n cartesianAddInPlace(q, A);\n q = spherical(q);\n\n if (!two) return q;\n\n // Two intersection points.\n var lambda0 = a[0],\n lambda1 = b[0],\n phi0 = a[1],\n phi1 = b[1],\n z;\n\n if (lambda1 < lambda0) z = lambda0, lambda0 = lambda1, lambda1 = z;\n\n var delta = lambda1 - lambda0,\n polar = abs(delta - pi) < epsilon,\n meridian = polar || delta < epsilon;\n\n if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;\n\n // Check that the first point is between a and b.\n if (meridian\n ? polar\n ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda0) < epsilon ? phi0 : phi1)\n : phi0 <= q[1] && q[1] <= phi1\n : delta > pi ^ (lambda0 <= q[0] && q[0] <= lambda1)) {\n var q1 = cartesianScale(u, (-w + t) / uu);\n cartesianAddInPlace(q1, A);\n return [q, spherical(q1)];\n }\n }\n\n // Generates a 4-bit vector representing the location of a point relative to\n // the small circle's bounding box.\n function code(lambda, phi) {\n var r = smallRadius ? radius : pi - radius,\n code = 0;\n if (lambda < -r) code |= 1; // left\n else if (lambda > r) code |= 2; // right\n if (phi < -r) code |= 4; // below\n else if (phi > r) code |= 8; // above\n return code;\n }\n\n return clip(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);\n}\n"],"names":["clipCircle","radius","delta","cr","cos","smallRadius","notHemisphere","abs","epsilon","interpolate","from","to","direction","stream","circleStream","visible","lambda","phi","clipLine","point0","c0","v0","v00","clean","point1","point2","v","c","code","pi","intersect","pointEqual","t","a","b","two","pa","cartesian","pb","n1","n2","cartesianCross","n2n2","cartesianDot","n1n2","determinant","c1","c2","n1xn2","A","cartesianScale","B","cartesianAddInPlace","u","w","uu","t2","sqrt","q","spherical","lambda0","lambda1","phi0","phi1","z","polar","meridian","q1","r","clip"],"mappings":";;;;;AAMA,SAAAA,GAAwBC,GAAQC,GAAO;AACrC,MAAIC,IAAKC,EAAIH,CAAM,GACfI,IAAcF,IAAK,GACnBG,IAAgBC,EAAIJ,CAAE,IAAIK;AAE9B,WAASC,EAAYC,GAAMC,GAAIC,GAAWC,GAAQ;AAChD,IAAAC,EAAaD,GAAQZ,GAAQC,GAAOU,GAAWF,GAAMC,CAAE;AAAA,EACzD;AAEA,WAASI,EAAQC,GAAQC,GAAK;AAC5B,WAAOb,EAAIY,CAAM,IAAIZ,EAAIa,CAAG,IAAId;AAAA,EAClC;AAMA,WAASe,EAASL,GAAQ;AACxB,QAAIM,GACAC,GACAC,GACAC,GACAC;AACJ,WAAO;AAAA,MACL,WAAW,WAAW;AACpB,QAAAD,IAAMD,IAAK,IACXE,IAAQ;AAAA,MACV;AAAA,MACA,OAAO,SAASP,GAAQC,GAAK;AAC3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AACJ,CAAM,IAAI,CAAC,CAAC4B,GAAI5B,IAAS4B,CAAE,CAAC;AAC7F;","x_google_ignoreList":[0]}
|
package/dist/index.es256.js
CHANGED
|
@@ -1,63 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var I = 16, W = R(30 * U);
|
|
5
|
-
function h(e, t) {
|
|
6
|
-
return +t ? Y(e, t) : X(e);
|
|
7
|
-
}
|
|
8
|
-
function X(e) {
|
|
9
|
-
return V({
|
|
10
|
-
point: function(t, D) {
|
|
11
|
-
t = e(t, D), this.stream.point(t[0], t[1]);
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
function Y(e, t) {
|
|
16
|
-
function D(i, P, q, L, M, T, w, $, r, u, l, c, s, n) {
|
|
17
|
-
var E = w - i, S = $ - P, v = E * E + S * S;
|
|
18
|
-
if (v > 4 * t && s--) {
|
|
19
|
-
var p = L + u, a = M + l, g = T + c, y = Q(p * p + a * a + g * g), o = O(g /= y), f = B(B(g) - 1) < H || B(q - r) < H ? (q + r) / 2 : K(a, p), k = e(f, o), N = k[0], A = k[1], C = N - i, F = A - P, G = S * C - E * F;
|
|
20
|
-
(G * G / v > t || B((E * C + S * F) / v - 0.5) > 0.3 || L * u + M * l + T * c < W) && (D(i, P, q, L, M, T, N, A, f, p /= y, a /= y, g, s, n), n.point(N, A), D(N, A, f, p, a, g, w, $, r, u, l, c, s, n));
|
|
21
|
-
}
|
|
1
|
+
function o(t, e) {
|
|
2
|
+
function i(n, r) {
|
|
3
|
+
return n = t(n, r), e(n[0], n[1]);
|
|
22
4
|
}
|
|
23
|
-
return function(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
lineStart: S,
|
|
27
|
-
lineEnd: p,
|
|
28
|
-
polygonStart: function() {
|
|
29
|
-
i.polygonStart(), n.lineStart = a;
|
|
30
|
-
},
|
|
31
|
-
polygonEnd: function() {
|
|
32
|
-
i.polygonEnd(), n.lineStart = S;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
function E(o, f) {
|
|
36
|
-
o = e(o, f), i.point(o[0], o[1]);
|
|
37
|
-
}
|
|
38
|
-
function S() {
|
|
39
|
-
r = NaN, n.point = v, i.lineStart();
|
|
40
|
-
}
|
|
41
|
-
function v(o, f) {
|
|
42
|
-
var k = J([o, f]), N = e(o, f);
|
|
43
|
-
D(r, u, $, l, c, s, r = N[0], u = N[1], $ = o, l = k[0], c = k[1], s = k[2], I, i), i.point(r, u);
|
|
44
|
-
}
|
|
45
|
-
function p() {
|
|
46
|
-
n.point = E, i.lineEnd();
|
|
47
|
-
}
|
|
48
|
-
function a() {
|
|
49
|
-
S(), n.point = g, n.lineEnd = y;
|
|
50
|
-
}
|
|
51
|
-
function g(o, f) {
|
|
52
|
-
v(P = o, f), q = r, L = u, M = l, T = c, w = s, n.point = v;
|
|
53
|
-
}
|
|
54
|
-
function y() {
|
|
55
|
-
D(r, u, $, l, c, s, q, L, P, M, T, w, I, i), n.lineEnd = p, p();
|
|
56
|
-
}
|
|
57
|
-
return n;
|
|
58
|
-
};
|
|
5
|
+
return t.invert && e.invert && (i.invert = function(n, r) {
|
|
6
|
+
return n = e.invert(n, r), n && t.invert(n[0], n[1]);
|
|
7
|
+
}), i;
|
|
59
8
|
}
|
|
60
9
|
export {
|
|
61
|
-
|
|
10
|
+
o as default
|
|
62
11
|
};
|
|
63
12
|
//# sourceMappingURL=index.es256.js.map
|
package/dist/index.es256.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es256.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es256.js","sources":["../../../node_modules/d3-geo/src/compose.js"],"sourcesContent":["export default function(a, b) {\n\n function compose(x, y) {\n return x = a(x, y), b(x[0], x[1]);\n }\n\n if (a.invert && b.invert) compose.invert = function(x, y) {\n return x = b.invert(x, y), x && a.invert(x[0], x[1]);\n };\n\n return compose;\n}\n"],"names":["compose","a","b","x","y"],"mappings":"AAAA,SAAAA,EAAwBC,GAAGC,GAAG;AAE5B,WAASF,EAAQG,GAAGC,GAAG;AACrB,WAAOD,IAAIF,EAAEE,GAAGC,CAAC,GAAGF,EAAEC,EAAE,CAAC,GAAGA,EAAE,CAAC,CAAC;AAAA,EAClC;AAEA,SAAIF,EAAE,UAAUC,EAAE,aAAgB,SAAS,SAASC,GAAGC,GAAG;AACxD,WAAOD,IAAID,EAAE,OAAOC,GAAGC,CAAC,GAAGD,KAAKF,EAAE,OAAOE,EAAE,CAAC,GAAGA,EAAE,CAAC,CAAC;AAAA,EACrD,IAEOH;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es257.js
CHANGED
|
@@ -1,53 +1,7 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
var u = {
|
|
5
|
-
Feature: function(n, i) {
|
|
6
|
-
l(n.geometry, i);
|
|
7
|
-
},
|
|
8
|
-
FeatureCollection: function(n, i) {
|
|
9
|
-
for (var e = n.features, t = -1, o = e.length; ++t < o; ) l(e[t].geometry, i);
|
|
10
|
-
}
|
|
11
|
-
}, f = {
|
|
12
|
-
Sphere: function(n, i) {
|
|
13
|
-
i.sphere();
|
|
14
|
-
},
|
|
15
|
-
Point: function(n, i) {
|
|
16
|
-
n = n.coordinates, i.point(n[0], n[1], n[2]);
|
|
17
|
-
},
|
|
18
|
-
MultiPoint: function(n, i) {
|
|
19
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) n = e[t], i.point(n[0], n[1], n[2]);
|
|
20
|
-
},
|
|
21
|
-
LineString: function(n, i) {
|
|
22
|
-
a(n.coordinates, i, 0);
|
|
23
|
-
},
|
|
24
|
-
MultiLineString: function(n, i) {
|
|
25
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) a(e[t], i, 0);
|
|
26
|
-
},
|
|
27
|
-
Polygon: function(n, i) {
|
|
28
|
-
h(n.coordinates, i);
|
|
29
|
-
},
|
|
30
|
-
MultiPolygon: function(n, i) {
|
|
31
|
-
for (var e = n.coordinates, t = -1, o = e.length; ++t < o; ) h(e[t], i);
|
|
32
|
-
},
|
|
33
|
-
GeometryCollection: function(n, i) {
|
|
34
|
-
for (var e = n.geometries, t = -1, o = e.length; ++t < o; ) l(e[t], i);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
function a(n, i, e) {
|
|
38
|
-
var t = -1, o = n.length - e, r;
|
|
39
|
-
for (i.lineStart(); ++t < o; ) r = n[t], i.point(r[0], r[1], r[2]);
|
|
40
|
-
i.lineEnd();
|
|
41
|
-
}
|
|
42
|
-
function h(n, i) {
|
|
43
|
-
var e = -1, t = n.length;
|
|
44
|
-
for (i.polygonStart(); ++e < t; ) a(n[e], i, 1);
|
|
45
|
-
i.polygonEnd();
|
|
46
|
-
}
|
|
47
|
-
function g(n, i) {
|
|
48
|
-
n && u.hasOwnProperty(n.type) ? u[n.type](n, i) : l(n, i);
|
|
1
|
+
function e(t) {
|
|
2
|
+
return t;
|
|
49
3
|
}
|
|
50
4
|
export {
|
|
51
|
-
|
|
5
|
+
e as default
|
|
52
6
|
};
|
|
53
7
|
//# sourceMappingURL=index.es257.js.map
|
package/dist/index.es257.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es257.js","sources":["../../../node_modules/d3-geo/src/
|
|
1
|
+
{"version":3,"file":"index.es257.js","sources":["../../../node_modules/d3-geo/src/identity.js"],"sourcesContent":["export default function(x) {\n return x;\n}\n"],"names":["identity","x"],"mappings":"AAAA,SAAAA,EAAwBC,GAAG;AACzB,SAAOA;AACT;","x_google_ignoreList":[0]}
|
package/dist/index.es258.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import c from "./index.es260.js";
|
|
2
|
+
import n from "./index.es263.js";
|
|
3
|
+
function S(l, a, r) {
|
|
4
|
+
var f = a[1][0] - a[0][0], m = a[1][1] - a[0][1], i = l.clipExtent && l.clipExtent();
|
|
5
|
+
l.scale(150).translate([0, 0]), i != null && l.clipExtent(null), c(r, l.stream(n));
|
|
6
|
+
var t = n.result(), u = Math.min(f / (t[1][0] - t[0][0]), m / (t[1][1] - t[0][1])), s = +a[0][0] + (f - u * (t[1][0] + t[0][0])) / 2, E = +a[0][1] + (m - u * (t[1][1] + t[0][1])) / 2;
|
|
7
|
+
return i != null && l.clipExtent(i), l.scale(u * 150).translate([s, E]);
|
|
8
|
+
}
|
|
9
|
+
function h(l, a, r) {
|
|
10
|
+
return S(l, [[0, 0], a], r);
|
|
11
|
+
}
|
|
3
12
|
export {
|
|
4
|
-
|
|
13
|
+
S as fitExtent,
|
|
14
|
+
h as fitSize
|
|
5
15
|
};
|
|
6
16
|
//# sourceMappingURL=index.es258.js.map
|
package/dist/index.es258.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es258.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es258.js","sources":["../../../node_modules/d3-geo/src/projection/fit.js"],"sourcesContent":["import {default as geoStream} from \"../stream\";\nimport boundsStream from \"../path/bounds\";\n\nexport function fitExtent(projection, extent, object) {\n var w = extent[1][0] - extent[0][0],\n h = extent[1][1] - extent[0][1],\n clip = projection.clipExtent && projection.clipExtent();\n\n projection\n .scale(150)\n .translate([0, 0]);\n\n if (clip != null) projection.clipExtent(null);\n\n geoStream(object, projection.stream(boundsStream));\n\n var b = boundsStream.result(),\n k = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])),\n x = +extent[0][0] + (w - k * (b[1][0] + b[0][0])) / 2,\n y = +extent[0][1] + (h - k * (b[1][1] + b[0][1])) / 2;\n\n if (clip != null) projection.clipExtent(clip);\n\n return projection\n .scale(k * 150)\n .translate([x, y]);\n}\n\nexport function fitSize(projection, size, object) {\n return fitExtent(projection, [[0, 0], size], object);\n}\n"],"names":["fitExtent","projection","extent","object","w","h","clip","geoStream","boundsStream","b","k","x","y","fitSize","size"],"mappings":";;AAGO,SAASA,EAAUC,GAAYC,GAAQC,GAAQ;AACpD,MAAIC,IAAIF,EAAO,CAAC,EAAE,CAAC,IAAIA,EAAO,CAAC,EAAE,CAAC,GAC9BG,IAAIH,EAAO,CAAC,EAAE,CAAC,IAAIA,EAAO,CAAC,EAAE,CAAC,GAC9BI,IAAOL,EAAW,cAAcA,EAAW,WAAA;AAE/C,EAAAA,EACK,MAAM,GAAG,EACT,UAAU,CAAC,GAAG,CAAC,CAAC,GAEjBK,KAAQ,QAAML,EAAW,WAAW,IAAI,GAE5CM,EAAUJ,GAAQF,EAAW,OAAOO,CAAY,CAAC;AAEjD,MAAIC,IAAID,EAAa,OAAA,GACjBE,IAAI,KAAK,IAAIN,KAAKK,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,IAAIJ,KAAKI,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,EAAE,GAC7DE,IAAI,CAACT,EAAO,CAAC,EAAE,CAAC,KAAKE,IAAIM,KAAKD,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,MAAM,GACpDG,IAAI,CAACV,EAAO,CAAC,EAAE,CAAC,KAAKG,IAAIK,KAAKD,EAAE,CAAC,EAAE,CAAC,IAAIA,EAAE,CAAC,EAAE,CAAC,MAAM;AAExD,SAAIH,KAAQ,QAAML,EAAW,WAAWK,CAAI,GAErCL,EACF,MAAMS,IAAI,GAAG,EACb,UAAU,CAACC,GAAGC,CAAC,CAAC;AACvB;AAEO,SAASC,EAAQZ,GAAYa,GAAMX,GAAQ;AAChD,SAAOH,EAAUC,GAAY,CAAC,CAAC,GAAG,CAAC,GAAGa,CAAI,GAAGX,CAAM;AACrD;","x_google_ignoreList":[0]}
|