Skip to content

Commit 40d0595

Browse files
committed
Fix build
Signed-off-by: Andrew Stein <steinlink@gmail.com>
1 parent f93e251 commit 40d0595

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/viewer-webgl/src/ts/plugin/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,21 +387,21 @@ export class HTMLPerspectiveViewerWebGLPluginElement extends HTMLElement {
387387
await this.resize();
388388
}
389389

390-
async save(): Promise<any> {
390+
save() {
391391
const state: any = {};
392392
if (this._zoomController) {
393393
state.zoom = this._zoomController.serialize();
394394
}
395395
return state;
396396
}
397397

398-
async restore(config: any): Promise<void> {
398+
restore(config: any) {
399399
if (config?.zoom && this._zoomController) {
400400
this._zoomController.restore(config.zoom);
401401
}
402402
}
403403

404-
async delete(): Promise<void> {
404+
delete() {
405405
this._generation++;
406406
// Destroy chart first — it may need the GL context for cleanup.
407407
if (this._chartImpl) {

rust/perspective-viewer/src/ts/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export interface IPerspectiveViewerPlugin {
209209
/**
210210
* Free any resources acquired by this plugin and prepare to be deleted.
211211
*/
212-
delete(): Promise<void>;
212+
delete(): void;
213213

214214
/**
215215
* Whether this plugin supports the streaming render protocol.

0 commit comments

Comments
 (0)