@meta2d/core
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "@meta2d/core", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,2 +21,8 @@ import { setElemPosition } from '../pen'; | ||
img_1.src = pen.image; | ||
if (pen.calculative.canvas.parent.store.options.cdn && | ||
!(pen.image.startsWith('http') || | ||
pen.image.startsWith('//') || | ||
pen.image.startsWith('data:image'))) { | ||
img_1.src = pen.calculative.canvas.parent.store.options.cdn + pen.image; | ||
} | ||
gifsList[pen.id] = img_1; // 提前赋值,避免重复创建 | ||
@@ -23,0 +29,0 @@ gif_z_index++; |
@@ -29,3 +29,3 @@ var __read = (this && this.__read) || function (o, n) { | ||
import { s8 } from '../../utils'; | ||
var faceSpace = 30; | ||
var faceSpace = 0; | ||
export function polyline(store, pen, mousedwon) { | ||
@@ -32,0 +32,0 @@ var _a; |
@@ -71,3 +71,4 @@ import { TextAlign, TextBaseline } from './pen'; | ||
disableTouchPadScale?: boolean; | ||
cdn?: string; | ||
} | ||
export declare const defaultOptions: Options; |
@@ -62,3 +62,4 @@ export var KeydownType; | ||
disableTouchPadScale: false, | ||
cdn: '', | ||
}; | ||
//# sourceMappingURL=options.js.map |
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 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
1350150
19577