From 116a82cdeaab51e8fe01e34fb9c58bd55ebf686b Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Mon, 3 Oct 2022 18:10:29 +0200 Subject: [PATCH] Revert "revert change not related to doc" This reverts commit f09e41aeefe259810da5abc1be2680b132d2c789. --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index cee9f48..773d9c3 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import { BpmnVisualization, ShapeUtil, FlowKind } from "bpmn-visualization"; +import { BpmnVisualization, ShapeUtil, FlowKind, FitType } from "bpmn-visualization"; // BPMN diagram content conveniently retrieved with Vite (as string) // for other load methods, see https://github.com/process-analytics/bpmn-visualization-examples @@ -17,7 +17,7 @@ footer.innerText = `bpmn-visualization@${version.lib}`; // load and filter a pool bpmnVisualization.load(diagram, { - fit: { type: "Center" }, + fit: { type: FitType.Center }, modelFilter: { pools: [ {