@meta2d/core
Advanced tools
Comparing version 1.0.16 to 1.0.17
{ | ||
"name": "@meta2d/core", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,1 @@ | ||
/// <reference types="offscreencanvas" /> | ||
import { Pen, IValue } from '../pen'; | ||
@@ -22,3 +21,3 @@ import { Point } from '../point'; | ||
canvas: HTMLCanvasElement; | ||
offscreen: HTMLCanvasElement | OffscreenCanvas; | ||
offscreen: HTMLCanvasElement; | ||
width: number; | ||
@@ -80,2 +79,3 @@ height: number; | ||
pasteOffset: number; | ||
opening: boolean; | ||
/** | ||
@@ -82,0 +82,0 @@ * @deprecated 改用 beforeAddPens |
@@ -19,4 +19,7 @@ import { EventType, Handler, WildcardHandler } from 'mitt'; | ||
mqttClients: MqttClient[]; | ||
socketFn: (e: string, topic: string, context?: { | ||
meta2d: Meta2d; | ||
socketFn: (e: string, context?: { | ||
meta2d?: Meta2d; | ||
type?: string; | ||
topic?: string; | ||
url?: string; | ||
}) => boolean; | ||
@@ -76,3 +79,3 @@ events: Record<number, (pen: Pen, e: Event) => void>; | ||
}): void; | ||
open(data?: Meta2dData): void; | ||
open(data?: Meta2dData, render?: boolean): void; | ||
initBindDatas(): void; | ||
@@ -191,7 +194,13 @@ connectSocket(): void; | ||
closeHttp(): void; | ||
networkTimer: any; | ||
updateTimer: any; | ||
connectNetwork(): void; | ||
randomString(e: number): string; | ||
penMock(pen: Pen): void; | ||
onNetworkConnect(https: Network[]): void; | ||
closeNetwork(): void; | ||
socketCallback(message: string, topic?: string): void; | ||
socketCallback(message: string, context?: { | ||
type?: string; | ||
topic?: string; | ||
url?: string; | ||
}): void; | ||
setDatas(datas: { | ||
@@ -198,0 +207,0 @@ dataId: string; |
@@ -29,2 +29,5 @@ import { setElemPosition } from '../pen'; | ||
var _a; | ||
if (gifsList[pen.id] !== img_1) { | ||
return; | ||
} | ||
pen.calculative.img = img_1; | ||
@@ -31,0 +34,0 @@ pen.calculative.imgNaturalWidth = img_1.naturalWidth || pen.iconWidth; |
@@ -217,2 +217,3 @@ import { Point } from '../point'; | ||
realTimes?: RealTime[]; | ||
crossOrigin?: string; | ||
calculative?: { | ||
@@ -385,2 +386,3 @@ x?: number; | ||
onStopVideo?: (pen: Pen) => void; | ||
onRenderPenRaw?: (pen: Pen) => void; | ||
} | ||
@@ -387,0 +389,0 @@ export interface FormItem { |
export * from './color'; | ||
export * from './math'; | ||
export * from './uuid'; | ||
export * from './browser'; | ||
export * from './padding'; | ||
export * from './clone'; | ||
export * from './file'; |
export * from './color'; | ||
export * from './math'; | ||
export * from './uuid'; | ||
export * from './browser'; | ||
export * from './padding'; | ||
@@ -6,0 +5,0 @@ export * from './clone'; |
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 too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
1436528
211
20741