@antv/l7-renderer 2.21.3 → 2.21.4-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.
@@ -1,15 +1,7 @@
1
1
  // src/device/DeviceAttribute.ts
2
2
  var DeviceAttribute = class {
3
3
  constructor(device, options) {
4
- const {
5
- buffer,
6
- offset,
7
- stride,
8
- normalized,
9
- size,
10
- divisor,
11
- shaderLocation
12
- } = options;
4
+ const { buffer, offset, stride, normalized, size, divisor, shaderLocation } = options;
13
5
  this.buffer = buffer;
14
6
  this.attribute = {
15
7
  shaderLocation,
@@ -8,12 +8,7 @@ import {
8
8
  renderPipelineDescriptorCopy,
9
9
  renderPipelineDescriptorEquals
10
10
  } from "@antv/g-device-api";
11
- import {
12
- HashMap,
13
- hashCodeNumberFinish,
14
- hashCodeNumberUpdate,
15
- nullHashFunc
16
- } from "./utils/HashMap";
11
+ import { HashMap, hashCodeNumberFinish, hashCodeNumberUpdate, nullHashFunc } from "./utils/HashMap";
17
12
  function blendStateHash(hash, a) {
18
13
  hash = hashCodeNumberUpdate(hash, a.blendMode);
19
14
  hash = hashCodeNumberUpdate(hash, a.blendSrcFactor);
@@ -27,10 +22,7 @@ function attachmentStateHash(hash, a) {
27
22
  return hash;
28
23
  }
29
24
  function colorHash(hash, a) {
30
- hash = hashCodeNumberUpdate(
31
- hash,
32
- a.r << 24 | a.g << 16 | a.b << 8 | a.a
33
- );
25
+ hash = hashCodeNumberUpdate(hash, a.r << 24 | a.g << 16 | a.b << 8 | a.a);
34
26
  return hash;
35
27
  }
36
28
  function megaStateDescriptorHash(hash, a) {
@@ -129,7 +121,10 @@ var RenderCache = class {
129
121
  bindingsDescriptorEquals,
130
122
  bindingsDescriptorHash
131
123
  );
132
- this.renderPipelinesCache = new HashMap(renderPipelineDescriptorEquals, renderPipelineDescriptorHash);
124
+ this.renderPipelinesCache = new HashMap(
125
+ renderPipelineDescriptorEquals,
126
+ renderPipelineDescriptorHash
127
+ );
133
128
  this.inputLayoutsCache = new HashMap(
134
129
  inputLayoutDescriptorEquals,
135
130
  nullHashFunc
@@ -156,7 +151,9 @@ var RenderCache = class {
156
151
  let renderPipeline = this.renderPipelinesCache.get(descriptor);
157
152
  if (renderPipeline === null) {
158
153
  const descriptorCopy = renderPipelineDescriptorCopy(descriptor);
159
- descriptorCopy.colorAttachmentFormats = descriptorCopy.colorAttachmentFormats.filter((f) => f);
154
+ descriptorCopy.colorAttachmentFormats = descriptorCopy.colorAttachmentFormats.filter(
155
+ (f) => f
156
+ );
160
157
  renderPipeline = this.device.createRenderPipeline(descriptorCopy);
161
158
  this.renderPipelinesCache.add(descriptorCopy, renderPipeline);
162
159
  }
@@ -10,9 +10,7 @@ var DeviceElements = class {
10
10
  if (isTypedArray(data)) {
11
11
  typed = data;
12
12
  } else {
13
- typed = new typedArrayCtorMap[this.type || gl.UNSIGNED_INT](
14
- data
15
- );
13
+ typed = new typedArrayCtorMap[this.type || gl.UNSIGNED_INT](data);
16
14
  }
17
15
  this.type = type;
18
16
  this.count = count;
@@ -31,9 +29,7 @@ var DeviceElements = class {
31
29
  if (isTypedArray(data)) {
32
30
  typed = data;
33
31
  } else {
34
- typed = new typedArrayCtorMap[this.type || gl.UNSIGNED_INT](
35
- data
36
- );
32
+ typed = new typedArrayCtorMap[this.type || gl.UNSIGNED_INT](data);
37
33
  }
38
34
  this.indexBuffer.setSubData(0, new Uint8Array(typed.buffer));
39
35
  }
@@ -16,9 +16,7 @@ var DeviceFramebuffer = class {
16
16
  color.resize({ width, height });
17
17
  }
18
18
  this.colorTexture = color.get();
19
- this.colorRenderTarget = this.device.createRenderTargetFromTexture(
20
- this.colorTexture
21
- );
19
+ this.colorRenderTarget = this.device.createRenderTargetFromTexture(this.colorTexture);
22
20
  this.width = color["width"];
23
21
  this.height = color["height"];
24
22
  } else if (width && height) {
@@ -28,9 +26,7 @@ var DeviceFramebuffer = class {
28
26
  width,
29
27
  height
30
28
  });
31
- this.colorRenderTarget = this.device.createRenderTargetFromTexture(
32
- this.colorTexture
33
- );
29
+ this.colorRenderTarget = this.device.createRenderTargetFromTexture(this.colorTexture);
34
30
  this.width = width;
35
31
  this.height = height;
36
32
  }
@@ -44,9 +40,7 @@ var DeviceFramebuffer = class {
44
40
  depth.resize({ width, height });
45
41
  }
46
42
  this.depthTexture = depth.get();
47
- this.depthRenderTarget = this.device.createRenderTargetFromTexture(
48
- this.depthTexture
49
- );
43
+ this.depthRenderTarget = this.device.createRenderTargetFromTexture(this.depthTexture);
50
44
  this.width = depth["width"];
51
45
  this.height = depth["height"];
52
46
  } else if (width && height) {
@@ -56,9 +50,7 @@ var DeviceFramebuffer = class {
56
50
  width,
57
51
  height
58
52
  });
59
- this.depthRenderTarget = this.device.createRenderTargetFromTexture(
60
- this.depthTexture
61
- );
53
+ this.depthRenderTarget = this.device.createRenderTargetFromTexture(this.depthTexture);
62
54
  this.width = width;
63
55
  this.height = height;
64
56
  }
@@ -54,15 +54,7 @@ var DeviceModel = class {
54
54
  this.destroyed = false;
55
55
  this.uniforms = {};
56
56
  this.vertexBuffers = [];
57
- const {
58
- vs,
59
- fs,
60
- attributes,
61
- uniforms,
62
- count,
63
- elements,
64
- diagnosticDerivativeUniformityEnabled
65
- } = options;
57
+ const { vs, fs, attributes, uniforms, count, elements, diagnosticDerivativeUniformityEnabled } = options;
66
58
  this.options = options;
67
59
  const diagnosticDerivativeUniformityHeader = diagnosticDerivativeUniformityEnabled ? "" : this.service["viewportOrigin"] === ViewportOrigin.UPPER_LEFT ? "diagnostic(off,derivative_uniformity);" : "";
68
60
  this.program = service.renderCache.createProgram({
@@ -290,9 +282,7 @@ var DeviceModel = class {
290
282
  this.pipeline.destroy();
291
283
  this.destroyed = true;
292
284
  }
293
- initDepthDrawParams({
294
- depth
295
- }) {
285
+ initDepthDrawParams({ depth }) {
296
286
  if (depth) {
297
287
  return {
298
288
  enable: depth.enable === void 0 ? true : !!depth.enable,
@@ -302,9 +292,7 @@ var DeviceModel = class {
302
292
  };
303
293
  }
304
294
  }
305
- getBlendDrawParams({
306
- blend
307
- }) {
295
+ getBlendDrawParams({ blend }) {
308
296
  const { enable, func, equation, color = [0, 0, 0, 0] } = blend || {};
309
297
  return {
310
298
  enable: !!enable,
@@ -324,9 +312,7 @@ var DeviceModel = class {
324
312
  /**
325
313
  * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#stencil
326
314
  */
327
- getStencilDrawParams({
328
- stencil
329
- }) {
315
+ getStencilDrawParams({ stencil }) {
330
316
  const {
331
317
  enable,
332
318
  mask = 4294967295,
@@ -369,9 +355,7 @@ var DeviceModel = class {
369
355
  /**
370
356
  * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#culling
371
357
  */
372
- initCullDrawParams({
373
- cull
374
- }) {
358
+ initCullDrawParams({ cull }) {
375
359
  if (cull) {
376
360
  const { enable, face = gl.BACK } = cull;
377
361
  return {
@@ -388,12 +372,7 @@ var DeviceModel = class {
388
372
  extractUniforms(uniforms) {
389
373
  const extractedUniforms = {};
390
374
  Object.keys(uniforms).forEach((uniformName) => {
391
- this.extractUniformsRecursively(
392
- uniformName,
393
- uniforms[uniformName],
394
- extractedUniforms,
395
- ""
396
- );
375
+ this.extractUniformsRecursively(uniformName, uniforms[uniformName], extractedUniforms, "");
397
376
  });
398
377
  return extractedUniforms;
399
378
  }
@@ -242,12 +242,7 @@ var DeviceRendererService = class {
242
242
  // @ts-ignore
243
243
  (currentFramebuffer == null ? void 0 : currentFramebuffer.clearOptions) || {}
244
244
  );
245
- const colorClearColor = colorAttachment ? colorNewFromRGBA(
246
- color[0] * 255,
247
- color[1] * 255,
248
- color[2] * 255,
249
- color[3]
250
- ) : TransparentBlack;
245
+ const colorClearColor = colorAttachment ? colorNewFromRGBA(color[0] * 255, color[1] * 255, color[2] * 255, color[3]) : TransparentBlack;
251
246
  const depthClearValue = depthStencilAttachment ? depth : void 0;
252
247
  const stencilClearValue = depthStencilAttachment ? stencil : void 0;
253
248
  const renderPass = this.device.createRenderPass({
@@ -19,11 +19,7 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
 
21
21
  // src/regl/ReglModel.ts
22
- import {
23
- ClipSpaceNearZ,
24
- preprocessShader_GLSL,
25
- ViewportOrigin
26
- } from "@antv/g-device-api";
22
+ import { ClipSpaceNearZ, preprocessShader_GLSL, ViewportOrigin } from "@antv/g-device-api";
27
23
  import { gl, removeDuplicateUniforms } from "@antv/l7-core";
28
24
  import { lodashUtil } from "@antv/l7-utils";
29
25
  import {
@@ -41,18 +37,7 @@ var ReglModel = class {
41
37
  this.destroyed = false;
42
38
  this.uniforms = {};
43
39
  this.reGl = reGl;
44
- const {
45
- vs,
46
- fs,
47
- attributes,
48
- uniforms,
49
- primitive,
50
- count,
51
- elements,
52
- depth,
53
- cull,
54
- instances
55
- } = options;
40
+ const { vs, fs, attributes, uniforms, primitive, count, elements, depth, cull, instances } = options;
56
41
  const vendorInfo = {
57
42
  platformString: "WebGL1",
58
43
  glslVersion: "#version 100",
@@ -190,9 +175,7 @@ var ReglModel = class {
190
175
  };
191
176
  }
192
177
  }
193
- getBlendDrawParams({
194
- blend
195
- }) {
178
+ getBlendDrawParams({ blend }) {
196
179
  const { enable, func, equation, color = [0, 0, 0, 0] } = blend || {};
197
180
  return {
198
181
  enable: !!enable,
@@ -212,9 +195,7 @@ var ReglModel = class {
212
195
  /**
213
196
  * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#stencil
214
197
  */
215
- getStencilDrawParams({
216
- stencil
217
- }) {
198
+ getStencilDrawParams({ stencil }) {
218
199
  const {
219
200
  enable,
220
201
  mask = -1,
@@ -276,12 +257,7 @@ var ReglModel = class {
276
257
  extractUniforms(uniforms) {
277
258
  const extractedUniforms = {};
278
259
  Object.keys(uniforms).forEach((uniformName) => {
279
- this.extractUniformsRecursively(
280
- uniformName,
281
- uniforms[uniformName],
282
- extractedUniforms,
283
- ""
284
- );
260
+ this.extractUniformsRecursively(uniformName, uniforms[uniformName], extractedUniforms, "");
285
261
  });
286
262
  return extractedUniforms;
287
263
  }
@@ -24,15 +24,7 @@ __export(DeviceAttribute_exports, {
24
24
  module.exports = __toCommonJS(DeviceAttribute_exports);
25
25
  var DeviceAttribute = class {
26
26
  constructor(device, options) {
27
- const {
28
- buffer,
29
- offset,
30
- stride,
31
- normalized,
32
- size,
33
- divisor,
34
- shaderLocation
35
- } = options;
27
+ const { buffer, offset, stride, normalized, size, divisor, shaderLocation } = options;
36
28
  this.buffer = buffer;
37
29
  this.attribute = {
38
30
  shaderLocation,
@@ -37,10 +37,7 @@ function attachmentStateHash(hash, a) {
37
37
  return hash;
38
38
  }
39
39
  function colorHash(hash, a) {
40
- hash = (0, import_HashMap.hashCodeNumberUpdate)(
41
- hash,
42
- a.r << 24 | a.g << 16 | a.b << 8 | a.a
43
- );
40
+ hash = (0, import_HashMap.hashCodeNumberUpdate)(hash, a.r << 24 | a.g << 16 | a.b << 8 | a.a);
44
41
  return hash;
45
42
  }
46
43
  function megaStateDescriptorHash(hash, a) {
@@ -139,7 +136,10 @@ var RenderCache = class {
139
136
  import_g_device_api.bindingsDescriptorEquals,
140
137
  bindingsDescriptorHash
141
138
  );
142
- this.renderPipelinesCache = new import_HashMap.HashMap(import_g_device_api.renderPipelineDescriptorEquals, renderPipelineDescriptorHash);
139
+ this.renderPipelinesCache = new import_HashMap.HashMap(
140
+ import_g_device_api.renderPipelineDescriptorEquals,
141
+ renderPipelineDescriptorHash
142
+ );
143
143
  this.inputLayoutsCache = new import_HashMap.HashMap(
144
144
  import_g_device_api.inputLayoutDescriptorEquals,
145
145
  import_HashMap.nullHashFunc
@@ -166,7 +166,9 @@ var RenderCache = class {
166
166
  let renderPipeline = this.renderPipelinesCache.get(descriptor);
167
167
  if (renderPipeline === null) {
168
168
  const descriptorCopy = (0, import_g_device_api.renderPipelineDescriptorCopy)(descriptor);
169
- descriptorCopy.colorAttachmentFormats = descriptorCopy.colorAttachmentFormats.filter((f) => f);
169
+ descriptorCopy.colorAttachmentFormats = descriptorCopy.colorAttachmentFormats.filter(
170
+ (f) => f
171
+ );
170
172
  renderPipeline = this.device.createRenderPipeline(descriptorCopy);
171
173
  this.renderPipelinesCache.add(descriptorCopy, renderPipeline);
172
174
  }
@@ -33,9 +33,7 @@ var DeviceElements = class {
33
33
  if ((0, import_typedarray.isTypedArray)(data)) {
34
34
  typed = data;
35
35
  } else {
36
- typed = new import_constants.typedArrayCtorMap[this.type || import_l7_core.gl.UNSIGNED_INT](
37
- data
38
- );
36
+ typed = new import_constants.typedArrayCtorMap[this.type || import_l7_core.gl.UNSIGNED_INT](data);
39
37
  }
40
38
  this.type = type;
41
39
  this.count = count;
@@ -54,9 +52,7 @@ var DeviceElements = class {
54
52
  if ((0, import_typedarray.isTypedArray)(data)) {
55
53
  typed = data;
56
54
  } else {
57
- typed = new import_constants.typedArrayCtorMap[this.type || import_l7_core.gl.UNSIGNED_INT](
58
- data
59
- );
55
+ typed = new import_constants.typedArrayCtorMap[this.type || import_l7_core.gl.UNSIGNED_INT](data);
60
56
  }
61
57
  this.indexBuffer.setSubData(0, new Uint8Array(typed.buffer));
62
58
  }
@@ -39,9 +39,7 @@ var DeviceFramebuffer = class {
39
39
  color.resize({ width, height });
40
40
  }
41
41
  this.colorTexture = color.get();
42
- this.colorRenderTarget = this.device.createRenderTargetFromTexture(
43
- this.colorTexture
44
- );
42
+ this.colorRenderTarget = this.device.createRenderTargetFromTexture(this.colorTexture);
45
43
  this.width = color["width"];
46
44
  this.height = color["height"];
47
45
  } else if (width && height) {
@@ -51,9 +49,7 @@ var DeviceFramebuffer = class {
51
49
  width,
52
50
  height
53
51
  });
54
- this.colorRenderTarget = this.device.createRenderTargetFromTexture(
55
- this.colorTexture
56
- );
52
+ this.colorRenderTarget = this.device.createRenderTargetFromTexture(this.colorTexture);
57
53
  this.width = width;
58
54
  this.height = height;
59
55
  }
@@ -67,9 +63,7 @@ var DeviceFramebuffer = class {
67
63
  depth.resize({ width, height });
68
64
  }
69
65
  this.depthTexture = depth.get();
70
- this.depthRenderTarget = this.device.createRenderTargetFromTexture(
71
- this.depthTexture
72
- );
66
+ this.depthRenderTarget = this.device.createRenderTargetFromTexture(this.depthTexture);
73
67
  this.width = depth["width"];
74
68
  this.height = depth["height"];
75
69
  } else if (width && height) {
@@ -79,9 +73,7 @@ var DeviceFramebuffer = class {
79
73
  width,
80
74
  height
81
75
  });
82
- this.depthRenderTarget = this.device.createRenderTargetFromTexture(
83
- this.depthTexture
84
- );
76
+ this.depthRenderTarget = this.device.createRenderTargetFromTexture(this.depthTexture);
85
77
  this.width = width;
86
78
  this.height = height;
87
79
  }
@@ -64,15 +64,7 @@ var DeviceModel = class {
64
64
  this.destroyed = false;
65
65
  this.uniforms = {};
66
66
  this.vertexBuffers = [];
67
- const {
68
- vs,
69
- fs,
70
- attributes,
71
- uniforms,
72
- count,
73
- elements,
74
- diagnosticDerivativeUniformityEnabled
75
- } = options;
67
+ const { vs, fs, attributes, uniforms, count, elements, diagnosticDerivativeUniformityEnabled } = options;
76
68
  this.options = options;
77
69
  const diagnosticDerivativeUniformityHeader = diagnosticDerivativeUniformityEnabled ? "" : this.service["viewportOrigin"] === import_g_device_api.ViewportOrigin.UPPER_LEFT ? "diagnostic(off,derivative_uniformity);" : "";
78
70
  this.program = service.renderCache.createProgram({
@@ -300,9 +292,7 @@ var DeviceModel = class {
300
292
  this.pipeline.destroy();
301
293
  this.destroyed = true;
302
294
  }
303
- initDepthDrawParams({
304
- depth
305
- }) {
295
+ initDepthDrawParams({ depth }) {
306
296
  if (depth) {
307
297
  return {
308
298
  enable: depth.enable === void 0 ? true : !!depth.enable,
@@ -312,9 +302,7 @@ var DeviceModel = class {
312
302
  };
313
303
  }
314
304
  }
315
- getBlendDrawParams({
316
- blend
317
- }) {
305
+ getBlendDrawParams({ blend }) {
318
306
  const { enable, func, equation, color = [0, 0, 0, 0] } = blend || {};
319
307
  return {
320
308
  enable: !!enable,
@@ -334,9 +322,7 @@ var DeviceModel = class {
334
322
  /**
335
323
  * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#stencil
336
324
  */
337
- getStencilDrawParams({
338
- stencil
339
- }) {
325
+ getStencilDrawParams({ stencil }) {
340
326
  const {
341
327
  enable,
342
328
  mask = 4294967295,
@@ -379,9 +365,7 @@ var DeviceModel = class {
379
365
  /**
380
366
  * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#culling
381
367
  */
382
- initCullDrawParams({
383
- cull
384
- }) {
368
+ initCullDrawParams({ cull }) {
385
369
  if (cull) {
386
370
  const { enable, face = import_l7_core.gl.BACK } = cull;
387
371
  return {
@@ -398,12 +382,7 @@ var DeviceModel = class {
398
382
  extractUniforms(uniforms) {
399
383
  const extractedUniforms = {};
400
384
  Object.keys(uniforms).forEach((uniformName) => {
401
- this.extractUniformsRecursively(
402
- uniformName,
403
- uniforms[uniformName],
404
- extractedUniforms,
405
- ""
406
- );
385
+ this.extractUniformsRecursively(uniformName, uniforms[uniformName], extractedUniforms, "");
407
386
  });
408
387
  return extractedUniforms;
409
388
  }
@@ -266,12 +266,7 @@ var DeviceRendererService = class {
266
266
  // @ts-ignore
267
267
  (currentFramebuffer == null ? void 0 : currentFramebuffer.clearOptions) || {}
268
268
  );
269
- const colorClearColor = colorAttachment ? (0, import_g_device_api.colorNewFromRGBA)(
270
- color[0] * 255,
271
- color[1] * 255,
272
- color[2] * 255,
273
- color[3]
274
- ) : import_g_device_api.TransparentBlack;
269
+ const colorClearColor = colorAttachment ? (0, import_g_device_api.colorNewFromRGBA)(color[0] * 255, color[1] * 255, color[2] * 255, color[3]) : import_g_device_api.TransparentBlack;
275
270
  const depthClearValue = depthStencilAttachment ? depth : void 0;
276
271
  const stencilClearValue = depthStencilAttachment ? stencil : void 0;
277
272
  const renderPass = this.device.createRenderPass({
@@ -49,18 +49,7 @@ var ReglModel = class {
49
49
  this.destroyed = false;
50
50
  this.uniforms = {};
51
51
  this.reGl = reGl;
52
- const {
53
- vs,
54
- fs,
55
- attributes,
56
- uniforms,
57
- primitive,
58
- count,
59
- elements,
60
- depth,
61
- cull,
62
- instances
63
- } = options;
52
+ const { vs, fs, attributes, uniforms, primitive, count, elements, depth, cull, instances } = options;
64
53
  const vendorInfo = {
65
54
  platformString: "WebGL1",
66
55
  glslVersion: "#version 100",
@@ -198,9 +187,7 @@ var ReglModel = class {
198
187
  };
199
188
  }
200
189
  }
201
- getBlendDrawParams({
202
- blend
203
- }) {
190
+ getBlendDrawParams({ blend }) {
204
191
  const { enable, func, equation, color = [0, 0, 0, 0] } = blend || {};
205
192
  return {
206
193
  enable: !!enable,
@@ -220,9 +207,7 @@ var ReglModel = class {
220
207
  /**
221
208
  * @see https://github.com/regl-project/regl/blob/gh-pages/API.md#stencil
222
209
  */
223
- getStencilDrawParams({
224
- stencil
225
- }) {
210
+ getStencilDrawParams({ stencil }) {
226
211
  const {
227
212
  enable,
228
213
  mask = -1,
@@ -284,12 +269,7 @@ var ReglModel = class {
284
269
  extractUniforms(uniforms) {
285
270
  const extractedUniforms = {};
286
271
  Object.keys(uniforms).forEach((uniformName) => {
287
- this.extractUniformsRecursively(
288
- uniformName,
289
- uniforms[uniformName],
290
- extractedUniforms,
291
- ""
292
- );
272
+ this.extractUniformsRecursively(uniformName, uniforms[uniformName], extractedUniforms, "");
293
273
  });
294
274
  return extractedUniforms;
295
275
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-renderer",
3
- "version": "2.21.3",
3
+ "version": "2.21.4-beta.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "https://github.com/orgs/antvis/people",
@@ -12,26 +12,26 @@
12
12
  "lib",
13
13
  "es"
14
14
  ],
15
- "scripts": {
16
- "dev": "father dev",
17
- "build": "npm run clean && father build",
18
- "check-deps": "father doctor",
19
- "lint": "eslint src __tests__",
20
- "clean": "rimraf dist es lib",
21
- "sync": "tnpm sync"
22
- },
23
15
  "dependencies": {
24
16
  "@antv/g-device-api": "^1.6.4",
25
- "@antv/l7-core": "^2.21.3",
26
- "@antv/l7-utils": "^2.21.3",
27
17
  "@babel/runtime": "^7.7.7",
28
- "regl": "1.6.1"
18
+ "regl": "1.6.1",
19
+ "@antv/l7-core": "2.21.4-beta.1",
20
+ "@antv/l7-utils": "2.21.4-beta.1"
29
21
  },
30
- "devDependencies": {
31
- "@antv/l7-test-utils": "^2.21.3"
22
+ "peerDependencies": {
23
+ "@antv/l7-test-utils": "2.21.4-beta.1"
32
24
  },
33
25
  "publishConfig": {
34
- "access": "public"
26
+ "access": "public",
27
+ "registry": "https://registry.npmjs.org"
35
28
  },
36
- "gitHead": "522dec125e1d49bfe3b7325239bb6c9103311b2d"
37
- }
29
+ "repository": "git@github.com:antvis/L7.git",
30
+ "scripts": {
31
+ "dev": "father dev",
32
+ "build": "npm run clean && father build",
33
+ "check-deps": "father doctor",
34
+ "lint": "eslint src __tests__",
35
+ "clean": "rimraf dist es lib"
36
+ }
37
+ }
package/CHANGELOG.md DELETED
@@ -1,350 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [2.1.12](https://github.com/antvis/L7/compare/v2.1.11...v2.1.12) (2020-04-10)
7
-
8
- **Note:** Version bump only for package @antv/l7-renderer
9
-
10
-
11
-
12
-
13
-
14
- ## [2.1.11](https://github.com/antvis/L7/compare/v2.1.10...v2.1.11) (2020-04-07)
15
-
16
- **Note:** Version bump only for package @antv/l7-renderer
17
-
18
-
19
-
20
-
21
-
22
- ## [2.1.8](https://github.com/antvis/L7/compare/v2.1.7...v2.1.8) (2020-03-26)
23
-
24
- **Note:** Version bump only for package @antv/l7-renderer
25
-
26
-
27
-
28
-
29
-
30
- ## [2.1.7](https://github.com/antvis/L7/compare/v2.1.6...v2.1.7) (2020-03-26)
31
-
32
- **Note:** Version bump only for package @antv/l7-renderer
33
-
34
-
35
-
36
-
37
-
38
- ## [2.1.5](https://github.com/antvis/L7/compare/v2.1.4...v2.1.5) (2020-03-20)
39
-
40
- **Note:** Version bump only for package @antv/l7-renderer
41
-
42
-
43
-
44
-
45
-
46
- ## [2.1.3](https://github.com/antvis/L7/compare/v2.0.36...v2.1.3) (2020-03-17)
47
-
48
-
49
- ### Bug Fixes
50
-
51
- * ios 12 点击事件问题 & regl 版本锁定 ([ad52e8e](https://github.com/antvis/L7/commit/ad52e8e8fde4a7b4b3e16d86a6035bd7c07fb80c))
52
-
53
-
54
-
55
-
56
-
57
- ## [2.1.2](https://github.com/antvis/L7/compare/v2.0.36...v2.1.2) (2020-03-15)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * ios 12 点击事件问题 & regl 版本锁定 ([ad52e8e](https://github.com/antvis/L7/commit/ad52e8e8fde4a7b4b3e16d86a6035bd7c07fb80c))
63
-
64
-
65
-
66
-
67
-
68
- ## [2.1.1](https://github.com/antvis/L7/compare/v2.0.36...v2.1.1) (2020-03-15)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * ios 12 点击事件问题 & regl 版本锁定 ([ad52e8e](https://github.com/antvis/L7/commit/ad52e8e8fde4a7b4b3e16d86a6035bd7c07fb80c))
74
-
75
-
76
-
77
-
78
-
79
- ## [2.0.34](https://github.com/antvis/L7/compare/v2.0.32...v2.0.34) (2020-03-02)
80
-
81
- **Note:** Version bump only for package @antv/l7-renderer
82
-
83
-
84
-
85
-
86
-
87
- # [2.0.0-beta.28](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.28) (2020-01-02)
88
-
89
-
90
- ### Bug Fixes
91
-
92
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
93
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
94
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
95
-
96
-
97
- ### Features
98
-
99
- * add raster layer ([2b28380](https://github.com/antvis/L7/commit/2b2838015198b8586b0c30fdc154116252a76f29))
100
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
101
-
102
-
103
-
104
-
105
-
106
- # [2.0.0-beta.27](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.27) (2020-01-01)
107
-
108
-
109
- ### Bug Fixes
110
-
111
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
112
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
113
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
114
-
115
-
116
- ### Features
117
-
118
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
119
-
120
-
121
-
122
-
123
-
124
- # [2.0.0-alpha.28](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-alpha.28) (2020-01-01)
125
-
126
-
127
- ### Bug Fixes
128
-
129
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
130
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
131
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
132
-
133
-
134
- ### Features
135
-
136
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
137
-
138
-
139
-
140
-
141
-
142
- # [2.0.0-alpha.27](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-alpha.27) (2019-12-31)
143
-
144
-
145
- ### Bug Fixes
146
-
147
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
148
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
149
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
150
-
151
-
152
- ### Features
153
-
154
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
155
-
156
-
157
-
158
-
159
-
160
- # [2.0.0-beta.26](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.26) (2019-12-30)
161
-
162
-
163
- ### Bug Fixes
164
-
165
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
166
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
167
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
168
-
169
-
170
- ### Features
171
-
172
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
173
-
174
-
175
-
176
-
177
-
178
- # [2.0.0-beta.25](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.25) (2019-12-27)
179
-
180
-
181
- ### Bug Fixes
182
-
183
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
184
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
185
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
186
-
187
-
188
- ### Features
189
-
190
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
191
-
192
-
193
-
194
-
195
-
196
- # [2.0.0-beta.24](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.24) (2019-12-23)
197
-
198
-
199
- ### Bug Fixes
200
-
201
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
202
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
203
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
204
-
205
-
206
- ### Features
207
-
208
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
209
-
210
-
211
-
212
-
213
-
214
- # [2.0.0-beta.23](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.23) (2019-12-23)
215
-
216
-
217
- ### Bug Fixes
218
-
219
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
220
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
221
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
222
-
223
-
224
- ### Features
225
-
226
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
227
-
228
-
229
-
230
-
231
-
232
- # [2.0.0-beta.21](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.21) (2019-12-18)
233
-
234
-
235
- ### Bug Fixes
236
-
237
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
238
- * render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
239
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
240
-
241
-
242
- ### Features
243
-
244
- * **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
245
-
246
-
247
-
248
-
249
-
250
- # [2.0.0-beta.20](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.20) (2019-12-12)
251
-
252
-
253
- ### Bug Fixes
254
-
255
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
256
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
257
-
258
-
259
-
260
-
261
-
262
- # [2.0.0-beta.19](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.19) (2019-12-08)
263
-
264
-
265
- ### Bug Fixes
266
-
267
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
268
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
269
-
270
-
271
-
272
-
273
-
274
- # [2.0.0-beta.18](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.18) (2019-12-08)
275
-
276
-
277
- ### Bug Fixes
278
-
279
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
280
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
281
-
282
-
283
-
284
-
285
-
286
- # [2.0.0-beta.17](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.17) (2019-12-08)
287
-
288
-
289
- ### Bug Fixes
290
-
291
- * 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
292
- * **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
293
-
294
-
295
-
296
-
297
-
298
- # [2.0.0-beta.16](https://github.com/antvis/L7/compare/v2.0.0-beta.15...v2.0.0-beta.16) (2019-11-29)
299
-
300
- **Note:** Version bump only for package @antv/l7-renderer
301
-
302
-
303
-
304
-
305
-
306
- # [2.0.0-beta.15](https://github.com/antvis/L7/compare/v2.0.0-beta.14...v2.0.0-beta.15) (2019-11-29)
307
-
308
- **Note:** Version bump only for package @antv/l7-renderer
309
-
310
-
311
-
312
-
313
-
314
- # [2.0.0-beta.13](https://github.com/antvis/L7/compare/v2.0.0-beta.12...v2.0.0-beta.13) (2019-11-28)
315
-
316
- **Note:** Version bump only for package @antv/l7-renderer
317
-
318
-
319
-
320
-
321
-
322
- # [2.0.0-beta.12](https://github.com/antvis/L7/compare/v2.0.0-beta.11...v2.0.0-beta.12) (2019-11-28)
323
-
324
-
325
- ### Bug Fixes
326
-
327
- * **component:** fix marker ([14d4818](https://github.com/antvis/L7/commit/14d48184a1579241b077110ed51a8358de25e010))
328
-
329
-
330
-
331
-
332
-
333
- # 2.0.0-beta.11 (2019-11-28)
334
-
335
-
336
- ### Bug Fixes
337
-
338
- * eslint bug ([52e8afc](https://github.com/antvis/L7/commit/52e8afcb345151f4e544a4227590e6eebd7b42bd))
339
- * **layers:** heatmap 3d effect ([c99bb27](https://github.com/antvis/L7/commit/c99bb27d94ad9b6b1e85b7b153953dd2a7455db8))
340
- * **merge:** fix conflict ([07e8505](https://github.com/antvis/L7/commit/07e85059ebd40506623253feb624ee3083f393ae))
341
- * **tslint:** fix tslint error ([aed5e9e](https://github.com/antvis/L7/commit/aed5e9e51b5dd214cc19baece7dd0138b336a5d5))
342
-
343
-
344
- ### Features
345
-
346
- * **add l7 site:** add websites ([0463ff8](https://github.com/antvis/L7/commit/0463ff874eab1c484b593e8c02f73c85a02c000c))
347
- * **layer:** add imagelayer ([a995815](https://github.com/antvis/L7/commit/a995815284652ca5d6e013c547b617fa52039ddc))
348
- * **layers:** add heatmap layer ([e04b3b2](https://github.com/antvis/L7/commit/e04b3b268b9fdc4bea150d2db1fdaae227f51fc8))
349
- * **multi-pass:** support TAA(Temporal Anti-Aliasing) ([2cf0824](https://github.com/antvis/L7/commit/2cf082439ad04eb84b96b2922e45082476452aec))
350
- * **picking:** support PixelPickingPass and highlight the picked feature ([ff0ffa0](https://github.com/antvis/L7/commit/ff0ffa057e2f533dc6ac92f40d3892f9dd57fafb))