@antv/g-canvas
Advanced tools
Comparing version 2.0.32 to 2.0.33
/*! | ||
* @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
485641
769
+ Added@antv/g-lite@2.2.10(transitive)
+ Added@antv/g-plugin-canvas-path-generator@2.1.10(transitive)
+ Added@antv/g-plugin-canvas-picker@2.1.12(transitive)
+ Added@antv/g-plugin-canvas-renderer@2.2.12(transitive)
+ Added@antv/g-plugin-dom-interaction@2.1.15(transitive)
+ Added@antv/g-plugin-html-renderer@2.1.15(transitive)
+ Added@antv/g-plugin-image-loader@2.1.12(transitive)
- Removed@antv/g-lite@2.2.9(transitive)
- Removed@antv/g-plugin-canvas-path-generator@2.1.9(transitive)
- Removed@antv/g-plugin-canvas-picker@2.1.11(transitive)
- Removed@antv/g-plugin-canvas-renderer@2.2.11(transitive)
- Removed@antv/g-plugin-dom-interaction@2.1.14(transitive)
- Removed@antv/g-plugin-html-renderer@2.1.14(transitive)
- Removed@antv/g-plugin-image-loader@2.1.11(transitive)
Updated@antv/g-lite@2.2.10