@@ -39,6 +39,16 @@ export class PropertyGroupsService implements IPropertyGroupsService {
3939 { name : 'svg' , propertiesService : new CssPropertiesService ( "svg" ) } ,
4040 ] ;
4141
42+ protected _svgChildPgList : { name : string ; propertiesService : IPropertiesService ; } [ ] = [
43+ { name : 'properties' , propertiesService : null } ,
44+ { name : 'attached' , propertiesService : this . _attachedPropertiesService } ,
45+ { name : 'attributes' , propertiesService : new AttributesPropertiesService ( ) } ,
46+ { name : 'common' , propertiesService : new CommonPropertiesService ( ) } ,
47+ { name : 'styles' , propertiesService : new CssCurrentPropertiesService ( ) } ,
48+ { name : 'css vars' , propertiesService : new CssCustomPropertiesService ( ) } ,
49+ { name : 'layout' , propertiesService : new CssPropertiesService ( "layoutSvgChild" ) } ,
50+ ] ;
51+
4252 protected _gridChild : { name : string ; propertiesService : IPropertiesService ; } [ ] = [
4353 { name : 'gridChild' , propertiesService : new CssPropertiesService ( "gridChild" ) } ,
4454 ] ;
@@ -74,8 +84,13 @@ export class PropertyGroupsService implements IPropertyGroupsService {
7484 this . _svgPgList [ 0 ] . propertiesService = designItems [ 0 ] . serviceContainer . getLastServiceWhere ( 'propertyService' , x => x . isHandledElement ( designItems [ 0 ] ) ) ;
7585
7686 let lst = this . _pgList ;
77- if ( designItems [ 0 ] . element instanceof designItems [ 0 ] . window . SVGElement )
78- lst = this . _svgPgList ;
87+ if ( designItems [ 0 ] . element instanceof designItems [ 0 ] . window . SVGElement ) {
88+ if ( designItems [ 0 ] . element instanceof designItems [ 0 ] . window . SVGSVGElement ) {
89+ lst = this . _svgPgList ;
90+ } else {
91+ lst = this . _svgChildPgList ;
92+ }
93+ }
7994
8095 const style = designItems [ 0 ] . getComputedStyle ( ) ;
8196 if ( style . display . includes ( 'grid' ) )
0 commit comments