New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@antv/l7-renderer

Package Overview
Dependencies
Maintainers
24
Versions
541
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/l7-renderer - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

9

es/regl/index.d.ts

@@ -13,2 +13,5 @@ /**

private $container;
private width;
private height;
private isDirty;
init($container: HTMLDivElement, cfg: IRenderConfig): Promise<void>;

@@ -35,3 +38,9 @@ createModel: (options: IModelInitializationOptions) => IModel;

getContainer: () => HTMLDivElement | null;
getCanvas: () => HTMLCanvasElement | null;
getGLContext: () => WebGLRenderingContext;
setBaseState(): void;
setCustomLayerDefaults(): void;
setDirty(flag: boolean): void;
getDirty(): boolean;
destroy: () => void;
}

@@ -24,2 +24,5 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

this.$container = void 0;
this.width = void 0;
this.height = void 0;
this.isDirty = void 0;

@@ -90,2 +93,5 @@ this.createModel = function (options) {

_this.width = width;
_this.height = height;
_this.gl._refresh();

@@ -125,2 +131,12 @@ };

this.getCanvas = function () {
var _this$$container2;
return ((_this$$container2 = _this.$container) === null || _this$$container2 === void 0 ? void 0 : _this$$container2.getElementsByTagName('canvas')[0]) || null;
};
this.getGLContext = function () {
return _this.gl._gl;
};
this.destroy = function () {

@@ -180,2 +196,41 @@ _this.gl.destroy();

}()
}, {
key: "setBaseState",
value: function setBaseState() {
this.gl({
cull: {
enable: false,
face: 'back'
},
viewport: {
x: 0,
y: 0,
height: this.width,
width: this.height
},
blend: {
enable: false,
equation: 'add'
},
framebuffer: null
});
this.gl._refresh();
}
}, {
key: "setCustomLayerDefaults",
value: function setCustomLayerDefaults() {
var gl = this.getGLContext();
gl.disable(gl.CULL_FACE);
}
}, {
key: "setDirty",
value: function setDirty(flag) {
this.isDirty = flag;
}
}, {
key: "getDirty",
value: function getDirty() {
return this.isDirty;
}
}]);

@@ -182,0 +237,0 @@

3

es/regl/ReglTexture2D.d.ts

@@ -9,4 +9,7 @@ import { ITexture2D, ITexture2DInitializationOptions } from '@antv/l7-core';

private texture;
private width;
private height;
constructor(reGl: regl.Regl, options: ITexture2DInitializationOptions);
get(): regl.Texture2D;
update(): void;
resize({ width, height }: {

@@ -13,0 +16,0 @@ width: number;

@@ -11,2 +11,4 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";

this.texture = void 0;
this.width = void 0;
this.height = void 0;
var data = options.data,

@@ -39,2 +41,4 @@ _options$type = options.type,

colorSpace = _options$colorSpace === void 0 ? gl.BROWSER_DEFAULT_WEBGL : _options$colorSpace;
this.width = width;
this.height = height;
var textureOptions = {

@@ -75,2 +79,7 @@ width: width,

}, {
key: "update",
value: function update() {
this.texture._texture.bind();
}
}, {
key: "resize",

@@ -81,2 +90,4 @@ value: function resize(_ref) {

this.texture.resize(width, height);
this.width = width;
this.height = height;
}

@@ -83,0 +94,0 @@ }, {

@@ -43,2 +43,5 @@ "use strict";

this.$container = void 0;
this.width = void 0;
this.height = void 0;
this.isDirty = void 0;

@@ -109,2 +112,5 @@ this.createModel = function (options) {

_this.width = width;
_this.height = height;
_this.gl._refresh();

@@ -144,2 +150,12 @@ };

this.getCanvas = function () {
var _this$$container2;
return ((_this$$container2 = _this.$container) === null || _this$$container2 === void 0 ? void 0 : _this$$container2.getElementsByTagName('canvas')[0]) || null;
};
this.getGLContext = function () {
return _this.gl._gl;
};
this.destroy = function () {

@@ -199,2 +215,41 @@ _this.gl.destroy();

}()
}, {
key: "setBaseState",
value: function setBaseState() {
this.gl({
cull: {
enable: false,
face: 'back'
},
viewport: {
x: 0,
y: 0,
height: this.width,
width: this.height
},
blend: {
enable: false,
equation: 'add'
},
framebuffer: null
});
this.gl._refresh();
}
}, {
key: "setCustomLayerDefaults",
value: function setCustomLayerDefaults() {
var gl = this.getGLContext();
gl.disable(gl.CULL_FACE);
}
}, {
key: "setDirty",
value: function setDirty(flag) {
this.isDirty = flag;
}
}, {
key: "getDirty",
value: function getDirty() {
return this.isDirty;
}
}]);

@@ -201,0 +256,0 @@ return ReglRendererService;

@@ -22,2 +22,4 @@ "use strict";

this.texture = void 0;
this.width = void 0;
this.height = void 0;
var data = options.data,

@@ -50,2 +52,4 @@ _options$type = options.type,

colorSpace = _options$colorSpace === void 0 ? _l7Core.gl.BROWSER_DEFAULT_WEBGL : _options$colorSpace;
this.width = width;
this.height = height;
var textureOptions = {

@@ -86,2 +90,7 @@ width: width,

}, {
key: "update",
value: function update() {
this.texture._texture.bind();
}
}, {
key: "resize",

@@ -92,2 +101,4 @@ value: function resize(_ref) {

this.texture.resize(width, height);
this.width = width;
this.height = height;
}

@@ -94,0 +105,0 @@ }, {

6

package.json
{
"name": "@antv/l7-renderer",
"version": "2.2.0",
"version": "2.2.1",
"description": "",

@@ -28,3 +28,3 @@ "main": "lib/index.js",

"dependencies": {
"@antv/l7-core": "^2.2.0",
"@antv/l7-core": "^2.2.1",
"@babel/runtime": "^7.7.7",

@@ -36,3 +36,3 @@ "inversify": "^5.0.1",

},
"gitHead": "5b541345a2c57e2ec06ae77d5a927366557991cd",
"gitHead": "532ade40831b35b04a677b351d092e54c00613d8",
"publishConfig": {

@@ -39,0 +39,0 @@ "access": "public"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc