|
@@ -9,7 +9,7 @@
|
|
import {SGraphScene, SGraphShape, SGraphView} from '@persagy-web/graph/lib'
|
|
import {SGraphScene, SGraphShape, SGraphView} from '@persagy-web/graph/lib'
|
|
import {SRect} from '@persagy-web/draw/lib'
|
|
import {SRect} from '@persagy-web/draw/lib'
|
|
|
|
|
|
- class roundRect extends SGraphShape {
|
|
|
|
|
|
+ class RoundRect extends SGraphShape {
|
|
constructor(parent, data) {
|
|
constructor(parent, data) {
|
|
super(parent, data.Style);
|
|
super(parent, data.Style);
|
|
this.leftTopX = data.X;
|
|
this.leftTopX = data.X;
|
|
@@ -100,11 +100,11 @@
|
|
this.view = new SGraphView('roundRect');
|
|
this.view = new SGraphView('roundRect');
|
|
const scene = new SGraphScene();
|
|
const scene = new SGraphScene();
|
|
|
|
|
|
- this.item = new roundRect(null, this.rectData);
|
|
|
|
|
|
+ this.item = new RoundRect(null, this.rectData);
|
|
this.item.selectable = true;
|
|
this.item.selectable = true;
|
|
scene.addItem(this.item);
|
|
scene.addItem(this.item);
|
|
|
|
|
|
- this.item2 = new roundRect(null, this.rectData2);
|
|
|
|
|
|
+ this.item2 = new RoundRect(null, this.rectData2);
|
|
this.item2.selectable = true;
|
|
this.item2.selectable = true;
|
|
scene.addItem(this.item2);
|
|
scene.addItem(this.item2);
|
|
|
|
|