|
@@ -224,15 +224,6 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
|
|
|
rotation={selectionRotation}
|
|
|
/>
|
|
|
)}
|
|
|
- {selectedShapes && components.ContextBar && (
|
|
|
- <ContextBarContainer
|
|
|
- key={'context' + selectedShapes.map(shape => shape.id).join('')}
|
|
|
- shapes={selectedShapes}
|
|
|
- hidden={!showContextBar}
|
|
|
- bounds={singleSelectedShape ? singleSelectedShape.bounds : selectionBounds}
|
|
|
- rotation={singleSelectedShape ? singleSelectedShape.props.rotation : 0}
|
|
|
- />
|
|
|
- )}
|
|
|
</>
|
|
|
)}
|
|
|
</HTMLLayer>
|
|
@@ -246,6 +237,22 @@ export const Canvas = observer(function Renderer<S extends TLReactShape>({
|
|
|
|
|
|
<div id="tl-dev-tools-canvas-anchor" />
|
|
|
</div>
|
|
|
+ <HTMLLayer>
|
|
|
+ {selectedShapes && selectionBounds && (
|
|
|
+ <>
|
|
|
+ {selectedShapes && components.ContextBar && (
|
|
|
+ <ContextBarContainer
|
|
|
+ key={'context' + selectedShapes.map(shape => shape.id).join('')}
|
|
|
+ shapes={selectedShapes}
|
|
|
+ hidden={!showContextBar}
|
|
|
+ bounds={singleSelectedShape ? singleSelectedShape.bounds : selectionBounds}
|
|
|
+ rotation={singleSelectedShape ? singleSelectedShape.props.rotation : 0}
|
|
|
+ />
|
|
|
+ )}
|
|
|
+ </>
|
|
|
+ )}
|
|
|
+ </HTMLLayer>
|
|
|
+
|
|
|
{children}
|
|
|
</div>
|
|
|
)
|