21 lines
416 B
TypeScript
21 lines
416 B
TypeScript
|
import { RunProperty, RunFonts } from "./run";
|
||
|
|
||
|
export class DocDefaults {
|
||
|
runProperty: RunProperty;
|
||
|
|
||
|
size(size: number) {
|
||
|
this.runProperty = { ...this.runProperty, size };
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
fonts(fonts: RunFonts) {
|
||
|
this.runProperty = { ...this.runProperty, fonts };
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
spacing(spacing: number) {
|
||
|
this.runProperty = { ...this.runProperty, spacing };
|
||
|
return this;
|
||
|
}
|
||
|
}
|