vis-core 0.16.0 → 0.16.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.js +4 -4
- package/dist/index.module.js +4 -7
- package/dist/utils/centroid.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(".-translate-x-1\\/2,.-translate-y-1\\/2{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1 }.invert,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.whitespace-nowrap{white-space:nowrap}.text-center{text-align:center}.text-xs{font-size:12px;line-height:16px}.leading-\\[1\\]{line-height:1}.text-\\[\\#809083\\]{--tw-text-opacity: 1;color:rgb(128 144 131 / var(--tw-text-opacity))}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(".-translate-x-1\\/2,.-translate-y-1\\/2{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1 }.ring{--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000 }.invert,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.whitespace-nowrap{white-space:nowrap}.text-center{text-align:center}.text-xs{font-size:12px;line-height:16px}.leading-\\[1\\]{line-height:1}.text-\\[\\#809083\\]{--tw-text-opacity: 1;color:rgb(128 144 131 / var(--tw-text-opacity))}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
2
|
var Kf = Object.defineProperty, kf = Object.defineProperties;
|
|
3
3
|
var zf = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var xb = Object.getOwnPropertySymbols, Uf = Object.getPrototypeOf, Bf = Object.prototype.hasOwnProperty, Pf = Object.prototype.propertyIsEnumerable, Ef = Reflect.get;
|
|
@@ -43596,7 +43596,7 @@ function oa(n) {
|
|
|
43596
43596
|
const t = new _t();
|
|
43597
43597
|
return t.color.setScalar(n), t;
|
|
43598
43598
|
}
|
|
43599
|
-
const Xf = "0.16.
|
|
43599
|
+
const Xf = "0.16.1", rp = !1;
|
|
43600
43600
|
class qa {
|
|
43601
43601
|
constructor(t, e = {}) {
|
|
43602
43602
|
j(this, "container");
|
|
@@ -44559,10 +44559,7 @@ const Iz = Ue(wt({}, Ls), {
|
|
|
44559
44559
|
const o = {
|
|
44560
44560
|
type: "FeatureCollection",
|
|
44561
44561
|
features: [
|
|
44562
|
-
Lm.features.slice(1).reduce((c, d) =>
|
|
44563
|
-
var h, r;
|
|
44564
|
-
return this.options.worldPacificCentre && (((h = d.properties) == null ? void 0 : h.NAME) === "Iceland" || ((r = d.properties) == null ? void 0 : r.NAME) === "Greenland") ? c : _f(c, d);
|
|
44565
|
-
}, Lm.features[0])
|
|
44562
|
+
Lm.features.slice(1).reduce((c, d) => _f(c, d), Lm.features[0])
|
|
44566
44563
|
]
|
|
44567
44564
|
};
|
|
44568
44565
|
this.options.extrudeLineGeojsonMap[0] = o;
|
|
@@ -44979,7 +44976,7 @@ const Iz = Ue(wt({}, Ls), {
|
|
|
44979
44976
|
i && (yield Promise.all(
|
|
44980
44977
|
(s = i.features) == null ? void 0 : s.map((a) => bt(this, [a], function* ({ properties: l }) {
|
|
44981
44978
|
let { name: o, adcode: c } = l;
|
|
44982
|
-
const { DistrictID: d, DistName: h, NAME_CN: r,
|
|
44979
|
+
const { DistrictID: d, DistName: h, NAME_CN: r, CENTROID: u } = l;
|
|
44983
44980
|
c = c || d, o = this.options.adcode === 0 ? r : o || h;
|
|
44984
44981
|
const m = this.options.adcode === 0 ? this.getLocationPosition([...u]) : this.geAdcodePosition(c);
|
|
44985
44982
|
if (this.drawController.getObject("Node", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.16.
|
|
1
|
+
declare const _default: "0.16.1";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
6
|
"build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@turf/turf": "^6.5.0",
|
|
65
65
|
"esus-lite": "^0.2.2",
|
|
66
66
|
"events": "^3.3.0",
|
|
67
|
-
"geojson-cn": "^0.1.
|
|
67
|
+
"geojson-cn": "^0.1.25",
|
|
68
68
|
"lodash-es": "^4.17.21"
|
|
69
69
|
},
|
|
70
70
|
"prettier": "prettier-config-bundler"
|