Setting Element's Z-Axis Property Manually #2537
Unanswered
Fractal393
asked this question in
Q&A
Replies: 1 comment
-
The stencil is currently unsetting the stencil.on('element:drop', (elementView) => {
const element = elementView.model;
element.set('z', isContainer(element) ? 1 : 2);
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
I have two types of elements in my stencil, 1. Container, 2. Object.
What I want is for the object element to have the Z-axis property always higher than the Container element irrespective of when it is dropped. I have some ways to solve this but most of them don't seem efficient.
Is there a way to do this using pre defined methods?
Steps to reproduce
No response
Restrictions & Constraints
No response
Does your question relate to JointJS or JointJS+. Select both if applicable.
JointJS+
Beta Was this translation helpful? Give feedback.
All reactions