@bpmnkit/editor 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/editor.js +2 -1
  2. package/package.json +1 -1
package/dist/editor.js CHANGED
@@ -442,7 +442,8 @@ export class BpmnEditor {
442
442
  this.loadDefinitions(createEmptyDefinitions());
443
443
  }
444
444
  this._ro = new ResizeObserver(() => {
445
- if (this._defs)
445
+ // When fit:"none", the caller manages zoom explicitly — never auto-fit on resize.
446
+ if (this._defs && this._fit !== "none")
446
447
  this.fitView();
447
448
  });
448
449
  this._ro.observe(this._host);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmnkit/editor",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",