Browse Source

add group class

Konstantinos Kaloutas 2 years ago
parent
commit
49b418ece5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tldraw/apps/tldraw-logseq/src/lib/shapes/GroupShape.tsx

+ 3 - 3
tldraw/apps/tldraw-logseq/src/lib/shapes/GroupShape.tsx

@@ -29,13 +29,13 @@ export class GroupShape extends TLGroupShape<GroupShapeProps> {
     const Indicator = this.ReactIndicator
 
     return (
-      <SVGContainer {...events}>
+      <SVGContainer {...events} className="tl-group-container">
         <rect
           className={'tl-hitarea-fill'}
           x={strokeWidth / 2}
           y={strokeWidth / 2}
-          width={Math.max(0.01, bounds.width - strokeWidth)}
-          height={Math.max(0.01, bounds.height - strokeWidth)}
+          width={Math.max(0.01, bounds?.width - strokeWidth)}
+          height={Math.max(0.01, bounds?.height - strokeWidth)}
           pointerEvents="all"
         />
         {childSelected && (