Skip to content

Commit

Permalink
chore: add base property
Browse files Browse the repository at this point in the history
  • Loading branch information
ybzky committed Oct 15, 2024
1 parent e7a5ea5 commit 6f58841
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions packages/engine-render/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ export class UniverRenderingContext2D implements CanvasRenderingContext2D {
this.canvas = context.canvas;
}

private _id: string;

getId() {
return this._id;
}

setId(id: string) {
this._id = id;
}

isContextLost(): boolean {
// @ts-ignore
return this._context.isContextLost();
Expand Down Expand Up @@ -993,15 +1003,6 @@ export class UniverRenderingContextWebGL { }
export class UniverRenderingContextWebGPU { }

export class UniverRenderingContext extends UniverRenderingContext2D {
private _id: string;

getId() {
return this._id;
}

setId(id: string) {
this._id = id;
}
}

export class UniverPrintingContext extends UniverRenderingContext2D {
Expand Down

0 comments on commit 6f58841

Please sign in to comment.