File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
engine/modules/entities/src/main/resources/view/entity-module Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { CommandParser } from './CommandParser.js'
22import { fitAspectRatio } from '../core/utils.js'
33import { WIDTH , HEIGHT } from '../core/constants.js'
4- import { Group } from './Group .js'
4+ import { ContainerBasedEntity } from './ContainerBasedEntity .js'
55
66export const api = { }
77
@@ -157,7 +157,7 @@ export class GraphicEntityModule {
157157 resortTree ( ) {
158158 // Groups
159159 this . entities . forEach ( e => {
160- if ( e instanceof Group ) {
160+ if ( e instanceof ContainerBasedEntity ) {
161161 this . sortChildren ( e . childrenContainer )
162162 }
163163 } )
@@ -170,7 +170,7 @@ export class GraphicEntityModule {
170170
171171 // Groups
172172 this . entities . forEach ( e => {
173- if ( e instanceof Group ) {
173+ if ( e instanceof ContainerBasedEntity ) {
174174 e . childrenContainer . removeChildren ( )
175175 e . currentState . children . forEach ( id => {
176176 const child = this . entities . get ( id )
You can’t perform that action at this time.
0 commit comments