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

@antv/g-canvas

Package Overview
Dependencies
Maintainers
66
Versions
358
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-canvas - npm Package Compare versions

Comparing version 2.0.32 to 2.0.33

12

dist/index.esm.js
/*!
* @antv/g-canvas
* @description A renderer implemented by Canvas 2D API
* @version 2.0.32
* @date 11/27/2024, 2:19:51 PM
* @version 2.0.33
* @date 12/20/2024, 6:55:09 AM
* @author AntVis

@@ -13,3 +13,3 @@ * @docs https://g.antv.antgroup.com/

import _inherits from '@babel/runtime/helpers/inherits';
import { setDOMSize, RenderReason, isBrowser, AbstractRendererPlugin, AbstractRenderer } from '@antv/g-lite';
import { setDOMSize, RenderReason, AbstractRendererPlugin, AbstractRenderer } from '@antv/g-lite';
import * as CanvasPathGenerator from '@antv/g-plugin-canvas-path-generator';

@@ -101,7 +101,3 @@ export { CanvasPathGenerator };

value: function resize(width, height) {
var devicePixelRatio = this.canvasConfig.devicePixelRatio;
// use user-defined dpr first
var dpr = devicePixelRatio || isBrowser && window.devicePixelRatio || 1;
dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
var dpr = this.canvasConfig.devicePixelRatio;
this.dpr = dpr;

@@ -108,0 +104,0 @@ if (this.$canvas) {

/*!
* @antv/g-canvas
* @description A renderer implemented by Canvas 2D API
* @version 2.0.32
* @date 11/27/2024, 2:19:51 PM
* @version 2.0.33
* @date 12/20/2024, 6:55:09 AM
* @author AntVis

@@ -120,7 +120,3 @@ * @docs https://g.antv.antgroup.com/

value: function resize(width, height) {
var devicePixelRatio = this.canvasConfig.devicePixelRatio;
// use user-defined dpr first
var dpr = devicePixelRatio || gLite.isBrowser && window.devicePixelRatio || 1;
dpr = dpr >= 1 ? Math.ceil(dpr) : 1;
var dpr = this.canvasConfig.devicePixelRatio;
this.dpr = dpr;

@@ -127,0 +123,0 @@ if (this.$canvas) {

{
"name": "@antv/g-canvas",
"version": "2.0.32",
"version": "2.0.33",
"description": "A renderer implemented by Canvas 2D API",

@@ -42,9 +42,9 @@ "keywords": [

"tslib": "^2.5.3",
"@antv/g-lite": "2.2.9",
"@antv/g-plugin-canvas-path-generator": "2.1.9",
"@antv/g-plugin-canvas-picker": "2.1.11",
"@antv/g-plugin-canvas-renderer": "2.2.11",
"@antv/g-plugin-dom-interaction": "2.1.14",
"@antv/g-plugin-html-renderer": "2.1.14",
"@antv/g-plugin-image-loader": "2.1.11"
"@antv/g-lite": "2.2.10",
"@antv/g-plugin-canvas-path-generator": "2.1.10",
"@antv/g-plugin-canvas-picker": "2.1.12",
"@antv/g-plugin-canvas-renderer": "2.2.12",
"@antv/g-plugin-dom-interaction": "2.1.15",
"@antv/g-plugin-html-renderer": "2.1.15",
"@antv/g-plugin-image-loader": "2.1.12"
},

@@ -51,0 +51,0 @@ "devDependencies": {

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 too big to display

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