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
23
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.0.0-beta.25 to 2.0.0-beta.26

18

CHANGELOG.md

@@ -6,2 +6,20 @@ # Change Log

# [2.0.0-beta.26](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.26) (2019-12-30)
### Bug Fixes
* render 将gl模块移动到开发分支, update tslint rule ([fe8b480](https://github.com/antvis/L7/commit/fe8b480895a3d6d919e63f93306a203f5582e5d6))
* 修复webgl 扩展兼容问题 ([cd6f5fc](https://github.com/antvis/L7/commit/cd6f5fc7d202f7db1424f3c8b263a99d39d7c778))
* **scene:** contianer resize ([1c3be82](https://github.com/antvis/L7/commit/1c3be82711999b70a802a7f0c24ff9ccf76e2d94))
### Features
* **layer:** add blend 效果配置支持 normal,additive ([e0ab4cd](https://github.com/antvis/L7/commit/e0ab4cd386f53ba4e93aaebfb1fa05b6e438710e))
# [2.0.0-beta.25](https://github.com/antvis/L7/compare/v2.0.0-beta.16...v2.0.0-beta.25) (2019-12-27)

@@ -8,0 +26,0 @@

76

es/regl/index.js

@@ -7,2 +7,6 @@ import "core-js/modules/es.object.to-string";

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -136,39 +140,47 @@

key: "init",
value: function init($container) {
return regeneratorRuntime.async(function init$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
this.$container = $container;
_context.next = 3;
return regeneratorRuntime.awrap(new Promise(function (resolve, reject) {
regl({
container: $container,
attributes: {
alpha: true,
antialias: true,
premultipliedAlpha: true
},
extensions: ['OES_element_index_uint', 'EXT_blend_minmax', 'OES_standard_derivatives', 'WEBGL_depth_texture', 'angle_instanced_arrays', 'EXT_texture_filter_anisotropic'],
profile: true,
onDone: function onDone(err, r) {
if (err || !r) {
reject(err);
value: function () {
var _init = _asyncToGenerator(regeneratorRuntime.mark(function _callee($container) {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
this.$container = $container;
_context.next = 3;
return new Promise(function (resolve, reject) {
regl({
container: $container,
attributes: {
alpha: true,
antialias: true,
premultipliedAlpha: true
},
extensions: ['OES_element_index_uint', 'EXT_blend_minmax', 'OES_standard_derivatives', 'WEBGL_depth_texture', 'angle_instanced_arrays', 'EXT_texture_filter_anisotropic'],
profile: true,
onDone: function onDone(err, r) {
if (err || !r) {
reject(err);
}
resolve(r);
}
resolve(r);
}
});
});
}));
case 3:
this.gl = _context.sent;
case 3:
this.gl = _context.sent;
case 4:
case "end":
return _context.stop();
case 4:
case "end":
return _context.stop();
}
}
}
}, null, this);
}
}, _callee, this);
}));
function init(_x) {
return _init.apply(this, arguments);
}
return init;
}()
}]);

@@ -175,0 +187,0 @@

@@ -34,2 +34,6 @@ "use strict";

function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -155,39 +159,47 @@

key: "init",
value: function init($container) {
return regeneratorRuntime.async(function init$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
this.$container = $container;
_context.next = 3;
return regeneratorRuntime.awrap(new Promise(function (resolve, reject) {
(0, _regl.default)({
container: $container,
attributes: {
alpha: true,
antialias: true,
premultipliedAlpha: true
},
extensions: ['OES_element_index_uint', 'EXT_blend_minmax', 'OES_standard_derivatives', 'WEBGL_depth_texture', 'angle_instanced_arrays', 'EXT_texture_filter_anisotropic'],
profile: true,
onDone: function onDone(err, r) {
if (err || !r) {
reject(err);
value: function () {
var _init = _asyncToGenerator(regeneratorRuntime.mark(function _callee($container) {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
this.$container = $container;
_context.next = 3;
return new Promise(function (resolve, reject) {
(0, _regl.default)({
container: $container,
attributes: {
alpha: true,
antialias: true,
premultipliedAlpha: true
},
extensions: ['OES_element_index_uint', 'EXT_blend_minmax', 'OES_standard_derivatives', 'WEBGL_depth_texture', 'angle_instanced_arrays', 'EXT_texture_filter_anisotropic'],
profile: true,
onDone: function onDone(err, r) {
if (err || !r) {
reject(err);
}
resolve(r);
}
resolve(r);
}
});
});
}));
case 3:
this.gl = _context.sent;
case 3:
this.gl = _context.sent;
case 4:
case "end":
return _context.stop();
case 4:
case "end":
return _context.stop();
}
}
}
}, null, this);
}
}, _callee, this);
}));
function init(_x) {
return _init.apply(this, arguments);
}
return init;
}()
}]);

@@ -194,0 +206,0 @@

{
"name": "@antv/l7-renderer",
"version": "2.0.0-beta.25",
"version": "2.0.0-beta.26",
"description": "",

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

"dependencies": {
"@antv/l7-core": "^2.0.0-beta.25",
"@babel/runtime": "^7.7.7",
"@antv/l7-core": "^2.0.0-beta.26",
"core-js": "3",
"inversify": "^5.0.1",
"inversify-logging": "^0.2.1",
"lodash": "^4.17.15",

@@ -39,3 +37,3 @@ "reflect-metadata": "^0.1.13",

},
"gitHead": "de3cd5edbc438ca9e3620511f36ac2696cde4652",
"gitHead": "2e6fc512f918c637dec6009d99157a8941b3b7fb",
"publishConfig": {

@@ -42,0 +40,0 @@ "access": "public"

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