mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-05 11:34:31 +08:00
refactor: 优化渲染缓存 & 添加每个元素的Transform
This commit is contained in:
1 parent
3f500e35ca
commit
fc05ddec9b
16 files changed
+317
-483
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import { parseCss } from '@/plugin/utils';
|
||||
import { EventEmitter } from '../common/eventEmitter';
|
||||
import { EventEmitter } from 'eventemitter3';
|
||||
import { CSSObj } from '../interface';
|
||||
|
||||
interface OffscreenCanvasEvent {
|
||||
/** 当被动触发resize时(例如core.domStyle.scale变化、窗口大小变化)时触发,使用size函数并不会触发 */
|
||||
resize: () => void;
|
||||
resize: [];
|
||||
}
|
||||
|
||||
export class MotaOffscreenCanvas2D extends EventEmitter<OffscreenCanvasEvent> {
|
||||
|
||||
Reference in new issue
Block a user