@leapfrog/interactive-canvas 1.5.2 → 1.5.3

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.
@@ -2404,6 +2404,10 @@ var AbstractInteractiveCanvas = /** @class */ (function () {
2404
2404
  this.fontLibrary = new FontLibrary();
2405
2405
  this.dimensionChangeRejections$ = new Subject();
2406
2406
  this.IMAGE_CAPTURE_COEFFICIENT = this.calculateImageCaptureCoefficient();
2407
+ /**
2408
+ * Fabric defaults to only 2 decimal places when saving, which causes havoc on the scaling of large images.
2409
+ */
2410
+ fabric.Object.NUM_FRACTION_DIGITS = 10;
2407
2411
  this.baseDimensions = new PixelCanvasDimensions(this.fabricCanvas.width, this.fabricCanvas.height);
2408
2412
  var baseRestrictions = { width: { min: 1 }, height: { min: 1 } };
2409
2413
  //Initialize properties
@@ -2404,6 +2404,10 @@ var AbstractInteractiveCanvas = /** @class */ (function () {
2404
2404
  this.fontLibrary = new FontLibrary();
2405
2405
  this.dimensionChangeRejections$ = new rxjs.Subject();
2406
2406
  this.IMAGE_CAPTURE_COEFFICIENT = this.calculateImageCaptureCoefficient();
2407
+ /**
2408
+ * Fabric defaults to only 2 decimal places when saving, which causes havoc on the scaling of large images.
2409
+ */
2410
+ fabric.Object.NUM_FRACTION_DIGITS = 10;
2407
2411
  this.baseDimensions = new PixelCanvasDimensions(this.fabricCanvas.width, this.fabricCanvas.height);
2408
2412
  var baseRestrictions = { width: { min: 1 }, height: { min: 1 } };
2409
2413
  //Initialize properties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leapfrog/interactive-canvas",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Leapfrog interactive canvas",
5
5
  "files": [
6
6
  "dist"