forked from Blendman974/faceclaw
Refactor font handling; add image-compression estimation debug option
This commit is contained in:
1 parent
5a92637537
commit
964cd11785
15 files changed
+389
-130
No files matched your search
+1
-3
@@ -26,7 +26,6 @@ export type PaintBelow = () => GrayImage;
|
||||
|
||||
export interface LayerContext {
|
||||
readonly stack: LayerStack;
|
||||
readonly font: BdfFont;
|
||||
readonly actions: LayerActions;
|
||||
}
|
||||
|
||||
@@ -40,11 +39,10 @@ export class LayerStack {
|
||||
private readonly layers: Layer[];
|
||||
private readonly ctx: LayerContext;
|
||||
|
||||
constructor(baseLayer: Layer, font: BdfFont, actions: LayerActions) {
|
||||
constructor(baseLayer: Layer, actions: LayerActions) {
|
||||
this.layers = [baseLayer];
|
||||
this.ctx = {
|
||||
stack: this,
|
||||
font,
|
||||
actions,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user