forked from Blendman974/faceclaw
Use TTF fonts throughout the UI; also add some more functions to app extension API
This commit is contained in:
1 parent
5abbe2a405
commit
96842ceb23
82 files changed
+2666
-288
No files matched your search
+8
-2
@@ -103,8 +103,8 @@ export interface Layer {
|
||||
export class LayerStack {
|
||||
private readonly layers: Layer[];
|
||||
private readonly ctx: LayerContext;
|
||||
private readonly baseWidth: number;
|
||||
private readonly baseHeight: number;
|
||||
private baseWidth: number;
|
||||
private baseHeight: number;
|
||||
private readonly focusedFn: () => boolean;
|
||||
|
||||
constructor(
|
||||
@@ -168,6 +168,12 @@ export class LayerStack {
|
||||
return { width: this.baseWidth, height: this.baseHeight };
|
||||
}
|
||||
|
||||
/** Resize the base viewport (e.g. an EvenHub window switching to the tall canvas). */
|
||||
setBaseSize(size: { width: number; height: number }): void {
|
||||
this.baseWidth = size.width;
|
||||
this.baseHeight = size.height;
|
||||
}
|
||||
|
||||
setActions(actions: Partial<LayerActions>): void {
|
||||
Object.assign(this.ctx.actions, actions);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user