bpmn-io / diagram-js

A toolbox for displaying and modifying diagrams on the web.
MIT License
1.69k stars 419 forks source link

feat(context-pad): do not scale by default #883

Closed marstamm closed 5 months ago

marstamm commented 5 months ago

With this PR, the context pad and popup menu will no longer scale with the canvas zoom. To restore the old behavior, you can add the following to your configuration:

  {
    popupMenu: {
      scale: {
        min: 1.0,
        max: 1.5
      }
    },
    contextPad: {
      scale: {
        min: 1.0,
        max: 1.5
      }
    }
  }

closes #879

nikku commented 5 months ago

Tested and it works. Gotta get used to it, but I guess....

barmac commented 5 months ago

I am testing this via npx @bpmn-io/sr bpmn-io/bpmn-js#main -l bpmn-io/diagram-js#879-fix-scale-behavior right now.