import { Schema } from './schema'; import { EntityData } from '../entity-data'; import { OriginSchema, OriginSchemaDecoration } from '@gedit/utils'; export { OriginSchema, OriginSchemaDecoration, }; export class OriginData extends EntityData implements OriginSchema { static type = 'OriginData'; getDefaultData(): OriginSchema { return Schema.createDefault(OriginSchemaDecoration); } get x(): number { return this.data.x; } get y(): number { return this.data.y; } set x(x: number) { this.update('x', x); } set y(y: number) { this.update('y', y); } get initX(): number | undefined { return this.data.initX; } get initY(): number | undefined { return this.data.initY; } }