@maptalks/vt 0.66.0 → 0.66.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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/vt v0.66.0
2
+ * @maptalks/vt v0.66.1
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2022 maptalks.org
5
5
  */
@@ -13156,16 +13156,16 @@
13156
13156
  constructor(t, e) {
13157
13157
  super(t);
13158
13158
  const n = e.getMap().id;
13159
- this.Ct = e, this.Et = n, this.Rt = "vt_" + r.Util.UID();
13159
+ this.Ct = e, this.Et = n, this.Rt = "vt_" + mn();
13160
13160
  const i = e.getJSONType();
13161
13161
  this.Dt = Ns.indexOf(i) >= 0, this.Nt = {}, this.Lt = new Fs({
13162
13162
  iconErrorUrl: e.options.iconErrorUrl,
13163
13163
  maxSize: e.options.maxIconSize
13164
13164
  });
13165
- const o = !e.getRenderer().isEnableWorkAround("win-intel-gpu-crash");
13165
+ const r = !e.getRenderer().isEnableWorkAround("win-intel-gpu-crash");
13166
13166
  this.Ht = new Is(t => {
13167
13167
  e.getMap().getRenderer().callInNextFrame(t);
13168
- }, e.options.glyphSdfLimitPerFrame, o);
13168
+ }, e.options.glyphSdfLimitPerFrame, r);
13169
13169
  }
13170
13170
  initialize(t) {
13171
13171
  t(null);
@@ -21364,7 +21364,7 @@
21364
21364
  Kh.registerAt(la), va.registerPainter("lit", Ah), va.registerPainter("icon", Mc),
21365
21365
  va.registerPainter("fill", iu), va.registerPainter("line", ou), va.registerPainter("line-gradient", su),
21366
21366
  va.registerPainter("water", Nh), n.reshader.ShaderLib.register("vt_position_vert", "#ifdef HAS_ALTITUDE\n vec3 unpackVTPosition() {\n return vec3(aPosition, aAltitude);\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 return vec3(pos, altitude);\n }\n#endif"),
21367
- la.VERSION = "0.66.0", va.VERSION = "0.66.0";
21367
+ la.VERSION = "0.66.1", va.VERSION = "0.66.1";
21368
21368
  if (o.mat4.create(), o.transcoders) {
21369
21369
  const t = r.Map.VERSION;
21370
21370
  if (t.indexOf("1.0.0-beta") >= 0 || t.indexOf("1.0.0-alpha") >= 0) {
@@ -21384,5 +21384,5 @@
21384
21384
  t.VectorTileLayerRenderer = Ys, t.WaterPlugin = Kh, t.WireframePainter = xh, t.WireframePlugin = Bh,
21385
21385
  Object.defineProperty(t, "t", {
21386
21386
  value: !0
21387
- }), "undefined" != typeof console && console.log("@maptalks/vt v0.66.0");
21387
+ }), "undefined" != typeof console && console.log("@maptalks/vt v0.66.1");
21388
21388
  }));
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @maptalks/vt v0.66.0
2
+ * @maptalks/vt v0.66.1
3
3
  * LICENSE : undefined
4
4
  * (c) 2016-2022 maptalks.org
5
5
  */
@@ -9167,19 +9167,19 @@ var Nn = Object.freeze({
9167
9167
  const Dn = [ "GeoJSONVectorTileLayer" ];
9168
9168
 
9169
9169
  class Ln extends t.worker.Actor {
9170
- constructor(e, n) {
9171
- super(e);
9172
- const i = n.getMap().id;
9173
- this.j = n, this.O = i, this.C = "vt_" + t.Util.UID();
9174
- const r = n.getJSONType();
9175
- this.F = Dn.indexOf(r) >= 0, this.R = {}, this.D = new b({
9176
- iconErrorUrl: n.options.iconErrorUrl,
9177
- maxSize: n.options.maxIconSize
9170
+ constructor(t, e) {
9171
+ super(t);
9172
+ const n = e.getMap().id;
9173
+ this.j = e, this.O = n, this.C = "vt_" + An();
9174
+ const i = e.getJSONType();
9175
+ this.F = Dn.indexOf(i) >= 0, this.R = {}, this.D = new b({
9176
+ iconErrorUrl: e.options.iconErrorUrl,
9177
+ maxSize: e.options.maxIconSize
9178
9178
  });
9179
- const o = !n.getRenderer().isEnableWorkAround("win-intel-gpu-crash");
9179
+ const r = !e.getRenderer().isEnableWorkAround("win-intel-gpu-crash");
9180
9180
  this.L = new v(t => {
9181
- n.getMap().getRenderer().callInNextFrame(t);
9182
- }, n.options.glyphSdfLimitPerFrame, o);
9181
+ e.getMap().getRenderer().callInNextFrame(t);
9182
+ }, e.options.glyphSdfLimitPerFrame, r);
9183
9183
  }
9184
9184
  initialize(t) {
9185
9185
  t(null);
@@ -17428,7 +17428,7 @@ const Ea = $i("water", xa);
17428
17428
  Ea.registerAt(ri), mi.registerPainter("lit", oa), mi.registerPainter("icon", as),
17429
17429
  mi.registerPainter("fill", Rr), mi.registerPainter("line", Dr), mi.registerPainter("line-gradient", Lr),
17430
17430
  mi.registerPainter("water", xa), n.ShaderLib.register("vt_position_vert", "#ifdef HAS_ALTITUDE\n vec3 unpackVTPosition() {\n return vec3(aPosition, aAltitude);\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 return vec3(pos, altitude);\n }\n#endif"),
17431
- ri.VERSION = "0.66.0", mi.VERSION = "0.66.0";
17431
+ ri.VERSION = "0.66.1", mi.VERSION = "0.66.1";
17432
17432
 
17433
17433
  if (e.mat4.create(), e.transcoders) {
17434
17434
  const n = t.Map.VERSION;
@@ -17442,4 +17442,4 @@ if (e.mat4.create(), e.transcoders) {
17442
17442
 
17443
17443
  export { Rr as FillPainter, ka as FillPlugin, Oa as GLTFPhongPlugin, za as GLTFStandardPlugin, di as GeoJSONVectorTileLayer, Ca as HeatmapPlugin, as as IconPainter, _a as IconPlugin, Ta as LineGradientPlugin, Dr as LinePainter, Aa as LinePlugin, Li as LineStringLayer, ja as LitPlugin, ci as MapboxVectorTileLayer, Xs as NativeLinePainter, Ma as NativeLinePlugin, $s as NativePointPainter, ta as PhongPainter, Ia as PhongPlugin, Di as PointLayer, qi as PolygonLayer, qs as TextPainter, Sa as TextPlugin, Nn as Util, mi as Vector3DLayer, ri as VectorTileLayer, Yn as VectorTileLayerRenderer, Ea as WaterPlugin, na as WireframePainter, Pa as WireframePlugin };
17444
17444
 
17445
- "undefined" != typeof console && console.log("@maptalks/vt v0.66.0");
17445
+ "undefined" != typeof console && console.log("@maptalks/vt v0.66.1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptalks/vt",
3
- "version": "0.66.0",
3
+ "version": "0.66.1",
4
4
  "description": "The vector-tile plugin for maptalks.js",
5
5
  "main": "dist/maptalks.vt.js",
6
6
  "browser": "dist/maptalks.vt.js",