Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/l7-renderer

Package Overview
Dependencies
Maintainers
64
Versions
540
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.20.10 to 2.20.11

4

es/device/DeviceTexture2D.js

@@ -48,2 +48,6 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";

pixelFormat = Format.F32_RGB;
} else if (type === gl.FLOAT && format === gl.RGBA) {
pixelFormat = Format.F32_RGBA;
} else if (type === gl.FLOAT && format === gl.RED) {
pixelFormat = Format.F32_R;
} else {

@@ -50,0 +54,0 @@ throw new Error("create texture error, type: ".concat(type, ", format: ").concat(format));

@@ -28,2 +28,3 @@ import type { RenderPass, RenderTarget, SwapChain } from '@antv/g-device-api';

currentFramebuffer: DeviceFramebuffer | null;
queryVerdorInfo: () => string;
init(canvas: HTMLCanvasElement, cfg: IRenderConfig): Promise<void>;

@@ -30,0 +31,0 @@ beginFrame(): void;

12

es/device/index.js

@@ -26,2 +26,5 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";

_defineProperty(this, "uniformBuffers", []);
_defineProperty(this, "queryVerdorInfo", function () {
return _this.device.queryVendorInfo().platformString;
});
_defineProperty(this, "createModel", function (options) {

@@ -130,10 +133,3 @@ return new DeviceModel(_this.device, options, _this);

key: "init",
value:
/**
* Current render pass.
*/
/**
* Current FBO.
*/
function () {
value: function () {
var _init = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(canvas, cfg) {

@@ -140,0 +136,0 @@ var enableWebGPU, shaderCompilerPath, deviceContribution, swapChain, gl;

@@ -21,2 +21,3 @@ /**

private isDirty;
queryVerdorInfo: () => string;
init(canvas: HTMLCanvasElement, cfg: IRenderConfig, gl?: regl.Regl): Promise<void>;

@@ -23,0 +24,0 @@ getPointSizeRange(): any;

@@ -30,2 +30,5 @@ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";

_defineProperty(this, "uniformBuffers", []);
_defineProperty(this, "queryVerdorInfo", function () {
return 'WebGL1';
});
_defineProperty(this, "createModel", function (options) {

@@ -32,0 +35,0 @@ return new ReglModel(_this.gl, options);

@@ -65,2 +65,6 @@ var __defProp = Object.defineProperty;

pixelFormat = import_g_device_api.Format.F32_RGB;
} else if (type === import_l7_core.gl.FLOAT && format === import_l7_core.gl.RGBA) {
pixelFormat = import_g_device_api.Format.F32_RGBA;
} else if (type === import_l7_core.gl.FLOAT && format === import_l7_core.gl.RED) {
pixelFormat = import_g_device_api.Format.F32_R;
} else {

@@ -67,0 +71,0 @@ throw new Error(`create texture error, type: ${type}, format: ${format}`);

@@ -57,2 +57,5 @@ var __create = Object.create;

this.uniformBuffers = [];
this.queryVerdorInfo = () => {
return this.device.queryVendorInfo().platformString;
};
this.createModel = (options) => new import_DeviceModel.default(this.device, options, this);

@@ -59,0 +62,0 @@ this.createAttribute = (options) => new import_DeviceAttribute.default(this.device, options);

@@ -56,2 +56,5 @@ var __create = Object.create;

this.uniformBuffers = [];
this.queryVerdorInfo = () => {
return "WebGL1";
};
this.createModel = (options) => new import_ReglModel.default(this.gl, options);

@@ -58,0 +61,0 @@ this.createAttribute = (options) => new import_ReglAttribute.default(this.gl, options);

{
"name": "@antv/l7-renderer",
"version": "2.20.10",
"version": "2.20.11",
"description": "",

@@ -28,4 +28,4 @@ "license": "ISC",

"@antv/g-device-api": "^1.4.10",
"@antv/l7-core": "2.20.10",
"@antv/l7-utils": "2.20.10",
"@antv/l7-core": "2.20.11",
"@antv/l7-utils": "2.20.11",
"@babel/runtime": "^7.7.7",

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

"devDependencies": {
"@antv/l7-test-utils": "2.20.10",
"@antv/l7-test-utils": "2.20.11",
"gl": "^6.0.2"

@@ -44,3 +44,3 @@ },

},
"gitHead": "228c2056e3c5a7ffb334158dff12c79d55ed4ed7"
"gitHead": "40b9c778934bbcef548f1060bddf6de988b75c00"
}
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