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

Maybe better to be ele.cssLabel() ext than a renderer #3

Open
maxkfranz opened this issue Nov 24, 2014 · 2 comments
Open

Maybe better to be ele.cssLabel() ext than a renderer #3

maxkfranz opened this issue Nov 24, 2014 · 2 comments

Comments

@maxkfranz
Copy link

Along the same lines as #1, it may be better to be an element extension (i.e. function). That way, you can say explicitly which elements you want to use this. It also means that you can safely turn off regular labels using a bypass style (i.e. ele.css('min-zoomed-font-size', 9999999). Then you can read other label style properties as normal to render the labels with CSS.

@maxkfranz
Copy link
Author

It may be better to use a different property than min-zoomed-font-size in future, but it should work for now until a better property is added in cy.js.

@utensil
Copy link

utensil commented Feb 24, 2015

@maxkfranz The difficult part of doing this as an element extension might be (correct me if I misunderstood something) how to feedback the size changing to layout engine.

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