@meta2d/core 1.0.80 → 1.0.81

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meta2d/core",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -2424,7 +2424,7 @@ export class Canvas {
2424
2424
  // const pens = deepClone(this.store.active, true);
2425
2425
  const gridSize = this.store.data.gridSize || this.store.options.gridSize;
2426
2426
  const { origin, scale } = this.store.data;
2427
- const autoAlignGrid = this.store.options.autoAlignGrid && this.store.data.grid;
2427
+ const autoAlignGrid = this.store.options.autoAlignGrid && (this.store.data.grid || this.store.options.grid);
2428
2428
  movedPens.forEach((pen) => {
2429
2429
  const i = this.movingPens.findIndex((item) => item.id === pen.id + movingSuffix);
2430
2430
  if (i < 0) {