@meta2d/core
Advanced tools
Comparing version 1.0.66 to 1.0.67
{ | ||
"name": "@meta2d/core", | ||
"version": "1.0.66", | ||
"version": "1.0.67", | ||
"description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -22,2 +22,3 @@ import { createOffscreen } from './offscreen'; | ||
this.canvas.style.left = '0'; | ||
this.canvas.style.pointerEvents = 'none'; | ||
} | ||
@@ -24,0 +25,0 @@ resize(w, h) { |
@@ -10,4 +10,5 @@ import { deleteTempAnchor, getFromAnchor, getGradientAnimatePath, getToAnchor } from '../../pen'; | ||
let _path = getGradientAnimatePath(pen); | ||
path.addPath(_path); | ||
if (path instanceof Path2D) | ||
path.addPath(_path); | ||
if (path instanceof Path2D) | ||
return path; | ||
@@ -14,0 +15,0 @@ } |
@@ -13,2 +13,3 @@ import { Canvas } from '../canvas'; | ||
view: HTMLElement; | ||
timer: any; | ||
constructor(parent: Canvas); | ||
@@ -15,0 +16,0 @@ show(): void; |
@@ -13,2 +13,3 @@ import { calcRightBottom, getRect, translateRect } from '../rect'; | ||
view; // 可视区域外框 | ||
timer; | ||
constructor(parent) { | ||
@@ -52,3 +53,3 @@ this.parent = parent; | ||
this.img.style.display = 'block'; | ||
this.img.src = this.parent.toPng(); | ||
this.img.src = this.parent.toPng(0, undefined, true); | ||
this.setView(); | ||
@@ -80,2 +81,10 @@ } | ||
} | ||
else { | ||
clearTimeout(this.timer); | ||
this.timer = setTimeout(() => { | ||
if (this.parent.store.bkImg) { | ||
this.img.src = this.parent.toPng(0, undefined, true); | ||
} | ||
}, 300); | ||
} | ||
// rect += data.x y 得到相对坐标 | ||
@@ -82,0 +91,0 @@ translateRect(rect, data.x, data.y); |
@@ -477,2 +477,3 @@ import { Point } from '../point'; | ||
onShowInput?: (pen: Pen, e: Point) => void; | ||
onSetTheme?: (theme: string, config?: any) => void; | ||
onInput?: (pen: Pen, text: string) => void; | ||
@@ -479,0 +480,0 @@ onChangeId?: (pen: Pen, oldId: string, newId: string) => void; |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1914604
26990