Closed FishOrBear closed 1 year ago
Or we should also export more basic types, such as Entity, Or DxfDimStyle, so that users can inherit it, modify it, and expand it
Not sure I will see
I suggest adding a base class for DxfObject, which all objects inherit from, like this:
import { Dxfier } from "../Internals/Dxfier";
import DxfInterface from "../Internals/Interfaces/DxfInterface";
export abstract class DxfObject implements DxfInterface {
otherData: [number, string | number][] = [];
dxfy(dx: Dxfier): void {
this._dxfy(dx)
for (let [code, value] of this.otherData)
dx.push(code, value)
}
_dxfy(dx: Dxfier): void {
}
}
For example, the extended data of the font style