@maptalks/vt 0.84.0 → 0.84.2
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/maptalks.vt.es.js +7 -7
- package/dist/maptalks.vt.js +7 -7
- package/package.json +2 -2
package/dist/maptalks.vt.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/vt v0.84.
|
|
2
|
+
* @maptalks/vt v0.84.2
|
|
3
3
|
* LICENSE : undefined
|
|
4
4
|
* (c) 2016-2023 maptalks.org
|
|
5
5
|
*/
|
|
@@ -3569,7 +3569,7 @@ Pe.registerJSONType("PolygonLayer");
|
|
|
3569
3569
|
const Ie = {
|
|
3570
3570
|
polygonFill: {
|
|
3571
3571
|
type: "identity",
|
|
3572
|
-
default:
|
|
3572
|
+
default: [ 1, 1, 1, 1 ],
|
|
3573
3573
|
property: "_symbol_polygonFill"
|
|
3574
3574
|
},
|
|
3575
3575
|
polygonPatternFile: {
|
|
@@ -4424,7 +4424,7 @@ Tn.registerJSONType("ExtrudePolygonLayer"), Tn.mergeOptions({
|
|
|
4424
4424
|
const Sn = {
|
|
4425
4425
|
polygonFill: {
|
|
4426
4426
|
type: "identity",
|
|
4427
|
-
default:
|
|
4427
|
+
default: [ 1, 1, 1, 1 ],
|
|
4428
4428
|
property: "_symbol_polygonFill"
|
|
4429
4429
|
},
|
|
4430
4430
|
polygonOpacity: {
|
|
@@ -4531,7 +4531,7 @@ Tn.registerRenderer("gl", class extends Oe {
|
|
|
4531
4531
|
o && o.data && this.Pn(this.meshes[r++], n.id, o);
|
|
4532
4532
|
}
|
|
4533
4533
|
An(e) {
|
|
4534
|
-
if (!e.getProperties().maptalks_ombb) {
|
|
4534
|
+
if (e.getProperties() || e.setProperties({}), !e.getProperties().maptalks_ombb) {
|
|
4535
4535
|
const n = e.getCoordinates();
|
|
4536
4536
|
if (e instanceof t.MultiPolygon) {
|
|
4537
4537
|
const t = [];
|
|
@@ -4827,7 +4827,7 @@ function Fn(t, e) {
|
|
|
4827
4827
|
if (t) {
|
|
4828
4828
|
const e = [];
|
|
4829
4829
|
if (t.forEach((t, r) => {
|
|
4830
|
-
void 0 !== t.plugin && null !== t.plugin && t.plugin !== n && t.plugin !== i && e.push(r);
|
|
4830
|
+
void 0 !== t.plugin && null !== t.plugin && (Array.isArray(t.plugin) ? t.plugin.length && t.plugin.indexOf(n) < 0 && t.plugin.indexOf(i) < 0 && e.push(r) : t.plugin !== n && t.plugin !== i && e.push(r));
|
|
4831
4831
|
}), e.length) {
|
|
4832
4832
|
const n = new Map(t);
|
|
4833
4833
|
for (let t = 0; t < e.length; t++) n.delete(e[t]);
|
|
@@ -10534,7 +10534,7 @@ const ha = Fn("water", $s);
|
|
|
10534
10534
|
ha.registerAt(Vt), te.registerPainter("lit", _s), te.registerPainter("icon", bo),
|
|
10535
10535
|
te.registerPainter("fill", Gi), te.registerPainter("line", Xi), te.registerPainter("line-gradient", $i),
|
|
10536
10536
|
te.registerPainter("water", $s), te.registerPainter("tube", Ms), n.ShaderLib.register("vt_position_vert", "#ifdef HAS_TERRAIN_ALTITUDE\n attribute float aTerrainAltitude;\n#endif\n#ifdef HAS_ALTITUDE\n vec3 unpackVTPosition() {\n float altitude = aAltitude;\n #ifdef HAS_TERRAIN_ALTITUDE\n altitude += aTerrainAltitude * 100.0;\n #endif\n return vec3(aPosition, altitude);\n }\n#else\n float position_modValue = 16384.0;\n float position_delta = 0.00001;\n vec3 unpackVTPosition() {\n float z = aPosition.z;\n vec2 pos = sign(aPosition.xy + position_delta) * mod(abs(aPosition.xy), position_modValue);\n vec2 highs = floor(abs(aPosition.xy) / position_modValue);\n float altitude = sign(z + position_delta) * (highs.x * 2.0 + highs.y) * pow(2.0, 15.0) + z;\n #ifdef HAS_TERRAIN_ALTITUDE\n altitude += aTerrainAltitude * 100.0;\n #endif\n return vec3(pos, altitude);\n }\n#endif"),
|
|
10537
|
-
Vt.VERSION = "0.84.
|
|
10537
|
+
Vt.VERSION = "0.84.2", te.VERSION = "0.84.2";
|
|
10538
10538
|
|
|
10539
10539
|
if (e.mat4.create(), e.transcoders) {
|
|
10540
10540
|
const n = t.Map.VERSION;
|
|
@@ -10548,4 +10548,4 @@ if (e.mat4.create(), e.transcoders) {
|
|
|
10548
10548
|
|
|
10549
10549
|
export { Tn as ExtrudePolygonLayer, Gi as FillPainter, Js as FillPlugin, sa as GLTFPhongPlugin, aa as GLTFStandardPlugin, Jt as GeoJSONVectorTileLayer, la as HeatmapPlugin, bo as IconPainter, Qs as IconPlugin, Ks as LineGradientPlugin, Xi as LinePainter, Zs as LinePlugin, Se as LineStringLayer, ra as LitPlugin, $t as MapboxVectorTileLayer, us as NativeLinePainter, ea as NativeLinePlugin, ls as NativePointPainter, xs as PhongPainter, na as PhongPlugin, Te as PointLayer, Pe as PolygonLayer, is as TextPainter, ta as TextPlugin, oa as TubePlugin, te as Vector3DLayer, Vt as VectorTileLayer, It as VectorTileLayerRenderer, ha as WaterPlugin, As as WireframePainter, ia as WireframePlugin };
|
|
10550
10550
|
|
|
10551
|
-
"undefined" != typeof console && console.log("@maptalks/vt v0.84.
|
|
10551
|
+
"undefined" != typeof console && console.log("@maptalks/vt v0.84.2");
|
package/dist/maptalks.vt.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @maptalks/vt v0.84.
|
|
2
|
+
* @maptalks/vt v0.84.2
|
|
3
3
|
* LICENSE : undefined
|
|
4
4
|
* (c) 2016-2023 maptalks.org
|
|
5
5
|
*/
|
|
@@ -17118,7 +17118,7 @@
|
|
|
17118
17118
|
const bu = {
|
|
17119
17119
|
polygonFill: {
|
|
17120
17120
|
type: "identity",
|
|
17121
|
-
default:
|
|
17121
|
+
default: [ 1, 1, 1, 1 ],
|
|
17122
17122
|
property: "_symbol_polygonFill"
|
|
17123
17123
|
},
|
|
17124
17124
|
polygonPatternFile: {
|
|
@@ -18246,7 +18246,7 @@
|
|
|
18246
18246
|
const Oc = {
|
|
18247
18247
|
polygonFill: {
|
|
18248
18248
|
type: "identity",
|
|
18249
|
-
default:
|
|
18249
|
+
default: [ 1, 1, 1, 1 ],
|
|
18250
18250
|
property: "_symbol_polygonFill"
|
|
18251
18251
|
},
|
|
18252
18252
|
polygonOpacity: {
|
|
@@ -18352,7 +18352,7 @@
|
|
|
18352
18352
|
o && o.data && this.Yi(this.meshes[r++], n.id, o);
|
|
18353
18353
|
}
|
|
18354
18354
|
Wi(t) {
|
|
18355
|
-
if (!t.getProperties().maptalks_ombb) {
|
|
18355
|
+
if (t.getProperties() || t.setProperties({}), !t.getProperties().maptalks_ombb) {
|
|
18356
18356
|
const e = t.getCoordinates();
|
|
18357
18357
|
if (t instanceof r.MultiPolygon) {
|
|
18358
18358
|
const n = [];
|
|
@@ -18872,7 +18872,7 @@
|
|
|
18872
18872
|
if (t) {
|
|
18873
18873
|
const e = [];
|
|
18874
18874
|
if (t.forEach((t, r) => {
|
|
18875
|
-
void 0 !== t.plugin && null !== t.plugin && t.plugin !== n && t.plugin !== i && e.push(r);
|
|
18875
|
+
void 0 !== t.plugin && null !== t.plugin && (Array.isArray(t.plugin) ? t.plugin.length && t.plugin.indexOf(n) < 0 && t.plugin.indexOf(i) < 0 && e.push(r) : t.plugin !== n && t.plugin !== i && e.push(r));
|
|
18876
18876
|
}), e.length) {
|
|
18877
18877
|
const n = new Map(t);
|
|
18878
18878
|
for (let t = 0; t < e.length; t++) n.delete(e[t]);
|
|
@@ -24320,7 +24320,7 @@
|
|
|
24320
24320
|
jm.registerAt(Fl), Wl.registerPainter("lit", Gp), Wl.registerPainter("icon", Hf),
|
|
24321
24321
|
Wl.registerPainter("fill", cd), Wl.registerPainter("line", pd), Wl.registerPainter("line-gradient", md),
|
|
24322
24322
|
Wl.registerPainter("water", mm), Wl.registerPainter("tube", Jp), n.reshader.ShaderLib.register("vt_position_vert", "#ifdef HAS_TERRAIN_ALTITUDE\n attribute float aTerrainAltitude;\n#endif\n#ifdef HAS_ALTITUDE\n vec3 unpackVTPosition() {\n float altitude = aAltitude;\n #ifdef HAS_TERRAIN_ALTITUDE\n altitude += aTerrainAltitude * 100.0;\n #endif\n return vec3(aPosition, altitude);\n }\n#else\n float position_modValue = 16384.0;\n float position_delta = 0.00001;\n vec3 unpackVTPosition() {\n float z = aPosition.z;\n vec2 pos = sign(aPosition.xy + position_delta) * mod(abs(aPosition.xy), position_modValue);\n vec2 highs = floor(abs(aPosition.xy) / position_modValue);\n float altitude = sign(z + position_delta) * (highs.x * 2.0 + highs.y) * pow(2.0, 15.0) + z;\n #ifdef HAS_TERRAIN_ALTITUDE\n altitude += aTerrainAltitude * 100.0;\n #endif\n return vec3(pos, altitude);\n }\n#endif"),
|
|
24323
|
-
Fl.VERSION = "0.84.
|
|
24323
|
+
Fl.VERSION = "0.84.2", Wl.VERSION = "0.84.2";
|
|
24324
24324
|
if (o.mat4.create(), o.transcoders) {
|
|
24325
24325
|
const t = r.Map.VERSION;
|
|
24326
24326
|
if (t.indexOf("1.0.0-beta") >= 0 || t.indexOf("1.0.0-alpha") >= 0) {
|
|
@@ -24341,5 +24341,5 @@
|
|
|
24341
24341
|
t.VectorTileLayer = Fl, t.VectorTileLayerRenderer = ml, t.WaterPlugin = jm, t.WireframePainter = qp,
|
|
24342
24342
|
t.WireframePlugin = _m, Object.defineProperty(t, "t", {
|
|
24343
24343
|
value: !0
|
|
24344
|
-
}), "undefined" != typeof console && console.log("@maptalks/vt v0.84.
|
|
24344
|
+
}), "undefined" != typeof console && console.log("@maptalks/vt v0.84.2");
|
|
24345
24345
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptalks/vt",
|
|
3
|
-
"version": "0.84.
|
|
3
|
+
"version": "0.84.2",
|
|
4
4
|
"description": "The vector-tile plugin for maptalks.js",
|
|
5
5
|
"main": "dist/maptalks.vt.js",
|
|
6
6
|
"module": "dist/maptalks.vt.es.js",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"rollup": "^2.56.2",
|
|
63
63
|
"rollup-plugin-terser": "^5.3.1"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "c40bf302ff3f276b5168718d5272ffefdaec5863"
|
|
66
66
|
}
|