Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle multiple names (override) in the baseStyle in obtainDecorationStyle #43

Open
haensch-mauricio opened this issue May 25, 2018 · 1 comment

Comments

@haensch-mauricio
Copy link

haensch-mauricio commented May 25, 2018

Currently we obtain the first defined name, but the style being passed may have multiple names defined, so we would like to get the last one in that case.

qmxgraph/page/utils.js

@prusse-martin
Copy link
Member

var stylesheet = graph.stylesheet;
var defaultVertexStyle = stylesheet.getDefaultVertexStyle()
var style = stylesheet.getCellStyle(baseStyle, defaultVertexStyle);
var baseRotation = mxUtils.getValue(style, mxConstants.STYLE_DECORATION_BASE_ROTATION, 90);

But calling stylesheet.getCellStyle looks costly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants