File tree Expand file tree Collapse file tree
packages/viewer-webgl/src/ts/plugin
rust/perspective-viewer/src/ts Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments