feat: 浏览地图

This commit is contained in:
AncTe committed 2025-08-19 15:06:34 +08:00
1 parent 398de70fee
commit 574d765c69
15 files changed
+615 -35

No files matched your search

+2 -2
View File
@@ -163,7 +163,7 @@ export class Image extends RenderItem<EImageEvent> {
image: CanvasImageSource;
constructor(image: CanvasImageSource, type: RenderItemPosition = 'static') {
super(type);
super(type, false);
this.image = image;
if (image instanceof VideoFrame || image instanceof SVGElement) {
this.size(200, 200);
@@ -177,7 +177,7 @@ export class Image extends RenderItem<EImageEvent> {
_transform: Transform
): void {
const ctx = canvas.ctx;
ctx.drawImage(this.image, 0, 0, canvas.width, canvas.height);
ctx.drawImage(this.image, 0, 0, this.width, this.height);
}
/**