SG
Size: a a a
SG
SG
EO
export interface ShapeOptions {
text: string
x: 'left' | 'center' | 'right' | string
y: 'top' | 'middle' | 'bottom' | string
width: string
height: string
background: 'none' | string
foreground: 'none' | string
}
SG
EO
EO
toObject(): CodeObject {
const obj: CodeObject = super.toObject();
obj.options = { ...obj.options, code: this._code };
return obj;
}
EO
static create<T extends Shape, O extends ShapeOptions>(cursor: Canvas, options?: Partial<O>): T {
return new this(cursor, options);
}
A
A
DB
toObject<T extends ShapeObject>(): this {
EO
toObject<T extends ShapeObject>(): this {
EO
toObject<T extends ShapeObject>(): this {
EO
EO
EO
DB
class Shape<T extends ShapeOptions> implements ShapeOptions {
constructor(cursor: Canvas, options?: Partial<T>) {}
static create(cursor: Canvas, options?: Partial<T>): this {}
}
EO
EO
EO
DB