English
@eightkk/vue-weave / core / mirrorTimeScale
Function: mirrorTimeScale()
mirrorTimeScale(
scale):TimeScale
Defined in: src/core/timeline.ts:179
Mirror a scale for a right-to-left axis: the range start maps to width and the range end to 0. Both mappings stay inverse; round trips are exact whenever they are exact for scale and width - x is exactly representable (for example integer pixel positions). GanttChart does not need it, because it positions elements from the inline start edge; it is used to export right-to-left SVG and is available for custom renderers.