-
Notifications
You must be signed in to change notification settings - Fork 5
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
ui-trackoccupancydiagram: add main layers #715
Conversation
7cd34e0
to
2c1f5c6
Compare
6274c7e
to
c6fe372
Compare
ui-trackoccupancydiagram/src/components/TrackOccupancyCanvas.tsx
Outdated
Show resolved
Hide resolved
storybook/stories/TrackOccupancyDiagram/TrackOccupancyDiagram.stories.tsx
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawOccupancyZonesTexts.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawOccupancyZonesTexts.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawOccupancyZonesTexts.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawOccupancyZonesTexts.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawOccupancyZones.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawTrack.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawTrack.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawTracks.ts
Outdated
Show resolved
Hide resolved
ui-trackoccupancydiagram/src/components/helpers/drawElements/drawTracks.ts
Outdated
Show resolved
Hide resolved
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.
the zoom isn't part of the feature, also if you still want to try it, after changing the param you have to click on "update the story" |
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.
Tested, ty for the fix ! Just left 2 comments
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.
LGTM !
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.
lgtm =)
Co-authored-by: Uriel-Sautron <[email protected]> Signed-off-by: Yohh <[email protected]>
Co-authored-by: Uriel-Sautron <[email protected]> Signed-off-by: Yohh <[email protected]>
aab8379
to
70bd20c
Compare
- import TimeCaption.tsx from ui-spacetimechart - import and set contexts from ui-spacetimechart Co-authored-by: Uriel-Sautron <[email protected]> Signed-off-by: Yohh <[email protected]>
- create drawTrack - create drawTracks - create drawTick - add track background - use Space time context Co-authored-by: Yohh <[email protected]> Signed-off-by: Uriel Sautron <[email protected]>
Co-authored-by: Uriel-Sautron <[email protected]> Signed-off-by: Yohh <[email protected]>
…tory Co-authored-by: Uriel-Sautron <[email protected]> Signed-off-by: Yohh <[email protected]>
70bd20c
to
6e35e3c
Compare
Storybook
We add the new trackoccupancydiagram story in
/storybook/stories
, in a close future all stories for all modules will be moved in this folder.Components
Two main components are exported from
ui-trackoccupancydiagram
,TrackOccupancyManchette
andTrackOccupancyCanvas
, as they will be imported in the manchette and the space time chart separatly for the no-standalone version.In the story, we recreate a SpaceTimeChart friendly environnement with the contexts we need, and import the
conts
andutils
we need directly from the spacetimechart module.Helpers and draw functions are created conveniently with the SpaceTimeChart methods, again to anticipate the future integration.
Data
ui-manchette
&ui-spacetimechart
=> we use the contextsInteractivity layer
Tracks layer
Trains layer
Time captions layer
TimeCaptions
component from ui-speedspacechartNext
sketch: https://www.sketch.com/s/50744654-4631-4fae-8e7c-7eb22dfadc1a
close #704