This commit is contained in:
syuilo
2026-05-31 09:26:19 +09:00
parent 27fff648b6
commit cdbf5c843f
5 changed files with 15 additions and 2 deletions
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { EngineControllerBase } from './engineControllerBase.js';
import { EngineControllerBase } from './EngineControllerBase.js';
import type { PlayerProfile } from 'misskey-world-engine/src/PlayerContainer.js';
import type { AvatarPreviewEngine } from 'misskey-world-engine/src/avatarPreviewEngine.js';
import type { WorldAvatar } from 'misskey-world/src/types.js';
@@ -329,6 +329,10 @@ export abstract class EngineControllerBase<T extends EngineBase<EngineBaseEvents
this.call('resumeRender');
}
public takeScreenshot() {
return this.callAndWaitReturn('takeScreenshot');
}
public resize() {
if (this.canvas == null) return;
const width = this.canvas.clientWidth;
@@ -7,7 +7,7 @@ import { ref, shallowRef } from 'vue';
import { cm } from 'misskey-world/src/utility.js';
import { EngineControllerBase } from '../EngineControllerBase.js';
import type { ShallowRef } from 'vue';
import type { RoomState_InstalledFurniture } from 'misskey-world/src/room/object.js';
import type { RoomState_InstalledFurniture } from 'misskey-world/src/room/furniture.js';
import type { RoomEngine } from 'misskey-world-engine/src/room/engine.js';
import type { RoomAttachments, RoomState } from 'misskey-world/src/room/type.js';
import type { PlayerProfile, PlayerState } from 'misskey-world-engine/src/PlayerContainer.js';