bpmn-io / bpmn-js-nyan

bpmn-js, nyan cat style :rainbow: :cat:
MIT License
92 stars 27 forks source link

点击连线的时候报错~ #8

Closed Smosar closed 2 years ago

Smosar commented 2 years ago

当我导入ResizeAllRules 的时候,点击元素之间的线会报错

philippfromme commented 2 years ago

Please communicate in English so we can help you.

Smosar commented 2 years ago

When I import ResizeAllRules, clicking the line between elements will give an error

MaxTru commented 2 years ago

Thanks for reporting. Could you please use the template for a bug and then reopen this issue. We in particular need clear steps to reproduce. Thanks

__Describe the Bug__

<!-- A clear and concise description of what the bug is. -->

__Steps to Reproduce__

<!-- Clear steps that allow us to reproduce the error. -->

1. do this
2. do that
3. now this happens

__Expected Behavior__

<!-- A clear and concise description of what you expected to happen. -->

__Environment__

- Host (Browser/Node version), if applicable: [e.g. MS Edge 18, Chrome 69, Node 10 LTS]
- OS: [e.g. Windows 7]
- Library version: [e.g. 2.0.0]
Smosar commented 2 years ago

ResizeAllRules.prototype.init = function () {

this.addRule('shape.resize', 1500, function (data) { if (data.shape.type !== "bpmn:SequenceFlow") { return true; } });

}; // changed