import { Schema } from './schema'; import { EntityData } from '../entity-data'; import { SkewSchema, SkewSchemaDecoration } from '@gedit/utils'; export { SkewSchema, SkewSchemaDecoration }; export class SkewData extends EntityData implements SkewSchema { static type = 'SkewData'; getDefaultData(): SkewSchema { return Schema.createDefault(SkewSchemaDecoration); } 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); } }