@antv/l7-renderer 2.20.20 → 2.21.0
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/es/device/DeviceTexture2D.js +0 -3
- package/es/device/index.d.ts +0 -1
- package/es/device/index.js +2 -5
- package/es/device/utils/HashMap.d.ts +1 -1
- package/es/device/utils/HashMap.js +1 -1
- package/es/regl/index.d.ts +0 -1
- package/es/regl/index.js +2 -5
- package/lib/device/DeviceTexture2D.js +0 -3
- package/lib/device/index.js +0 -14
- package/lib/device/utils/HashMap.js +1 -1
- package/lib/regl/index.js +0 -14
- package/package.json +5 -7
|
@@ -19,8 +19,6 @@ var DeviceTexture2D = /*#__PURE__*/function () {
|
|
|
19
19
|
_options$wrapT = options.wrapT,
|
|
20
20
|
wrapT = _options$wrapT === void 0 ? gl.CLAMP_TO_EDGE : _options$wrapT,
|
|
21
21
|
aniso = options.aniso,
|
|
22
|
-
_options$mipmap = options.mipmap,
|
|
23
|
-
mipmap = _options$mipmap === void 0 ? false : _options$mipmap,
|
|
24
22
|
_options$mag = options.mag,
|
|
25
23
|
mag = _options$mag === void 0 ? gl.NEAREST : _options$mag,
|
|
26
24
|
_options$min = options.min,
|
|
@@ -48,7 +46,6 @@ var DeviceTexture2D = /*#__PURE__*/function () {
|
|
|
48
46
|
flipY = _options$flipY === void 0 ? false : _options$flipY,
|
|
49
47
|
_options$format = options.format,
|
|
50
48
|
format = _options$format === void 0 ? gl.RGBA : _options$format,
|
|
51
|
-
aniso = options.aniso,
|
|
52
49
|
_options$alignment = options.alignment,
|
|
53
50
|
alignment = _options$alignment === void 0 ? 1 : _options$alignment,
|
|
54
51
|
_options$usage = options.usage,
|
package/es/device/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RenderPass, RenderTarget, SwapChain } from '@antv/g-device-api';
|
|
2
2
|
import type { IAttribute, IAttributeInitializationOptions, IBuffer, IBufferInitializationOptions, IClearOptions, IElements, IElementsInitializationOptions, IExtensions, IFramebuffer, IFramebufferInitializationOptions, IModel, IModelInitializationOptions, IReadPixelsOptions, IRenderConfig, IRendererService, ITexture2D, ITexture2DInitializationOptions } from '@antv/l7-core';
|
|
3
|
-
import 'reflect-metadata';
|
|
4
3
|
import { RenderCache } from './DeviceCache';
|
|
5
4
|
import DeviceFramebuffer from './DeviceFramebuffer';
|
|
6
5
|
/**
|
package/es/device/index.js
CHANGED
|
@@ -2,12 +2,9 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
|
-
var _dec, _class;
|
|
6
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
6
|
import { Format, TextureUsage, TransparentBlack, ViewportOrigin, WebGLDeviceContribution, WebGPUDeviceContribution, colorNewFromRGBA } from '@antv/g-device-api';
|
|
8
7
|
import { lodashUtil } from '@antv/l7-utils';
|
|
9
|
-
import { injectable } from 'inversify';
|
|
10
|
-
import 'reflect-metadata';
|
|
11
8
|
import DeviceAttribute from "./DeviceAttribute";
|
|
12
9
|
import DeviceBuffer from "./DeviceBuffer";
|
|
13
10
|
import { RenderCache } from "./DeviceCache";
|
|
@@ -21,7 +18,7 @@ var isUndefined = lodashUtil.isUndefined;
|
|
|
21
18
|
/**
|
|
22
19
|
* Device API renderer
|
|
23
20
|
*/
|
|
24
|
-
var DeviceRendererService =
|
|
21
|
+
var DeviceRendererService = /*#__PURE__*/function () {
|
|
25
22
|
function DeviceRendererService() {
|
|
26
23
|
var _this = this;
|
|
27
24
|
_classCallCheck(this, DeviceRendererService);
|
|
@@ -418,5 +415,5 @@ var DeviceRendererService = (_dec = injectable(), _dec(_class = /*#__PURE__*/fun
|
|
|
418
415
|
}
|
|
419
416
|
}]);
|
|
420
417
|
return DeviceRendererService;
|
|
421
|
-
}()
|
|
418
|
+
}();
|
|
422
419
|
export { DeviceRendererService as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare function hashCodeNumberUpdate(hash: number, v?: number): number;
|
|
2
2
|
export declare function hashCodeNumberFinish(hash: number): number;
|
|
3
|
-
export declare function nullHashFunc
|
|
3
|
+
export declare function nullHashFunc(): number;
|
|
4
4
|
export type EqualFunc<K> = (a: K, b: K) => boolean;
|
|
5
5
|
export type HashFunc<K> = (a: K) => number;
|
|
6
6
|
declare class HashBucket<K, V> {
|
|
@@ -22,7 +22,7 @@ export function hashCodeNumberFinish(hash) {
|
|
|
22
22
|
|
|
23
23
|
// Pass this as a hash function to use a one-bucket HashMap (equivalent to linear search in an array),
|
|
24
24
|
// which can be efficient for small numbers of items.
|
|
25
|
-
export function nullHashFunc(
|
|
25
|
+
export function nullHashFunc() {
|
|
26
26
|
return 0;
|
|
27
27
|
}
|
|
28
28
|
var HashBucket = /*#__PURE__*/_createClass(function HashBucket() {
|
package/es/regl/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* @see https://github.com/regl-project/regl/blob/gh-pages/API.md
|
|
4
4
|
*/
|
|
5
5
|
import type { IAttribute, IAttributeInitializationOptions, IBuffer, IBufferInitializationOptions, IClearOptions, IElements, IElementsInitializationOptions, IExtensions, IFramebuffer, IFramebufferInitializationOptions, IModel, IModelInitializationOptions, IReadPixelsOptions, IRenderConfig, IRendererService, ITexture2D, ITexture2DInitializationOptions } from '@antv/l7-core';
|
|
6
|
-
import 'reflect-metadata';
|
|
7
6
|
import regl from 'regl';
|
|
8
7
|
import ReglFramebuffer from './ReglFramebuffer';
|
|
9
8
|
/**
|
package/es/regl/index.js
CHANGED
|
@@ -2,15 +2,12 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
4
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
5
|
-
var _dec, _class;
|
|
6
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
7
6
|
/**
|
|
8
7
|
* render w/ regl
|
|
9
8
|
* @see https://github.com/regl-project/regl/blob/gh-pages/API.md
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
|
-
import { injectable } from 'inversify';
|
|
13
|
-
import 'reflect-metadata';
|
|
14
11
|
import regl from 'regl';
|
|
15
12
|
import ReglAttribute from "./ReglAttribute";
|
|
16
13
|
import ReglBuffer from "./ReglBuffer";
|
|
@@ -22,7 +19,7 @@ import ReglTexture2D from "./ReglTexture2D";
|
|
|
22
19
|
/**
|
|
23
20
|
* regl renderer
|
|
24
21
|
*/
|
|
25
|
-
var ReglRendererService =
|
|
22
|
+
var ReglRendererService = /*#__PURE__*/function () {
|
|
26
23
|
function ReglRendererService() {
|
|
27
24
|
var _this = this;
|
|
28
25
|
_classCallCheck(this, ReglRendererService);
|
|
@@ -311,5 +308,5 @@ var ReglRendererService = (_dec = injectable(), _dec(_class = /*#__PURE__*/funct
|
|
|
311
308
|
value: function endFrame() {}
|
|
312
309
|
}]);
|
|
313
310
|
return ReglRendererService;
|
|
314
|
-
}()
|
|
311
|
+
}();
|
|
315
312
|
export { ReglRendererService as default };
|
|
@@ -39,8 +39,6 @@ var DeviceTexture2D = class {
|
|
|
39
39
|
wrapS = import_l7_core.gl.CLAMP_TO_EDGE,
|
|
40
40
|
wrapT = import_l7_core.gl.CLAMP_TO_EDGE,
|
|
41
41
|
aniso,
|
|
42
|
-
mipmap = false,
|
|
43
|
-
// premultiplyAlpha = false,
|
|
44
42
|
mag = import_l7_core.gl.NEAREST,
|
|
45
43
|
min = import_l7_core.gl.NEAREST
|
|
46
44
|
} = options;
|
|
@@ -63,7 +61,6 @@ var DeviceTexture2D = class {
|
|
|
63
61
|
height,
|
|
64
62
|
flipY = false,
|
|
65
63
|
format = import_l7_core.gl.RGBA,
|
|
66
|
-
aniso,
|
|
67
64
|
alignment = 1,
|
|
68
65
|
usage = import_l7_core.TextureUsage.SAMPLED,
|
|
69
66
|
// premultiplyAlpha = false,
|
package/lib/device/index.js
CHANGED
|
@@ -25,15 +25,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
29
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
30
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
31
|
-
if (decorator = decorators[i])
|
|
32
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
33
|
-
if (kind && result)
|
|
34
|
-
__defProp(target, key, result);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
28
|
|
|
38
29
|
// src/device/index.ts
|
|
39
30
|
var device_exports = {};
|
|
@@ -43,8 +34,6 @@ __export(device_exports, {
|
|
|
43
34
|
module.exports = __toCommonJS(device_exports);
|
|
44
35
|
var import_g_device_api = require("@antv/g-device-api");
|
|
45
36
|
var import_l7_utils = require("@antv/l7-utils");
|
|
46
|
-
var import_inversify = require("inversify");
|
|
47
|
-
var import_reflect_metadata = require("reflect-metadata");
|
|
48
37
|
var import_DeviceAttribute = __toESM(require("./DeviceAttribute"));
|
|
49
38
|
var import_DeviceBuffer = __toESM(require("./DeviceBuffer"));
|
|
50
39
|
var import_DeviceCache = require("./DeviceCache");
|
|
@@ -300,6 +289,3 @@ var DeviceRendererService = class {
|
|
|
300
289
|
return this.isDirty;
|
|
301
290
|
}
|
|
302
291
|
};
|
|
303
|
-
DeviceRendererService = __decorateClass([
|
|
304
|
-
(0, import_inversify.injectable)()
|
|
305
|
-
], DeviceRendererService);
|
package/lib/regl/index.js
CHANGED
|
@@ -25,15 +25,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
25
25
|
mod
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
29
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
30
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
31
|
-
if (decorator = decorators[i])
|
|
32
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
33
|
-
if (kind && result)
|
|
34
|
-
__defProp(target, key, result);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
28
|
|
|
38
29
|
// src/regl/index.ts
|
|
39
30
|
var regl_exports = {};
|
|
@@ -41,8 +32,6 @@ __export(regl_exports, {
|
|
|
41
32
|
default: () => ReglRendererService
|
|
42
33
|
});
|
|
43
34
|
module.exports = __toCommonJS(regl_exports);
|
|
44
|
-
var import_inversify = require("inversify");
|
|
45
|
-
var import_reflect_metadata = require("reflect-metadata");
|
|
46
35
|
var import_regl = __toESM(require("regl"));
|
|
47
36
|
var import_ReglAttribute = __toESM(require("./ReglAttribute"));
|
|
48
37
|
var import_ReglBuffer = __toESM(require("./ReglBuffer"));
|
|
@@ -243,6 +232,3 @@ var ReglRendererService = class {
|
|
|
243
232
|
endFrame() {
|
|
244
233
|
}
|
|
245
234
|
};
|
|
246
|
-
ReglRendererService = __decorateClass([
|
|
247
|
-
(0, import_inversify.injectable)()
|
|
248
|
-
], ReglRendererService);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/l7-renderer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "xiaoiver",
|
|
@@ -25,19 +25,17 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antv/g-device-api": "^1.6.4",
|
|
28
|
-
"@antv/l7-core": "2.
|
|
29
|
-
"@antv/l7-utils": "2.
|
|
28
|
+
"@antv/l7-core": "2.21.0",
|
|
29
|
+
"@antv/l7-utils": "2.21.0",
|
|
30
30
|
"@babel/runtime": "^7.7.7",
|
|
31
|
-
"inversify": "^5.0.1",
|
|
32
|
-
"reflect-metadata": "^0.2.1",
|
|
33
31
|
"regl": "1.6.1"
|
|
34
32
|
},
|
|
35
33
|
"devDependencies": {
|
|
36
|
-
"@antv/l7-test-utils": "2.
|
|
34
|
+
"@antv/l7-test-utils": "2.21.0",
|
|
37
35
|
"gl": "^6.0.2"
|
|
38
36
|
},
|
|
39
37
|
"publishConfig": {
|
|
40
38
|
"access": "public"
|
|
41
39
|
},
|
|
42
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "7fa1b00b5262c98bb4cceef4eaf87a7b10af7e29"
|
|
43
41
|
}
|