refactor: 素材管理

This commit is contained in:
AncTe committed 2025-10-19 20:19:43 +08:00
1 parent fb8236d127
commit a10625013d
30 files changed
+1259 -27

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
{
"name": "@motajs/render-core",
"dependencies": {
"@motajs/common": "workspace:*"
"@motajs/common": "workspace:*",
"@motajs/render-assets": "workspace:*"
}
}
}
+1 -1
View File
@@ -4,7 +4,7 @@ import { MotaOffscreenCanvas2D } from './canvas2d';
import { ERenderItemEvent, RenderItem, RenderItemPosition } from './item';
import { Transform } from './transform';
import { isWebGL2Supported } from './utils';
import { SizedCanvasImageSource } from './types';
import { SizedCanvasImageSource } from '@motajs/render-assets';
export interface IGL2ProgramPrefix {
readonly VERTEX: string;
-1
View File
@@ -8,5 +8,4 @@ export * from './render';
export * from './shader';
export * from './sprite';
export * from './transform';
export * from './types';
export * from './utils';
-6
View File
@@ -1,6 +0,0 @@
export type SizedCanvasImageSource = Exclude<
CanvasImageSource,
VideoFrame | SVGElement
>;
export type CanvasStyle = string | CanvasGradient | CanvasPattern;