I would like to display between events B and C a particular colour as in the Nested Event Demo (https://bryntum.com/products/scheduler/examples/nestedevents/).
This works when the zoomLevel is greater than or equal to 7, if the zoom is less there is a significant offset.
capture.PNG (9.29 KiB) Viewed 300 times
Capture2.PNG (11.43 KiB) Viewed 300 times
I use the getDistanceForDuration function to calculate the position and size of the nestedEvent.
You will find in bcs_ng\entity\road-map\bryntum\display-config.ts the function calculateOffsetMultiColorEventConfig which allows to calculate the position and the size
Thanks for your help
Re: [ANGULAR] Issue on get distance for duration
Posted: Thu Feb 09, 2023 2:24 pm
by Animal
Maybe try using getPositionFromDate instead? That will handle non-contiguous timelines.
Re: [ANGULAR] Issue on get distance for duration
Posted: Fri Feb 10, 2023 10:45 am
by emma.fourier@moss.fr
I have already tried to use getPositionFromDate but if the date of event A is no longer in the timeAxis it returns -1. So I can't get the distance in px between event A and B.