@performant-software/geospatial 3.1.25-beta.0 → 3.1.25-beta.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/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.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.cjs111.js +1 -1
- package/dist/index.cjs112.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.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs144.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.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.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.cjs17.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +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.cjs22.js +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.cjs23.js +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 +1 -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.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs24.js +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 +7 -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.cjs25.js +1 -1
- package/dist/index.cjs250.js +1 -7
- 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.cjs253.js +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es114.js +3 -3
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +2 -2
- package/dist/index.es13.js +1 -1
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es134.js +2 -2
- package/dist/index.es137.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +1 -1
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.js +1 -1
- package/dist/index.es16.js +4 -4
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +1 -1
- package/dist/index.es165.js +1 -1
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +2 -2
- package/dist/index.es168.js +1 -1
- package/dist/index.es17.js +3 -3
- package/dist/index.es171.js +2 -2
- package/dist/index.es172.js +2 -2
- package/dist/index.es174.js +2 -2
- package/dist/index.es175.js +1 -1
- package/dist/index.es176.js +2 -2
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +2 -2
- package/dist/index.es179.js +1 -1
- package/dist/index.es18.js +3 -3
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es187.js +1 -1
- package/dist/index.es188.js +2 -2
- package/dist/index.es189.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +1 -1
- package/dist/index.es194.js +146 -16
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +17 -242
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +6 -42
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +5 -3
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +3 -13
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +3 -13
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +33 -28
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +3 -16
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +22 -4
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +2 -10
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +3 -7
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +2 -6
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +31 -3
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +13 -3
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +13 -8
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +8 -18
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +241 -19
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +41 -11
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +3 -15
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +10 -5
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +9 -6
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +30 -6
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +13 -21
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +4 -9
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +8 -9
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +5 -4
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es220.js +4 -11
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +3 -8
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +3 -21
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +8 -10
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +17 -16
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +21 -4
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +11 -16
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +13 -10
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +5 -3
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +7 -4
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es230.js +6 -147
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +21 -6
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +10 -5
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +11 -3
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +6 -3
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +10 -35
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +10 -3
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +20 -22
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +13 -2
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +20 -3
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +6 -2
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +16 -29
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +12 -13
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +3 -13
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +4 -8
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +7506 -20
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +2 -23
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +19 -6
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +23 -3
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +6 -4
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es250.js +5 -7506
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +3 -2
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es253.js +1 -1
- package/dist/index.es256.js +1 -1
- package/dist/index.es257.js +1 -1
- package/dist/index.es26.js +2 -2
- package/dist/index.es262.js +2 -2
- package/dist/index.es267.js +1 -1
- package/dist/index.es268.js +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es270.js +15 -2
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +2 -15
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es273.js +2 -2
- package/dist/index.es38.js +1 -1
- package/dist/index.es39.js +1 -1
- package/dist/index.es40.js +2 -2
- package/dist/index.es42.js +2 -2
- package/dist/index.es43.js +2 -2
- package/dist/index.es44.js +2 -2
- package/dist/index.es46.js +1 -1
- package/dist/index.es47.js +2 -2
- package/dist/index.es48.js +2 -2
- package/dist/index.es50.js +1 -1
- package/dist/index.es51.js +1 -1
- package/dist/index.es52.js +1 -1
- package/dist/index.es56.js +2 -2
- package/dist/index.es57.js +3 -3
- package/dist/index.es58.js +1 -1
- package/dist/index.es60.js +1 -1
- package/dist/index.es61.js +1 -1
- package/dist/index.es63.js +1 -1
- package/dist/index.es69.js +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es73.js +15 -15
- package/dist/index.es74.js +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es93.js +1 -1
- package/package.json +1 -1
package/dist/index.es201.js
CHANGED
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const f = r(t), i = r(o), n = [];
|
|
5
|
-
for (const s of i)
|
|
6
|
-
f.has(s) || n.push(s);
|
|
7
|
-
for (const s of f)
|
|
8
|
-
i.has(s) || n.push(s);
|
|
9
|
-
return n.length === 0 ? null : n;
|
|
10
|
-
}
|
|
11
|
-
function r(t) {
|
|
12
|
-
return new Set(t ? t.trim().split(/\s+/) : []);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
c as compareClassNames
|
|
16
|
-
};
|
|
1
|
+
import o from "./index.es274.js";
|
|
2
|
+
import r from "./index.es275.js";
|
|
3
|
+
r(o);
|
|
17
4
|
//# sourceMappingURL=index.es201.js.map
|
package/dist/index.es201.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es201.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.es201.js","sources":["../../../node_modules/d3-geo/node_modules/d3-array/src/bisect.js"],"sourcesContent":["import ascending from \"./ascending\";\nimport bisector from \"./bisector\";\n\nvar ascendingBisect = bisector(ascending);\nexport var bisectRight = ascendingBisect.right;\nexport var bisectLeft = ascendingBisect.left;\nexport default bisectRight;\n"],"names":["bisector","ascending"],"mappings":";;AAGsBA,EAASC,CAAS;","x_google_ignoreList":[0]}
|
package/dist/index.es202.js
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import Y from "./index.es252.js";
|
|
2
|
+
import { cartesianCross as S, cartesian as T, cartesianNormalizeInPlace as U } from "./index.es254.js";
|
|
3
|
+
import { quarterPi as V, atan2 as Z, sin as e, cos as s, asin as _, epsilon as g, pi as $, tau as k } from "./index.es255.js";
|
|
4
|
+
var n = Y();
|
|
5
|
+
function l(y, B) {
|
|
6
|
+
var f = B[0], E = B[1], W = [e(f), -s(f), 0], C = 0, F = 0;
|
|
7
|
+
n.reset();
|
|
8
|
+
for (var m = 0, X = y.length; m < X; ++m)
|
|
9
|
+
if (w = (q = y[m]).length)
|
|
10
|
+
for (var q, w, v = q[w - 1], x = v[0], G = v[1] / 2 + V, H = e(G), J = s(G), z = 0; z < w; ++z, x = I, H = L, J = M, v = o) {
|
|
11
|
+
var o = q[z], I = o[0], K = o[1] / 2 + V, L = e(K), M = s(K), r = I - x, N = r >= 0 ? 1 : -1, c = N * r, u = c > $, O = H * L;
|
|
12
|
+
if (n.add(Z(O * N * e(c), J * M + O * s(c))), C += u ? r + N * k : r, u ^ x >= f ^ I >= f) {
|
|
13
|
+
var a = S(T(v), T(o));
|
|
14
|
+
U(a);
|
|
15
|
+
var Q = S(W, a);
|
|
16
|
+
U(Q);
|
|
17
|
+
var R = (u ^ r >= 0 ? -1 : 1) * _(Q[2]);
|
|
18
|
+
(E > R || E === R && (a[0] || a[1])) && (F += u ^ r >= 0 ? 1 : -1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return (C < -g || C < g && n < -g) ^ F & 1;
|
|
4
22
|
}
|
|
5
23
|
export {
|
|
6
|
-
|
|
24
|
+
l as default
|
|
7
25
|
};
|
|
8
26
|
//# sourceMappingURL=index.es202.js.map
|
package/dist/index.es202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es202.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index.es202.js","sources":["../../../node_modules/d3-geo/src/polygonContains.js"],"sourcesContent":["import adder from \"./adder\";\nimport {cartesian, cartesianCross, cartesianNormalizeInPlace} from \"./cartesian\";\nimport {asin, atan2, cos, epsilon, pi, quarterPi, sin, tau} from \"./math\";\n\nvar sum = adder();\n\nexport default function(polygon, point) {\n var lambda = point[0],\n phi = point[1],\n normal = [sin(lambda), -cos(lambda), 0],\n angle = 0,\n winding = 0;\n\n sum.reset();\n\n for (var i = 0, n = polygon.length; i < n; ++i) {\n if (!(m = (ring = polygon[i]).length)) continue;\n var ring,\n m,\n point0 = ring[m - 1],\n lambda0 = point0[0],\n phi0 = point0[1] / 2 + quarterPi,\n sinPhi0 = sin(phi0),\n cosPhi0 = cos(phi0);\n\n for (var j = 0; j < m; ++j, lambda0 = lambda1, sinPhi0 = sinPhi1, cosPhi0 = cosPhi1, point0 = point1) {\n var point1 = ring[j],\n lambda1 = point1[0],\n phi1 = point1[1] / 2 + quarterPi,\n sinPhi1 = sin(phi1),\n cosPhi1 = cos(phi1),\n delta = lambda1 - lambda0,\n sign = delta >= 0 ? 1 : -1,\n absDelta = sign * delta,\n antimeridian = absDelta > pi,\n k = sinPhi0 * sinPhi1;\n\n sum.add(atan2(k * sign * sin(absDelta), cosPhi0 * cosPhi1 + k * cos(absDelta)));\n angle += antimeridian ? delta + sign * tau : delta;\n\n // Are the longitudes either side of the point’s meridian (lambda),\n // and are the latitudes smaller than the parallel (phi)?\n if (antimeridian ^ lambda0 >= lambda ^ lambda1 >= lambda) {\n var arc = cartesianCross(cartesian(point0), cartesian(point1));\n cartesianNormalizeInPlace(arc);\n var intersection = cartesianCross(normal, arc);\n cartesianNormalizeInPlace(intersection);\n var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);\n if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {\n winding += antimeridian ^ delta >= 0 ? 1 : -1;\n }\n }\n }\n }\n\n // First, determine whether the South pole is inside or outside:\n //\n // It is inside if:\n // * the polygon winds around it in a clockwise direction.\n // * the polygon does not (cumulatively) wind around it, but has a negative\n // (counter-clockwise) area.\n //\n // Second, count the (signed) number of times a segment crosses a lambda\n // from the point to the South pole. If it is zero, then the point is the\n // same side as the South pole.\n\n return (angle < -epsilon || angle < epsilon && sum < -epsilon) ^ (winding & 1);\n}\n"],"names":["sum","adder","polygonContains","polygon","point","lambda","phi","normal","sin","cos","angle","winding","i","n","m","ring","point0","lambda0","phi0","quarterPi","sinPhi0","cosPhi0","j","lambda1","sinPhi1","cosPhi1","point1","phi1","delta","sign","absDelta","antimeridian","pi","k","atan2","tau","arc","cartesianCross","cartesian","cartesianNormalizeInPlace","intersection","phiArc","asin","epsilon"],"mappings":";;;AAIA,IAAIA,IAAMC,EAAA;AAEV,SAAAC,EAAwBC,GAASC,GAAO;AACtC,MAAIC,IAASD,EAAM,CAAC,GAChBE,IAAMF,EAAM,CAAC,GACbG,IAAS,CAACC,EAAIH,CAAM,GAAG,CAACI,EAAIJ,CAAM,GAAG,CAAC,GACtCK,IAAQ,GACRC,IAAU;AAEd,EAAAX,EAAI,MAAA;AAEJ,WAASY,IAAI,GAAGC,IAAIV,EAAQ,QAAQS,IAAIC,GAAG,EAAED;AAC3C,QAAME,KAAKC,IAAOZ,EAAQS,CAAC,GAAG;AAS9B,eARIG,GACAD,GACAE,IAASD,EAAKD,IAAI,CAAC,GACnBG,IAAUD,EAAO,CAAC,GAClBE,IAAOF,EAAO,CAAC,IAAI,IAAIG,GACvBC,IAAUZ,EAAIU,CAAI,GAClBG,IAAUZ,EAAIS,CAAI,GAEbI,IAAI,GAAGA,IAAIR,GAAG,EAAEQ,GAAGL,IAAUM,GAASH,IAAUI,GAASH,IAAUI,GAAST,IAASU,GAAQ;AACpG,YAAIA,IAASX,EAAKO,CAAC,GACfC,IAAUG,EAAO,CAAC,GAClBC,IAAOD,EAAO,CAAC,IAAI,IAAIP,GACvBK,IAAUhB,EAAImB,CAAI,GAClBF,IAAUhB,EAAIkB,CAAI,GAClBC,IAAQL,IAAUN,GAClBY,IAAOD,KAAS,IAAI,IAAI,IACxBE,IAAWD,IAAOD,GAClBG,IAAeD,IAAWE,GAC1BC,IAAIb,IAAUI;AAOlB,YALAxB,EAAI,IAAIkC,EAAMD,IAAIJ,IAAOrB,EAAIsB,CAAQ,GAAGT,IAAUI,IAAUQ,IAAIxB,EAAIqB,CAAQ,CAAC,CAAC,GAC9EpB,KAASqB,IAAeH,IAAQC,IAAOM,IAAMP,GAIzCG,IAAed,KAAWZ,IAASkB,KAAWlB,GAAQ;AACxD,cAAI+B,IAAMC,EAAeC,EAAUtB,CAAM,GAAGsB,EAAUZ,CAAM,CAAC;AAC7D,UAAAa,EAA0BH,CAAG;AAC7B,cAAII,IAAeH,EAAe9B,GAAQ6B,CAAG;AAC7C,UAAAG,EAA0BC,CAAY;AACtC,cAAIC,KAAUV,IAAeH,KAAS,IAAI,KAAK,KAAKc,EAAKF,EAAa,CAAC,CAAC;AACxE,WAAIlC,IAAMmC,KAAUnC,MAAQmC,MAAWL,EAAI,CAAC,KAAKA,EAAI,CAAC,QACpDzB,KAAWoB,IAAeH,KAAS,IAAI,IAAI;AAAA,QAE/C;AAAA,MACF;AAcF,UAAQlB,IAAQ,CAACiC,KAAWjC,IAAQiC,KAAW3C,IAAM,CAAC2C,KAAYhC,IAAU;AAC9E;","x_google_ignoreList":[0]}
|
package/dist/index.es203.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var r = "[object " + t + "]";
|
|
4
|
-
return function(e) {
|
|
5
|
-
return n.call(e) === r;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import r from "./index.es252.js";
|
|
2
|
+
r();
|
|
11
3
|
//# sourceMappingURL=index.es203.js.map
|
package/dist/index.es203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es203.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es203.js","sources":["../../../node_modules/d3-geo/src/length.js"],"sourcesContent":["import adder from \"./adder\";\nimport {abs, atan2, cos, radians, sin, sqrt} from \"./math\";\nimport noop from \"./noop\";\nimport stream from \"./stream\";\n\nvar lengthSum = adder(),\n lambda0,\n sinPhi0,\n cosPhi0;\n\nvar lengthStream = {\n sphere: noop,\n point: noop,\n lineStart: lengthLineStart,\n lineEnd: noop,\n polygonStart: noop,\n polygonEnd: noop\n};\n\nfunction lengthLineStart() {\n lengthStream.point = lengthPointFirst;\n lengthStream.lineEnd = lengthLineEnd;\n}\n\nfunction lengthLineEnd() {\n lengthStream.point = lengthStream.lineEnd = noop;\n}\n\nfunction lengthPointFirst(lambda, phi) {\n lambda *= radians, phi *= radians;\n lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);\n lengthStream.point = lengthPoint;\n}\n\nfunction lengthPoint(lambda, phi) {\n lambda *= radians, phi *= radians;\n var sinPhi = sin(phi),\n cosPhi = cos(phi),\n delta = abs(lambda - lambda0),\n cosDelta = cos(delta),\n sinDelta = sin(delta),\n x = cosPhi * sinDelta,\n y = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta,\n z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;\n lengthSum.add(atan2(sqrt(x * x + y * y), z));\n lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;\n}\n\nexport default function(object) {\n lengthSum.reset();\n stream(object, lengthStream);\n return +lengthSum;\n}\n"],"names":["adder"],"mappings":";AAKgBA,EAAA;","x_google_ignoreList":[0]}
|
package/dist/index.es204.js
CHANGED
package/dist/index.es204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es204.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es204.js","sources":["../../../node_modules/d3-geo/src/path/area.js"],"sourcesContent":["import adder from \"../adder\";\nimport {abs} from \"../math\";\nimport noop from \"../noop\";\n\nvar areaSum = adder(),\n areaRingSum = adder(),\n x00,\n y00,\n x0,\n y0;\n\nvar areaStream = {\n point: noop,\n lineStart: noop,\n lineEnd: noop,\n polygonStart: function() {\n areaStream.lineStart = areaRingStart;\n areaStream.lineEnd = areaRingEnd;\n },\n polygonEnd: function() {\n areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;\n areaSum.add(abs(areaRingSum));\n areaRingSum.reset();\n },\n result: function() {\n var area = areaSum / 2;\n areaSum.reset();\n return area;\n }\n};\n\nfunction areaRingStart() {\n areaStream.point = areaPointFirst;\n}\n\nfunction areaPointFirst(x, y) {\n areaStream.point = areaPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction areaPoint(x, y) {\n areaRingSum.add(y0 * x - x0 * y);\n x0 = x, y0 = y;\n}\n\nfunction areaRingEnd() {\n areaPoint(x00, y00);\n}\n\nexport default areaStream;\n"],"names":["adder"],"mappings":";AAIcA;AACIA;","x_google_ignoreList":[0]}
|
package/dist/index.es205.js
CHANGED
package/dist/index.es205.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es205.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es205.js","sources":["../../../node_modules/d3-geo/src/path/measure.js"],"sourcesContent":["import adder from \"../adder\";\nimport {sqrt} from \"../math\";\nimport noop from \"../noop\";\n\nvar lengthSum = adder(),\n lengthRing,\n x00,\n y00,\n x0,\n y0;\n\nvar lengthStream = {\n point: noop,\n lineStart: function() {\n lengthStream.point = lengthPointFirst;\n },\n lineEnd: function() {\n if (lengthRing) lengthPoint(x00, y00);\n lengthStream.point = noop;\n },\n polygonStart: function() {\n lengthRing = true;\n },\n polygonEnd: function() {\n lengthRing = null;\n },\n result: function() {\n var length = +lengthSum;\n lengthSum.reset();\n return length;\n }\n};\n\nfunction lengthPointFirst(x, y) {\n lengthStream.point = lengthPoint;\n x00 = x0 = x, y00 = y0 = y;\n}\n\nfunction lengthPoint(x, y) {\n x0 -= x, y0 -= y;\n lengthSum.add(sqrt(x0 * x0 + y0 * y0));\n x0 = x, y0 = y;\n}\n\nexport default lengthStream;\n"],"names":["adder"],"mappings":";AAIgBA,EAAA;","x_google_ignoreList":[0]}
|
package/dist/index.es206.js
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
function e(t) {
|
|
2
|
+
return function(n) {
|
|
3
|
+
var r = new o();
|
|
4
|
+
for (var i in t) r[i] = t[i];
|
|
5
|
+
return r.stream = n, r;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
function o() {
|
|
9
|
+
}
|
|
10
|
+
o.prototype = {
|
|
11
|
+
constructor: o,
|
|
12
|
+
point: function(t, n) {
|
|
13
|
+
this.stream.point(t, n);
|
|
14
|
+
},
|
|
15
|
+
sphere: function() {
|
|
16
|
+
this.stream.sphere();
|
|
17
|
+
},
|
|
18
|
+
lineStart: function() {
|
|
19
|
+
this.stream.lineStart();
|
|
20
|
+
},
|
|
21
|
+
lineEnd: function() {
|
|
22
|
+
this.stream.lineEnd();
|
|
23
|
+
},
|
|
24
|
+
polygonStart: function() {
|
|
25
|
+
this.stream.polygonStart();
|
|
26
|
+
},
|
|
27
|
+
polygonEnd: function() {
|
|
28
|
+
this.stream.polygonEnd();
|
|
29
|
+
}
|
|
30
|
+
};
|
|
3
31
|
export {
|
|
4
|
-
|
|
32
|
+
e as transformer
|
|
5
33
|
};
|
|
6
34
|
//# sourceMappingURL=index.es206.js.map
|
package/dist/index.es206.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es206.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es206.js","sources":["../../../node_modules/d3-geo/src/transform.js"],"sourcesContent":["export default function(methods) {\n return {\n stream: transformer(methods)\n };\n}\n\nexport function transformer(methods) {\n return function(stream) {\n var s = new TransformStream;\n for (var key in methods) s[key] = methods[key];\n s.stream = stream;\n return s;\n };\n}\n\nfunction TransformStream() {}\n\nTransformStream.prototype = {\n constructor: TransformStream,\n point: function(x, y) { this.stream.point(x, y); },\n sphere: function() { this.stream.sphere(); },\n lineStart: function() { this.stream.lineStart(); },\n lineEnd: function() { this.stream.lineEnd(); },\n polygonStart: function() { this.stream.polygonStart(); },\n polygonEnd: function() { this.stream.polygonEnd(); }\n};\n"],"names":["transformer","methods","stream","s","TransformStream","key","x","y"],"mappings":"AAMO,SAASA,EAAYC,GAAS;AACnC,SAAO,SAASC,GAAQ;AACtB,QAAIC,IAAI,IAAIC,EAAA;AACZ,aAASC,KAAOJ,EAAS,CAAAE,EAAEE,CAAG,IAAIJ,EAAQI,CAAG;AAC7C,WAAAF,EAAE,SAASD,GACJC;AAAA,EACT;AACF;AAEA,SAASC,IAAkB;AAAC;AAE5BA,EAAgB,YAAY;AAAA,EAC1B,aAAaA;AAAA,EACb,OAAO,SAASE,GAAGC,GAAG;AAAE,SAAK,OAAO,MAAMD,GAAGC,CAAC;AAAA,EAAG;AAAA,EACjD,QAAQ,WAAW;AAAE,SAAK,OAAO,OAAA;AAAA,EAAU;AAAA,EAC3C,WAAW,WAAW;AAAE,SAAK,OAAO,UAAA;AAAA,EAAa;AAAA,EACjD,SAAS,WAAW;AAAE,SAAK,OAAO,QAAA;AAAA,EAAW;AAAA,EAC7C,cAAc,WAAW;AAAE,SAAK,OAAO,aAAA;AAAA,EAAgB;AAAA,EACvD,YAAY,WAAW;AAAE,SAAK,OAAO,WAAA;AAAA,EAAc;AACrD;","x_google_ignoreList":[0]}
|
package/dist/index.es207.js
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import t from "./index.
|
|
2
|
-
|
|
1
|
+
import { sqrt as t, asin as i } from "./index.es255.js";
|
|
2
|
+
import { azimuthalInvert as a, azimuthalRaw as m } from "./index.es261.js";
|
|
3
|
+
import "./index.es202.js";
|
|
4
|
+
import "./index.es201.js";
|
|
5
|
+
import "./index.es200.js";
|
|
6
|
+
import "./index.es206.js";
|
|
7
|
+
var o = m(function(r) {
|
|
8
|
+
return t(2 / (1 + r));
|
|
9
|
+
});
|
|
10
|
+
o.invert = a(function(r) {
|
|
11
|
+
return 2 * i(r / 2);
|
|
12
|
+
});
|
|
3
13
|
export {
|
|
4
|
-
o as
|
|
14
|
+
o as azimuthalEqualAreaRaw
|
|
5
15
|
};
|
|
6
16
|
//# sourceMappingURL=index.es207.js.map
|
package/dist/index.es207.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es207.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es207.js","sources":["../../../node_modules/d3-geo/src/projection/azimuthalEqualArea.js"],"sourcesContent":["import {asin, sqrt} from \"../math\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal\";\nimport projection from \"./index\";\n\nexport var azimuthalEqualAreaRaw = azimuthalRaw(function(cxcy) {\n return sqrt(2 / (1 + cxcy));\n});\n\nazimuthalEqualAreaRaw.invert = azimuthalInvert(function(z) {\n return 2 * asin(z / 2);\n});\n\nexport default function() {\n return projection(azimuthalEqualAreaRaw)\n .scale(124.75)\n .clipAngle(180 - 1e-3);\n}\n"],"names":["azimuthalEqualAreaRaw","azimuthalRaw","cxcy","sqrt","azimuthalInvert","z","asin"],"mappings":";;;;;;AAIO,IAAIA,IAAwBC,EAAa,SAASC,GAAM;AAC7D,SAAOC,EAAK,KAAK,IAAID,EAAK;AAC5B,CAAC;AAEDF,EAAsB,SAASI,EAAgB,SAASC,GAAG;AACzD,SAAO,IAAIC,EAAKD,IAAI,CAAC;AACvB,CAAC;","x_google_ignoreList":[0]}
|
package/dist/index.es208.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { acos as r, sin as a } from "./index.es255.js";
|
|
2
|
+
import { azimuthalInvert as n, azimuthalRaw as o } from "./index.es261.js";
|
|
3
|
+
import u from "./index.es262.js";
|
|
4
|
+
var i = o(function(t) {
|
|
5
|
+
return (t = r(t)) && t / a(t);
|
|
6
|
+
});
|
|
7
|
+
i.invert = n(function(t) {
|
|
8
|
+
return t;
|
|
9
|
+
});
|
|
10
|
+
function f() {
|
|
11
|
+
return u(i).scale(79.4188).clipAngle(180 - 1e-3);
|
|
8
12
|
}
|
|
9
13
|
export {
|
|
10
|
-
i as
|
|
14
|
+
i as azimuthalEquidistantRaw,
|
|
15
|
+
f as default
|
|
11
16
|
};
|
|
12
17
|
//# sourceMappingURL=index.es208.js.map
|
package/dist/index.es208.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es208.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es208.js","sources":["../../../node_modules/d3-geo/src/projection/azimuthalEquidistant.js"],"sourcesContent":["import {acos, sin} from \"../math\";\nimport {azimuthalRaw, azimuthalInvert} from \"./azimuthal\";\nimport projection from \"./index\";\n\nexport var azimuthalEquidistantRaw = azimuthalRaw(function(c) {\n return (c = acos(c)) && c / sin(c);\n});\n\nazimuthalEquidistantRaw.invert = azimuthalInvert(function(z) {\n return z;\n});\n\nexport default function() {\n return projection(azimuthalEquidistantRaw)\n .scale(79.4188)\n .clipAngle(180 - 1e-3);\n}\n"],"names":["azimuthalEquidistantRaw","azimuthalRaw","c","acos","sin","azimuthalInvert","z","geoAzimuthalEquidistant","projection"],"mappings":";;;AAIO,IAAIA,IAA0BC,EAAa,SAASC,GAAG;AAC5D,UAAQA,IAAIC,EAAKD,CAAC,MAAMA,IAAIE,EAAIF,CAAC;AACnC,CAAC;AAEDF,EAAwB,SAASK,EAAgB,SAASC,GAAG;AAC3D,SAAOA;AACT,CAAC;AAED,SAAAC,IAA0B;AACxB,SAAOC,EAAWR,CAAuB,EACpC,MAAM,OAAO,EACb,UAAU,MAAM,IAAI;AAC3B;","x_google_ignoreList":[0]}
|
package/dist/index.es209.js
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
if (r == null) return !1;
|
|
8
|
-
var s = m(r);
|
|
9
|
-
if (o(s)) return !1;
|
|
10
|
-
for (var a = 0; a < l; a++)
|
|
11
|
-
if (!f(r[e[a]])) return !1;
|
|
12
|
-
return e !== u || !f(r[t]);
|
|
13
|
-
};
|
|
1
|
+
import "./index.es202.js";
|
|
2
|
+
import "./index.es201.js";
|
|
3
|
+
import "./index.es200.js";
|
|
4
|
+
import "./index.es206.js";
|
|
5
|
+
function r(t, i) {
|
|
6
|
+
return [t, i];
|
|
14
7
|
}
|
|
15
|
-
|
|
8
|
+
r.invert = r;
|
|
16
9
|
export {
|
|
17
|
-
|
|
18
|
-
d as mapMethods,
|
|
19
|
-
M as setMethods,
|
|
20
|
-
u as weakMapMethods
|
|
10
|
+
r as equirectangularRaw
|
|
21
11
|
};
|
|
22
12
|
//# sourceMappingURL=index.es209.js.map
|
package/dist/index.es209.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es209.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.es209.js","sources":["../../../node_modules/d3-geo/src/projection/equirectangular.js"],"sourcesContent":["import projection from \"./index\";\n\nexport function equirectangularRaw(lambda, phi) {\n return [lambda, phi];\n}\n\nequirectangularRaw.invert = equirectangularRaw;\n\nexport default function() {\n return projection(equirectangularRaw)\n .scale(152.63);\n}\n"],"names":["equirectangularRaw","lambda","phi"],"mappings":";;;;AAEO,SAASA,EAAmBC,GAAQC,GAAK;AAC9C,SAAO,CAACD,GAAQC,CAAG;AACrB;AAEAF,EAAmB,SAASA;","x_google_ignoreList":[0]}
|
package/dist/index.es21.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { memo as u, forwardRef as i, useRef as l, useImperativeHandle as f, useEffect as p } from "react";
|
|
2
|
-
import { applyReactStyle as m } from "./index.
|
|
2
|
+
import { applyReactStyle as m } from "./index.es214.js";
|
|
3
3
|
import { useControl as d } from "./index.es30.js";
|
|
4
4
|
function U(r, c) {
|
|
5
5
|
const e = l({ props: r }), n = d(({ mapLib: s }) => {
|
package/dist/index.es210.js
CHANGED
|
@@ -1,24 +1,246 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { transformToViewState as d, applyViewStateToTransform as p } from "./index.es247.js";
|
|
2
|
+
import { normalizeStyle as l } from "./index.es248.js";
|
|
3
|
+
import { deepEqual as i } from "./index.es215.js";
|
|
4
|
+
const u = { version: 8, sources: {}, layers: [] }, h = {
|
|
5
|
+
mousedown: "onMouseDown",
|
|
6
|
+
mouseup: "onMouseUp",
|
|
7
|
+
mouseover: "onMouseOver",
|
|
8
|
+
mousemove: "onMouseMove",
|
|
9
|
+
click: "onClick",
|
|
10
|
+
dblclick: "onDblClick",
|
|
11
|
+
mouseenter: "onMouseEnter",
|
|
12
|
+
mouseleave: "onMouseLeave",
|
|
13
|
+
mouseout: "onMouseOut",
|
|
14
|
+
contextmenu: "onContextMenu",
|
|
15
|
+
touchstart: "onTouchStart",
|
|
16
|
+
touchend: "onTouchEnd",
|
|
17
|
+
touchmove: "onTouchMove",
|
|
18
|
+
touchcancel: "onTouchCancel"
|
|
19
|
+
}, m = {
|
|
20
|
+
movestart: "onMoveStart",
|
|
21
|
+
move: "onMove",
|
|
22
|
+
moveend: "onMoveEnd",
|
|
23
|
+
dragstart: "onDragStart",
|
|
24
|
+
drag: "onDrag",
|
|
25
|
+
dragend: "onDragEnd",
|
|
26
|
+
zoomstart: "onZoomStart",
|
|
27
|
+
zoom: "onZoom",
|
|
28
|
+
zoomend: "onZoomEnd",
|
|
29
|
+
rotatestart: "onRotateStart",
|
|
30
|
+
rotate: "onRotate",
|
|
31
|
+
rotateend: "onRotateEnd",
|
|
32
|
+
pitchstart: "onPitchStart",
|
|
33
|
+
pitch: "onPitch",
|
|
34
|
+
pitchend: "onPitchEnd"
|
|
35
|
+
}, f = {
|
|
36
|
+
wheel: "onWheel",
|
|
37
|
+
boxzoomstart: "onBoxZoomStart",
|
|
38
|
+
boxzoomend: "onBoxZoomEnd",
|
|
39
|
+
boxzoomcancel: "onBoxZoomCancel",
|
|
40
|
+
resize: "onResize",
|
|
41
|
+
load: "onLoad",
|
|
42
|
+
render: "onRender",
|
|
43
|
+
idle: "onIdle",
|
|
44
|
+
remove: "onRemove",
|
|
45
|
+
data: "onData",
|
|
46
|
+
styledata: "onStyleData",
|
|
47
|
+
sourcedata: "onSourceData",
|
|
48
|
+
error: "onError"
|
|
49
|
+
}, v = [
|
|
50
|
+
"minZoom",
|
|
51
|
+
"maxZoom",
|
|
52
|
+
"minPitch",
|
|
53
|
+
"maxPitch",
|
|
54
|
+
"maxBounds",
|
|
55
|
+
"projection",
|
|
56
|
+
"renderWorldCopies"
|
|
57
|
+
], _ = [
|
|
58
|
+
"scrollZoom",
|
|
59
|
+
"boxZoom",
|
|
60
|
+
"dragRotate",
|
|
61
|
+
"dragPan",
|
|
62
|
+
"keyboard",
|
|
63
|
+
"doubleClickZoom",
|
|
64
|
+
"touchZoomRotate",
|
|
65
|
+
"touchPitch"
|
|
66
|
+
];
|
|
67
|
+
class c {
|
|
68
|
+
constructor(t, o, a) {
|
|
69
|
+
this._map = null, this._internalUpdate = !1, this._hoveredFeatures = null, this._propsedCameraUpdate = null, this._styleComponents = {}, this._onEvent = (e) => {
|
|
70
|
+
const s = this.props[f[e.type]];
|
|
71
|
+
s ? s(e) : e.type === "error" && console.error(e.error);
|
|
72
|
+
}, this._onCameraEvent = (e) => {
|
|
73
|
+
if (this._internalUpdate)
|
|
74
|
+
return;
|
|
75
|
+
e.viewState = this._propsedCameraUpdate || d(this._map.transform);
|
|
76
|
+
const s = this.props[m[e.type]];
|
|
77
|
+
s && s(e);
|
|
78
|
+
}, this._onCameraUpdate = (e) => this._internalUpdate ? e : (this._propsedCameraUpdate = d(e), p(e, this.props)), this._onPointerEvent = (e) => {
|
|
79
|
+
(e.type === "mousemove" || e.type === "mouseout") && this._updateHover(e);
|
|
80
|
+
const s = this.props[h[e.type]];
|
|
81
|
+
s && (this.props.interactiveLayerIds && e.type !== "mouseover" && e.type !== "mouseout" && (e.features = this._hoveredFeatures || this._queryRenderedFeatures(e.point)), s(e), delete e.features);
|
|
82
|
+
}, this._MapClass = t, this.props = o, this._initialize(a);
|
|
83
|
+
}
|
|
84
|
+
get map() {
|
|
85
|
+
return this._map;
|
|
86
|
+
}
|
|
87
|
+
setProps(t) {
|
|
88
|
+
const o = this.props;
|
|
89
|
+
this.props = t;
|
|
90
|
+
const a = this._updateSettings(t, o), e = this._updateSize(t), s = this._updateViewState(t);
|
|
91
|
+
this._updateStyle(t, o), this._updateStyleComponents(t), this._updateHandlers(t, o), (a || e || s && !this._map.isMoving()) && this.redraw();
|
|
92
|
+
}
|
|
93
|
+
static reuse(t, o) {
|
|
94
|
+
const a = c.savedMaps.pop();
|
|
95
|
+
if (!a)
|
|
96
|
+
return null;
|
|
97
|
+
const e = a.map, s = e.getContainer();
|
|
98
|
+
for (o.className = s.className; s.childNodes.length > 0; )
|
|
99
|
+
o.appendChild(s.childNodes[0]);
|
|
100
|
+
e._container = o;
|
|
101
|
+
const n = e._resizeObserver;
|
|
102
|
+
n && (n.disconnect(), n.observe(o)), a.setProps({ ...t, styleDiffing: !1 }), e.resize();
|
|
103
|
+
const { initialViewState: r } = t;
|
|
104
|
+
return r && (r.bounds ? e.fitBounds(r.bounds, { ...r.fitBoundsOptions, duration: 0 }) : a._updateViewState(r)), e.isStyleLoaded() ? e.fire("load") : e.once("style.load", () => e.fire("load")), e._update(), a;
|
|
105
|
+
}
|
|
106
|
+
/* eslint-disable complexity,max-statements */
|
|
107
|
+
_initialize(t) {
|
|
108
|
+
const { props: o } = this, { mapStyle: a = u } = o, e = {
|
|
109
|
+
...o,
|
|
110
|
+
...o.initialViewState,
|
|
111
|
+
container: t,
|
|
112
|
+
style: l(a)
|
|
113
|
+
}, s = e.initialViewState || e.viewState || e;
|
|
114
|
+
if (Object.assign(e, {
|
|
115
|
+
center: [s.longitude || 0, s.latitude || 0],
|
|
116
|
+
zoom: s.zoom || 0,
|
|
117
|
+
pitch: s.pitch || 0,
|
|
118
|
+
bearing: s.bearing || 0
|
|
119
|
+
}), o.gl) {
|
|
120
|
+
const r = HTMLCanvasElement.prototype.getContext;
|
|
121
|
+
HTMLCanvasElement.prototype.getContext = () => (HTMLCanvasElement.prototype.getContext = r, o.gl);
|
|
12
122
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
123
|
+
const n = new this._MapClass(e);
|
|
124
|
+
s.padding && n.setPadding(s.padding), o.cursor && (n.getCanvas().style.cursor = o.cursor), n.transformCameraUpdate = this._onCameraUpdate, n.on("style.load", () => {
|
|
125
|
+
this._styleComponents = {
|
|
126
|
+
light: n.getLight(),
|
|
127
|
+
sky: n.getSky(),
|
|
128
|
+
// @ts-ignore getProjection() does not exist in v4
|
|
129
|
+
projection: n.getProjection?.(),
|
|
130
|
+
terrain: n.getTerrain()
|
|
131
|
+
}, this._updateStyleComponents(this.props);
|
|
132
|
+
}), n.on("sourcedata", () => {
|
|
133
|
+
this._updateStyleComponents(this.props);
|
|
134
|
+
});
|
|
135
|
+
for (const r in h)
|
|
136
|
+
n.on(r, this._onPointerEvent);
|
|
137
|
+
for (const r in m)
|
|
138
|
+
n.on(r, this._onCameraEvent);
|
|
139
|
+
for (const r in f)
|
|
140
|
+
n.on(r, this._onEvent);
|
|
141
|
+
this._map = n;
|
|
142
|
+
}
|
|
143
|
+
/* eslint-enable complexity,max-statements */
|
|
144
|
+
recycle() {
|
|
145
|
+
this.map.getContainer().querySelector("[mapboxgl-children]")?.remove(), c.savedMaps.push(this);
|
|
146
|
+
}
|
|
147
|
+
destroy() {
|
|
148
|
+
this._map.remove();
|
|
149
|
+
}
|
|
150
|
+
// Force redraw the map now. Typically resize() and jumpTo() is reflected in the next
|
|
151
|
+
// render cycle, which is managed by Mapbox's animation loop.
|
|
152
|
+
// This removes the synchronization issue caused by requestAnimationFrame.
|
|
153
|
+
redraw() {
|
|
154
|
+
const t = this._map;
|
|
155
|
+
t.style && (t._frame && (t._frame.cancel(), t._frame = null), t._render());
|
|
156
|
+
}
|
|
157
|
+
/* Trigger map resize if size is controlled
|
|
158
|
+
@param {object} nextProps
|
|
159
|
+
@returns {bool} true if size has changed
|
|
160
|
+
*/
|
|
161
|
+
_updateSize(t) {
|
|
162
|
+
const { viewState: o } = t;
|
|
163
|
+
if (o) {
|
|
164
|
+
const a = this._map;
|
|
165
|
+
if (o.width !== a.transform.width || o.height !== a.transform.height)
|
|
166
|
+
return a.resize(), !0;
|
|
167
|
+
}
|
|
168
|
+
return !1;
|
|
169
|
+
}
|
|
170
|
+
// Adapted from map.jumpTo
|
|
171
|
+
/* Update camera to match props
|
|
172
|
+
@param {object} nextProps
|
|
173
|
+
@param {bool} triggerEvents - should fire camera events
|
|
174
|
+
@returns {bool} true if anything is changed
|
|
175
|
+
*/
|
|
176
|
+
_updateViewState(t) {
|
|
177
|
+
const o = this._map, a = o.transform;
|
|
178
|
+
if (!o.isMoving()) {
|
|
179
|
+
const s = p(a, t);
|
|
180
|
+
if (Object.keys(s).length > 0)
|
|
181
|
+
return this._internalUpdate = !0, o.jumpTo(s), this._internalUpdate = !1, !0;
|
|
182
|
+
}
|
|
183
|
+
return !1;
|
|
184
|
+
}
|
|
185
|
+
/* Update camera constraints and projection settings to match props
|
|
186
|
+
@param {object} nextProps
|
|
187
|
+
@param {object} currProps
|
|
188
|
+
@returns {bool} true if anything is changed
|
|
189
|
+
*/
|
|
190
|
+
_updateSettings(t, o) {
|
|
191
|
+
const a = this._map;
|
|
192
|
+
let e = !1;
|
|
193
|
+
for (const s of v)
|
|
194
|
+
s in t && !i(t[s], o[s]) && (e = !0, a[`set${s[0].toUpperCase()}${s.slice(1)}`]?.call(a, t[s]));
|
|
195
|
+
return e;
|
|
196
|
+
}
|
|
197
|
+
/* Update map style to match props */
|
|
198
|
+
_updateStyle(t, o) {
|
|
199
|
+
if (t.cursor !== o.cursor && (this._map.getCanvas().style.cursor = t.cursor || ""), t.mapStyle !== o.mapStyle) {
|
|
200
|
+
const { mapStyle: a = u, styleDiffing: e = !0 } = t, s = {
|
|
201
|
+
diff: e
|
|
202
|
+
};
|
|
203
|
+
"localIdeographFontFamily" in t && (s.localIdeographFontFamily = t.localIdeographFontFamily), this._map.setStyle(l(a), s);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
/* Update fog, light, projection and terrain to match props
|
|
207
|
+
* These props are special because
|
|
208
|
+
* 1. They can not be applied right away. Certain conditions (style loaded, source loaded, etc.) must be met
|
|
209
|
+
* 2. They can be overwritten by mapStyle
|
|
210
|
+
*/
|
|
211
|
+
_updateStyleComponents({ light: t, projection: o, sky: a, terrain: e }) {
|
|
212
|
+
const s = this._map, n = this._styleComponents;
|
|
213
|
+
s.style._loaded && (t && !i(t, n.light) && (n.light = t, s.setLight(t)), o && !i(o, n.projection) && o !== n.projection?.type && (n.projection = typeof o == "string" ? { type: o } : o, s.setProjection?.(n.projection)), a && !i(a, n.sky) && (n.sky = a, s.setSky(a)), e !== void 0 && !i(e, n.terrain) && (!e || s.getSource(e.source)) && (n.terrain = e, s.setTerrain(e)));
|
|
214
|
+
}
|
|
215
|
+
/* Update interaction handlers to match props */
|
|
216
|
+
_updateHandlers(t, o) {
|
|
217
|
+
const a = this._map;
|
|
218
|
+
for (const e of _) {
|
|
219
|
+
const s = t[e] ?? !0, n = o[e] ?? !0;
|
|
220
|
+
i(s, n) || (s ? a[e].enable(s) : a[e].disable());
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
_queryRenderedFeatures(t) {
|
|
224
|
+
const o = this._map, { interactiveLayerIds: a = [] } = this.props;
|
|
225
|
+
try {
|
|
226
|
+
return o.queryRenderedFeatures(t, {
|
|
227
|
+
layers: a.filter(o.getLayer.bind(o))
|
|
228
|
+
});
|
|
229
|
+
} catch {
|
|
230
|
+
return [];
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
_updateHover(t) {
|
|
234
|
+
const { props: o } = this;
|
|
235
|
+
if (o.interactiveLayerIds && (o.onMouseMove || o.onMouseEnter || o.onMouseLeave)) {
|
|
236
|
+
const e = t.type, s = this._hoveredFeatures?.length > 0, n = this._queryRenderedFeatures(t.point), r = n.length > 0;
|
|
237
|
+
!r && s && (t.type = "mouseleave", this._onPointerEvent(t)), this._hoveredFeatures = n, r && !s && (t.type = "mouseenter", this._onPointerEvent(t)), t.type = e;
|
|
238
|
+
} else
|
|
239
|
+
this._hoveredFeatures = null;
|
|
240
|
+
}
|
|
20
241
|
}
|
|
242
|
+
c.savedMaps = [];
|
|
21
243
|
export {
|
|
22
|
-
|
|
244
|
+
c as default
|
|
23
245
|
};
|
|
24
246
|
//# sourceMappingURL=index.es210.js.map
|