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

@antv/g-plugin-canvas-renderer

Package Overview
Dependencies
Maintainers
64
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-plugin-canvas-renderer - npm Package Compare versions

Comparing version 1.7.51 to 1.7.52

32

dist/index.esm.js

@@ -380,4 +380,10 @@ import { ElementEvent, AABB, CustomEvent, CanvasEvent, Shape, isPattern, GradientType, runtime, AbstractRendererPlugin } from '@antv/g-lite';

this.renderQueue = [];
/**
* This stack is only used by clipPath for now.
*/
this.restoreStack = [];
this.clearFullScreen = false;
/**
* view projection matrix
*/
this.vpMatrix = mat4.create();

@@ -428,16 +434,14 @@ this.dprMatrix = mat4.create();

return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
canvas.addEventListener(ElementEvent.UNMOUNTED, handleUnmounted);
canvas.addEventListener(ElementEvent.CULLED, handleCulled);
// clear fullscreen
dpr = contextService.getDPR();
width = config.width, height = config.height;
context = contextService.getContext();
_this.clearRect(context, 0, 0, width * dpr, height * dpr, config.background);
case 6:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
canvas.addEventListener(ElementEvent.UNMOUNTED, handleUnmounted);
canvas.addEventListener(ElementEvent.CULLED, handleCulled);
// clear fullscreen
dpr = contextService.getDPR();
width = config.width, height = config.height;
context = contextService.getContext();
_this.clearRect(context, 0, 0, width * dpr, height * dpr, config.background);
case 6:
case "end":
return _context.stop();
}

@@ -444,0 +448,0 @@ }, _callee);

@@ -384,4 +384,10 @@ 'use strict';

this.renderQueue = [];
/**
* This stack is only used by clipPath for now.
*/
this.restoreStack = [];
this.clearFullScreen = false;
/**
* view projection matrix
*/
this.vpMatrix = glMatrix.mat4.create();

@@ -432,16 +438,14 @@ this.dprMatrix = glMatrix.mat4.create();

return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
canvas.addEventListener(gLite.ElementEvent.UNMOUNTED, handleUnmounted);
canvas.addEventListener(gLite.ElementEvent.CULLED, handleCulled);
// clear fullscreen
dpr = contextService.getDPR();
width = config.width, height = config.height;
context = contextService.getContext();
_this.clearRect(context, 0, 0, width * dpr, height * dpr, config.background);
case 6:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
canvas.addEventListener(gLite.ElementEvent.UNMOUNTED, handleUnmounted);
canvas.addEventListener(gLite.ElementEvent.CULLED, handleCulled);
// clear fullscreen
dpr = contextService.getDPR();
width = config.width, height = config.height;
context = contextService.getContext();
_this.clearRect(context, 0, 0, width * dpr, height * dpr, config.background);
case 6:
case "end":
return _context.stop();
}

@@ -448,0 +452,0 @@ }, _callee);

@@ -713,4 +713,10 @@ (function (global, factory) {

this.renderQueue = [];
/**
* This stack is only used by clipPath for now.
*/
this.restoreStack = [];
this.clearFullScreen = false;
/**
* view projection matrix
*/
this.vpMatrix = create();

@@ -761,16 +767,14 @@ this.dprMatrix = create();

return _regeneratorRuntime().wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
canvas.addEventListener(gLite.ElementEvent.UNMOUNTED, handleUnmounted);
canvas.addEventListener(gLite.ElementEvent.CULLED, handleCulled);
// clear fullscreen
dpr = contextService.getDPR();
width = config.width, height = config.height;
context = contextService.getContext();
_this.clearRect(context, 0, 0, width * dpr, height * dpr, config.background);
case 6:
case "end":
return _context.stop();
}
while (1) switch (_context.prev = _context.next) {
case 0:
canvas.addEventListener(gLite.ElementEvent.UNMOUNTED, handleUnmounted);
canvas.addEventListener(gLite.ElementEvent.CULLED, handleCulled);
// clear fullscreen
dpr = contextService.getDPR();
width = config.width, height = config.height;
context = contextService.getContext();
_this.clearRect(context, 0, 0, width * dpr, height * dpr, config.background);
case 6:
case "end":
return _context.stop();
}

@@ -777,0 +781,0 @@ }, _callee);

{
"name": "@antv/g-plugin-canvas-renderer",
"version": "1.7.51",
"version": "1.7.52",
"description": "A G plugin of renderer implementation with Canvas2D API",

@@ -33,5 +33,5 @@ "keywords": [

"dependencies": {
"@antv/g-math": "^1.7.43",
"@antv/g-plugin-canvas-path-generator": "^1.1.45",
"@antv/g-plugin-image-loader": "^1.1.46",
"@antv/g-math": "^1.7.44",
"@antv/g-plugin-canvas-path-generator": "^1.1.46",
"@antv/g-plugin-image-loader": "^1.1.47",
"@antv/util": "^3.3.1",

@@ -50,3 +50,3 @@ "gl-matrix": "^3.1.0",

},
"gitHead": "b2e4714cc7ef7b72b6de2fe6965e0b913b05acf0"
"gitHead": "24512ba8af869f3ce8318f746fc635fb2aab13e0"
}
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