drawio icon indicating copy to clipboard operation
drawio copied to clipboard

Feature request: Allow boolean operations to mutate shapes

Open dannystaple opened this issue 2 years ago • 1 comments

  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I find Draw.io intuitive, I like much of its tools. and the sketchy style operations make a very particular feel for a diagram. However, it is frustrating when I want a shape that is not in its library. While I can make and import them from another app, this puts those items outside the style changes that DrawIO can apply.

Describe the solution you'd like

A set of boolean set style shape operations. Select two shapes, these can be combined, joined, subtracted, or find the intersection. Use the Z-order such that the front shape is subtracted from the rear shape for the subtraction operation.

  • Combining - make a single hull - intersection parts become a single part.
  • Join - maybe multiple hulls, but considered a single shape with multiple hulls.
  • Subtracting - Take the intersecting parts of a front shape from the parts of a rear one. Result is what remains of the rear shape.
  • Intersecting - Keep only the overlapping parts of two shapes. Discard the rest.

Describe alternatives you've considered using a different package to make images and dragging them in. This takes it outside the drawio workflow, means there are additional files to manage, and only a subset of the drawio styling options can be applied.

dannystaple avatar Jun 24 '22 16:06 dannystaple

We'll accept a PR for this one. Note the code must be security reviewed prior to being accepted.

davidjgraph avatar Jun 25 '22 06:06 davidjgraph

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

stale[bot] avatar Mar 25 '23 15:03 stale[bot]