-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added ptplot.ts to manifest, added nodejs to envs * actually kind of have circle-based pick working * pick seems to be all the way working * cleaned up the ts file
- Loading branch information
1 parent
1f9acb3
commit b3a5a69
Showing
6 changed files
with
49 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ dependencies: | |
- bokeh | ||
- flake8 | ||
- mypy | ||
- nodejs | ||
- notebook | ||
- numpy | ||
- pandas | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,10 @@ | ||
from bokeh.models.glyph import LineGlyph, FillGlyph | ||
from bokeh.models.glyphs import Circle | ||
from bokeh.core.property.dataspec import field | ||
from bokeh.core.properties import AngleSpec, Include, NullDistanceSpec, NumberSpec | ||
from bokeh.core.property_mixins import LineProps, FillProps | ||
from bokeh.core.properties import AngleSpec | ||
|
||
|
||
class Pick(LineGlyph, FillGlyph): | ||
class Pick(Circle): | ||
__implementation__ = "pick.ts" | ||
_args = ("x", "y", "rot") | ||
|
||
radius = NullDistanceSpec() | ||
x = NumberSpec(default=field("x")) | ||
y = NumberSpec(default=field("y")) | ||
rot = AngleSpec(default=field("rot")) | ||
|
||
line_props = Include( | ||
LineProps, | ||
use_prefix=False, | ||
help=""" | ||
The {prop} values for the Pick. | ||
""", | ||
) | ||
|
||
fill_props = Include( | ||
FillProps, | ||
use_prefix=False, | ||
help=""" | ||
The {prop} values for the Pick. | ||
""", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.