-
Notifications
You must be signed in to change notification settings - Fork 15
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
marker symbols #54
Comments
I agree this would be useful. I'd rather if the symbol was an enum since so, 44 values with +100, +200, for "open", "dot" respectively. |
Like this?
|
Hah. yes, except make it MarkerSymbolStyle* {.pure.} = enum
open = 100
dot = 200 then override proc `+`*(a:MarkerSymbol, b:MarkerSymbolStyle): MarkerSymbol =
return MarkerSymbol(a.int + b.int) so that you can do : var s = MarkerSymbol.octagon | MarkerSymbolStyle.open | MarkerSymbolStyle.dot would you put this into a pull request? |
It would be nice to be able to set marker symbols, not just color and size. I think this is a 6 line change:
The text was updated successfully, but these errors were encountered: