@antv/g-canvas 1.3.1 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { inject, CanvasConfig, singleton, ContextService, setDOMSize, isString, isBrowser, Module, AbstractRenderer } from '@antv/g';
1
+ import { setDOMSize, inject, CanvasConfig, singleton, ContextService, isString, isBrowser, Module, AbstractRenderer } from '@antv/g';
2
2
  import { Plugin as Plugin$1 } from '@antv/g-plugin-canvas-path-generator';
3
3
  import * as CanvasPathGenerator from '@antv/g-plugin-canvas-path-generator';
4
4
  export { CanvasPathGenerator };
@@ -517,11 +517,10 @@ var Canvas2DContextService = /*#__PURE__*/function () {
517
517
  this.$canvas.width = this.dpr * width;
518
518
  this.$canvas.height = this.dpr * height; // set CSS style width & height
519
519
 
520
- setDOMSize(this.$canvas, width, height);
521
- var dpr = this.getDPR(); // scale all drawing operations by the dpr
520
+ setDOMSize(this.$canvas, width, height); // const dpr = this.getDPR();
521
+ // scale all drawing operations by the dpr
522
522
  // @see https://www.html5rocks.com/en/tutorials/canvas/hidpi/
523
-
524
- this.context.scale(dpr, dpr);
523
+ // this.context.scale(dpr, dpr);
525
524
  }
526
525
  };
527
526
 
package/dist/index.js CHANGED
@@ -536,11 +536,10 @@ var Canvas2DContextService = /*#__PURE__*/function () {
536
536
  this.$canvas.width = this.dpr * width;
537
537
  this.$canvas.height = this.dpr * height; // set CSS style width & height
538
538
 
539
- g.setDOMSize(this.$canvas, width, height);
540
- var dpr = this.getDPR(); // scale all drawing operations by the dpr
539
+ g.setDOMSize(this.$canvas, width, height); // const dpr = this.getDPR();
540
+ // scale all drawing operations by the dpr
541
541
  // @see https://www.html5rocks.com/en/tutorials/canvas/hidpi/
542
-
543
- this.context.scale(dpr, dpr);
542
+ // this.context.scale(dpr, dpr);
544
543
  }
545
544
  };
546
545