Skip to content

Commit

Permalink
Merge pull request #2 from consbio/export-setdiagramsize
Browse files Browse the repository at this point in the history
export setDiagramSize to allow force resize
  • Loading branch information
briannafair authored Feb 24, 2023
2 parents 8e96a59 + 444d7a5 commit 929163a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ModelDiagram.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
}
}
const setDiagramSize = () => {
export const setDiagramSize = () => {
if (diagramNode && (diagramNode.offsetWidth !== diagramSize?.w || diagramNode.offsetHeight !== diagramSize?.h)) {
diagramSize = { w: diagramNode.offsetWidth, h: diagramNode.offsetHeight }
}
Expand Down

0 comments on commit 929163a

Please sign in to comment.