-
-
Notifications
You must be signed in to change notification settings - Fork 112
Symbol selector #78
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
Symbol selector #78
Conversation
TraceSelector was not updated when we moved to the container system. Tests!
A variables main file defines the customizable variables in the editor. This is only partially complete. Better standardization and coverage is required. Use a default vars file to assign plotly defaults to the customizable variables.
The underlying modal is useful to other dropdown like components so that has been split into something called ModalBox
@alexcjohnson This PR introduces the SymbolSelector and also a layer of abstraction in our SCSS so users can more easily customize it. The concept for Editor+SCSS is to locate all configurable variables in a I have created a The type of styles that are exposed in |
Oh and this PR takes care of SubPanel. It has been split into two components. |
font-size: 13px; | ||
line-height: 13px; | ||
font-size: $font-size; | ||
line-height: $font-size; | ||
border: 1px solid #a2b1c6; | ||
background-color: #a2b1c6; | ||
height: 15px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if line-height
gets abstracted to a var, presumably height
should too? I see this a bunch of places below too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely. Only the rudiments of a framework are in place. Some components have no variable coverage. It'll be part of a theming campaign at some point
src/lib/constants.js
Outdated
@@ -22,3 +22,400 @@ export const multiValueText = { | |||
"Common Case: An 'All' tab might display this message " + | |||
'because the X and Y tabs contain different settings.', | |||
}; | |||
|
|||
export const SYMBOLS = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oy, I know this is what we are doing in WS2 but I'd really love us to be able to build this off plotly.js rather than hard coding it in. Wishlist item I guess...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure what do I need to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this exact array could be generated by running the functions in https://github.com/plotly/plotly.js/blob/master/src/components/drawing/symbol_defs.js
then filling in 3d and gl flags by looking at https://github.com/plotly/plotly.js/blob/master/src/constants/gl3d_markers.js and https://github.com/plotly/plotly.js/blob/master/src/constants/gl2d_markers.js
then spitting the result out as text.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I'll link this comment to an issue and we'll tackle it before full release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your call if you want to build |
Canvas size
Annotation of important pieces of code will arrive in a day or so