fix(zoom): set internal d3 zoom property programmatically closes #347
This commit is contained in:
@@ -12,3 +12,5 @@ export const getDimensions = (node: HTMLDivElement) => ({
|
||||
width: node.offsetWidth,
|
||||
height: node.offsetHeight,
|
||||
});
|
||||
|
||||
export const clamp = (val: number, min: number = 0, max: number = 1): number => Math.min(Math.max(val, min), max);
|
||||
|
||||
Reference in New Issue
Block a user