123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- import { SGraphItem } from "@persagy-web/graph/";
- import { SItemStatus } from "@persagy-web/big";
- import { SMouseEvent } from "@persagy-web/base/";
- export class SGraphEdit extends SGraphItem {
-
-
-
- protected _status: SItemStatus = SItemStatus.Normal;
- get status(): SItemStatus {
- return this._status;
- }
- set status(value: SItemStatus) {
- const oldStatus = this._status;
- const newStatus = value;
- this._status = value;
-
- this.$emit('statusChange', oldStatus, newStatus);
- this.update();
- }
-
- data: any;
-
- legendData: any;
-
- relationData: any
-
-
-
- constructor(parent: SGraphItem | null) {
- super();
- if (parent) {
- this.parent = parent;
- }
- this.selectable = true;
- }
-
- redo(): void {
-
- }
-
- undo(): void {
-
- }
-
- toData(): any {
-
- }
-
- onContextMenu(event: SMouseEvent): boolean {
- this.$emit('onContextMenu', event);
- return true;
- }
- }
|