@antv/g-webgpu
Advanced tools
Comparing version 2.0.36 to 2.0.37
/*! | ||
* @antv/g-webgpu | ||
* @description A renderer implemented by WebGPU | ||
* @version 2.0.36 | ||
* @date 11/27/2024, 2:19:26 PM | ||
* @version 2.0.37 | ||
* @date 12/20/2024, 6:54:45 AM | ||
* @author AntVis | ||
@@ -14,3 +14,3 @@ * @docs https://g.antv.antgroup.com/ | ||
import _inherits from '@babel/runtime/helpers/inherits'; | ||
import { setDOMSize, isBrowser, AbstractRendererPlugin, AbstractRenderer, ClipSpaceNearZ } from '@antv/g-lite'; | ||
import { setDOMSize, AbstractRendererPlugin, AbstractRenderer, ClipSpaceNearZ } from '@antv/g-lite'; | ||
import * as DeviceRenderer from '@antv/g-plugin-device-renderer'; | ||
@@ -96,5 +96,3 @@ export { DeviceRenderer }; | ||
// use user-defined dpr first | ||
var devicePixelRatio = this.canvasConfig.devicePixelRatio; | ||
var dpr = devicePixelRatio || isBrowser && window.devicePixelRatio || 1; | ||
dpr = dpr >= 1 ? Math.ceil(dpr) : 1; | ||
var dpr = this.canvasConfig.devicePixelRatio; | ||
this.dpr = dpr; | ||
@@ -101,0 +99,0 @@ if (this.$canvas) { |
/*! | ||
* @antv/g-webgpu | ||
* @description A renderer implemented by WebGPU | ||
* @version 2.0.36 | ||
* @date 11/27/2024, 2:19:26 PM | ||
* @version 2.0.37 | ||
* @date 12/20/2024, 6:54:45 AM | ||
* @author AntVis | ||
@@ -116,5 +116,3 @@ * @docs https://g.antv.antgroup.com/ | ||
// use user-defined dpr first | ||
var devicePixelRatio = this.canvasConfig.devicePixelRatio; | ||
var dpr = devicePixelRatio || gLite.isBrowser && window.devicePixelRatio || 1; | ||
dpr = dpr >= 1 ? Math.ceil(dpr) : 1; | ||
var dpr = this.canvasConfig.devicePixelRatio; | ||
this.dpr = dpr; | ||
@@ -121,0 +119,0 @@ if (this.$canvas) { |
{ | ||
"name": "@antv/g-webgpu", | ||
"version": "2.0.36", | ||
"version": "2.0.37", | ||
"description": "A renderer implemented by WebGPU", | ||
@@ -41,7 +41,7 @@ "keywords": [ | ||
"tslib": "^2.5.3", | ||
"@antv/g-lite": "2.2.9", | ||
"@antv/g-plugin-device-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-device-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" | ||
}, | ||
@@ -48,0 +48,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
1708156
1884
+ Added@antv/g-lite@2.2.10(transitive)
+ Added@antv/g-plugin-device-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-device-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