From fef6e957126fbc7f838e27d0bef2258008d26457 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 15 Dec 2023 09:17:45 -0500 Subject: added scaling to mapbox nodes. --- src/client/views/nodes/MapBox/MapBox.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/MapBox/MapBox.tsx b/src/client/views/nodes/MapBox/MapBox.tsx index f4526c490..87484e63a 100644 --- a/src/client/views/nodes/MapBox/MapBox.tsx +++ b/src/client/views/nodes/MapBox/MapBox.tsx @@ -1676,6 +1676,8 @@ export class MapBox extends ViewBoxAnnotatableComponent string[]) => null; return (
@@ -1685,7 +1687,7 @@ export class MapBox extends ViewBoxAnnotatableComponent { e.button === 0 && !e.ctrlKey && e.stopPropagation(); }} - style={{ width: `calc(100% - ${this.sidebarWidthPercent})`, pointerEvents: this.pointerEvents() }}> + style={{ transformOrigin: "top left", transform: `scale(${scale})`, width: `calc(100% - ${this.sidebarWidthPercent})`, pointerEvents: this.pointerEvents() }}>
{renderAnnotations(this.transparentFilter)}
{renderAnnotations(this.opaqueFilter)} {SnappingManager.GetIsDragging() ? null : renderAnnotations()} @@ -2036,4 +2038,4 @@ export class MapBox extends ViewBoxAnnotatableComponent
*/} \ No newline at end of file +
*/} -- cgit v1.2.3-70-g09d2