|
@@ -24,7 +24,7 @@
|
|
|
* *********************************************************************************************************************
|
|
|
*/
|
|
|
|
|
|
-import { SMouseEvent, SMatrix } from "@persagy-web/base";
|
|
|
+import { SMouseEvent, SMatrix, SObject } from "@persagy-web/base";
|
|
|
import { SPainter, SPoint, SRect } from "@persagy-web/draw";
|
|
|
import { SGraphItem } from "./SGraphItem";
|
|
|
import { SGraphView } from "./SGraphView";
|
|
@@ -35,7 +35,7 @@ import { SGraphSelectContainer } from "./SGraphSelectContainer";
|
|
|
*
|
|
|
* @author 庞利祥 <sybotan@126.com>
|
|
|
*/
|
|
|
-export class SGraphScene {
|
|
|
+export class SGraphScene extends SObject {
|
|
|
/** 展示场景的视图 */
|
|
|
view: SGraphView | null = null;
|
|
|
/** 根节点 */
|
|
@@ -51,6 +51,7 @@ export class SGraphScene {
|
|
|
* 构造函数
|
|
|
*/
|
|
|
constructor() {
|
|
|
+ super();
|
|
|
this.root.scene = this;
|
|
|
this.addItem(this.selectContainer);
|
|
|
}
|