@amcharts/amcharts5 5.13.6 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.internal/charts/funnel/FunnelSeries.d.ts +1 -1
- package/.internal/charts/funnel/FunnelSeries.d.ts.map +1 -1
- package/.internal/charts/funnel/FunnelSeries.js.map +1 -1
- package/.internal/charts/funnel/FunnelSlice.d.ts +1 -1
- package/.internal/charts/funnel/FunnelSlice.d.ts.map +1 -1
- package/.internal/charts/funnel/FunnelSlice.js.map +1 -1
- package/.internal/charts/funnel/PyramidSeries.d.ts.map +1 -1
- package/.internal/charts/funnel/PyramidSeries.js.map +1 -1
- package/.internal/charts/funnel/SlicedChart.d.ts +1 -1
- package/.internal/charts/funnel/SlicedChart.d.ts.map +1 -1
- package/.internal/charts/funnel/SlicedChart.js.map +1 -1
- package/.internal/charts/gantt/Gantt.d.ts +222 -0
- package/.internal/charts/gantt/Gantt.d.ts.map +1 -0
- package/.internal/charts/gantt/Gantt.js +795 -0
- package/.internal/charts/gantt/Gantt.js.map +1 -0
- package/.internal/charts/gantt/GanttCategoryAxis.d.ts +287 -0
- package/.internal/charts/gantt/GanttCategoryAxis.d.ts.map +1 -0
- package/.internal/charts/gantt/GanttCategoryAxis.js +1238 -0
- package/.internal/charts/gantt/GanttCategoryAxis.js.map +1 -0
- package/.internal/charts/gantt/GanttCategoryAxisRenderer.d.ts +98 -0
- package/.internal/charts/gantt/GanttCategoryAxisRenderer.d.ts.map +1 -0
- package/.internal/charts/gantt/GanttCategoryAxisRenderer.js +270 -0
- package/.internal/charts/gantt/GanttCategoryAxisRenderer.js.map +1 -0
- package/.internal/charts/gantt/GanttDateAxis.d.ts +36 -0
- package/.internal/charts/gantt/GanttDateAxis.d.ts.map +1 -0
- package/.internal/charts/gantt/GanttDateAxis.js +35 -0
- package/.internal/charts/gantt/GanttDateAxis.js.map +1 -0
- package/.internal/charts/gantt/GanttDateAxisRenderer.d.ts +19 -0
- package/.internal/charts/gantt/GanttDateAxisRenderer.d.ts.map +1 -0
- package/.internal/charts/gantt/GanttDateAxisRenderer.js +23 -0
- package/.internal/charts/gantt/GanttDateAxisRenderer.js.map +1 -0
- package/.internal/charts/gantt/GanttDefaultTheme.d.ts +8 -0
- package/.internal/charts/gantt/GanttDefaultTheme.d.ts.map +1 -0
- package/.internal/charts/gantt/GanttDefaultTheme.js +769 -0
- package/.internal/charts/gantt/GanttDefaultTheme.js.map +1 -0
- package/.internal/charts/gantt/GanttSeries.d.ts +348 -0
- package/.internal/charts/gantt/GanttSeries.d.ts.map +1 -0
- package/.internal/charts/gantt/GanttSeries.js +1524 -0
- package/.internal/charts/gantt/GanttSeries.js.map +1 -0
- package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyLink.d.ts +1 -1
- package/.internal/charts/hierarchy/HierarchyLink.d.ts.map +1 -1
- package/.internal/charts/hierarchy/HierarchyLink.js.map +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchy.d.ts +2 -2
- package/.internal/charts/hierarchy/LinkedHierarchy.d.ts.map +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchy.js +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/Pack.d.ts.map +1 -1
- package/.internal/charts/hierarchy/Pack.js.map +1 -1
- package/.internal/charts/hierarchy/Partition.d.ts.map +1 -1
- package/.internal/charts/hierarchy/Partition.js.map +1 -1
- package/.internal/charts/hierarchy/Treemap.js.map +1 -1
- package/.internal/charts/hierarchy/VoronoiTreemap.d.ts.map +1 -1
- package/.internal/charts/hierarchy/VoronoiTreemap.js +3 -3
- package/.internal/charts/hierarchy/VoronoiTreemap.js.map +1 -1
- package/.internal/charts/map/MapChart.d.ts.map +1 -1
- package/.internal/charts/map/MapChart.js +1 -3
- package/.internal/charts/map/MapChart.js.map +1 -1
- package/.internal/charts/stock/drawing/DrawingSeries.d.ts +1 -0
- package/.internal/charts/stock/drawing/DrawingSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/DrawingSeries.js +7 -0
- package/.internal/charts/stock/drawing/DrawingSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalLineSeries.js +2 -1
- package/.internal/charts/stock/drawing/HorizontalLineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalRaySeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalRaySeries.js +2 -1
- package/.internal/charts/stock/drawing/HorizontalRaySeries.js.map +1 -1
- package/.internal/charts/stock/drawing/ParallelChannelSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/ParallelChannelSeries.js +2 -1
- package/.internal/charts/stock/drawing/ParallelChannelSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/PolylineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/PolylineSeries.js +3 -1
- package/.internal/charts/stock/drawing/PolylineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/SimpleLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/SimpleLineSeries.js +2 -1
- package/.internal/charts/stock/drawing/SimpleLineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/VerticalLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/VerticalLineSeries.js +2 -1
- package/.internal/charts/stock/drawing/VerticalLineSeries.js.map +1 -1
- package/.internal/charts/timeline/AxisRendererCurveX.js.map +1 -1
- package/.internal/charts/timeline/AxisRendererCurveY.js.map +1 -1
- package/.internal/charts/timeline/CurveChart.js.map +1 -1
- package/.internal/charts/timeline/CurveColumnSeries.js.map +1 -1
- package/.internal/charts/timeline/CurveCursor.js +1 -1
- package/.internal/charts/timeline/CurveCursor.js.map +1 -1
- package/.internal/charts/timeline/SerpentineChart.d.ts +1 -1
- package/.internal/charts/timeline/SerpentineChart.d.ts.map +1 -1
- package/.internal/charts/timeline/SerpentineChart.js.map +1 -1
- package/.internal/charts/timeline/SpiralChart.d.ts +1 -1
- package/.internal/charts/timeline/SpiralChart.d.ts.map +1 -1
- package/.internal/charts/timeline/SpiralChart.js.map +1 -1
- package/.internal/charts/wordcloud/WordCloud.js.map +1 -1
- package/.internal/charts/xy/XYChart.d.ts.map +1 -1
- package/.internal/charts/xy/XYChart.js +16 -8
- package/.internal/charts/xy/XYChart.js.map +1 -1
- package/.internal/charts/xy/XYChartDefaultTheme.d.ts.map +1 -1
- package/.internal/charts/xy/XYChartDefaultTheme.js +6 -3
- package/.internal/charts/xy/XYChartDefaultTheme.js.map +1 -1
- package/.internal/charts/xy/axes/Axis.d.ts +17 -1
- package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/Axis.js +46 -26
- package/.internal/charts/xy/axes/Axis.js.map +1 -1
- package/.internal/charts/xy/axes/AxisBullet.d.ts +1 -1
- package/.internal/charts/xy/axes/AxisBullet.d.ts.map +1 -1
- package/.internal/charts/xy/axes/AxisBullet.js.map +1 -1
- package/.internal/charts/xy/axes/AxisLabel.d.ts +1 -1
- package/.internal/charts/xy/axes/AxisLabel.d.ts.map +1 -1
- package/.internal/charts/xy/axes/AxisLabel.js.map +1 -1
- package/.internal/charts/xy/axes/AxisLabelRadial.d.ts +1 -1
- package/.internal/charts/xy/axes/AxisLabelRadial.d.ts.map +1 -1
- package/.internal/charts/xy/axes/AxisLabelRadial.js.map +1 -1
- package/.internal/charts/xy/axes/AxisRenderer.d.ts +5 -5
- package/.internal/charts/xy/axes/AxisRenderer.d.ts.map +1 -1
- package/.internal/charts/xy/axes/AxisRenderer.js.map +1 -1
- package/.internal/charts/xy/axes/AxisRendererX.d.ts +1 -1
- package/.internal/charts/xy/axes/AxisRendererX.d.ts.map +1 -1
- package/.internal/charts/xy/axes/AxisRendererX.js +9 -5
- package/.internal/charts/xy/axes/AxisRendererX.js.map +1 -1
- package/.internal/charts/xy/axes/AxisRendererY.d.ts +1 -1
- package/.internal/charts/xy/axes/AxisRendererY.d.ts.map +1 -1
- package/.internal/charts/xy/axes/AxisRendererY.js +9 -5
- package/.internal/charts/xy/axes/AxisRendererY.js.map +1 -1
- package/.internal/charts/xy/axes/CategoryAxis.d.ts +34 -3
- package/.internal/charts/xy/axes/CategoryAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/CategoryAxis.js +243 -40
- package/.internal/charts/xy/axes/CategoryAxis.js.map +1 -1
- package/.internal/charts/xy/axes/CategoryDateAxis.d.ts +1 -1
- package/.internal/charts/xy/axes/CategoryDateAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/CategoryDateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.d.ts +16 -2
- package/.internal/charts/xy/axes/DateAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.js +20 -5
- package/.internal/charts/xy/axes/DateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/EditableAxisLabel.d.ts +21 -0
- package/.internal/charts/xy/axes/EditableAxisLabel.d.ts.map +1 -0
- package/.internal/charts/xy/axes/EditableAxisLabel.js +31 -0
- package/.internal/charts/xy/axes/EditableAxisLabel.js.map +1 -0
- package/.internal/charts/xy/axes/GaplessDateAxis.d.ts +2 -2
- package/.internal/charts/xy/axes/GaplessDateAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/GaplessDateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.d.ts +2 -2
- package/.internal/charts/xy/axes/ValueAxis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.js +4 -3
- package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts +5 -1
- package/.internal/charts/xy/series/BaseColumnSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.js +60 -32
- package/.internal/charts/xy/series/BaseColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/CandlestickSeries.d.ts +2 -1
- package/.internal/charts/xy/series/CandlestickSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/CandlestickSeries.js +99 -44
- package/.internal/charts/xy/series/CandlestickSeries.js.map +1 -1
- package/.internal/charts/xy/series/ColumnSeries.d.ts +39 -0
- package/.internal/charts/xy/series/ColumnSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/ColumnSeries.js +77 -1
- package/.internal/charts/xy/series/ColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/LineSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/LineSeries.js.map +1 -1
- package/.internal/charts/xy/series/OHLC.d.ts +6 -0
- package/.internal/charts/xy/series/OHLC.d.ts.map +1 -1
- package/.internal/charts/xy/series/OHLC.js +6 -0
- package/.internal/charts/xy/series/OHLC.js.map +1 -1
- package/.internal/charts/xy/series/SmoothedXLineSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/SmoothedXLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/SmoothedXYLineSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/SmoothedXYLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/SmoothedYLineSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/SmoothedYLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/StepLineSeries.d.ts +8 -2
- package/.internal/charts/xy/series/StepLineSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/StepLineSeries.js +6 -0
- package/.internal/charts/xy/series/StepLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/XYSeries.js +4 -1
- package/.internal/charts/xy/series/XYSeries.js.map +1 -1
- package/.internal/core/Classes.d.ts +28 -0
- package/.internal/core/Classes.d.ts.map +1 -1
- package/.internal/core/Classes.js.map +1 -1
- package/.internal/core/Registry.js +1 -1
- package/.internal/core/Registry.js.map +1 -1
- package/.internal/core/Root.d.ts +8 -0
- package/.internal/core/Root.d.ts.map +1 -1
- package/.internal/core/Root.js +26 -19
- package/.internal/core/Root.js.map +1 -1
- package/.internal/core/render/Button.d.ts +4 -1
- package/.internal/core/render/Button.d.ts.map +1 -1
- package/.internal/core/render/Button.js.map +1 -1
- package/.internal/core/render/Component.d.ts +8 -0
- package/.internal/core/render/Component.d.ts.map +1 -1
- package/.internal/core/render/Component.js +17 -0
- package/.internal/core/render/Component.js.map +1 -1
- package/.internal/core/render/ConfirmButton.d.ts +30 -0
- package/.internal/core/render/ConfirmButton.d.ts.map +1 -0
- package/.internal/core/render/ConfirmButton.js +84 -0
- package/.internal/core/render/ConfirmButton.js.map +1 -0
- package/.internal/core/render/Container.d.ts +6 -0
- package/.internal/core/render/Container.d.ts.map +1 -1
- package/.internal/core/render/Container.js +49 -2
- package/.internal/core/render/Container.js.map +1 -1
- package/.internal/core/render/EditableLabel.d.ts.map +1 -1
- package/.internal/core/render/EditableLabel.js +6 -6
- package/.internal/core/render/EditableLabel.js.map +1 -1
- package/.internal/core/render/HeatLegend.d.ts +14 -0
- package/.internal/core/render/HeatLegend.d.ts.map +1 -1
- package/.internal/core/render/HeatLegend.js +16 -3
- package/.internal/core/render/HeatLegend.js.map +1 -1
- package/.internal/core/render/Link.d.ts +28 -0
- package/.internal/core/render/Link.d.ts.map +1 -0
- package/.internal/core/render/Link.js +90 -0
- package/.internal/core/render/Link.js.map +1 -0
- package/.internal/core/render/MonotoneXTension.d.ts.map +1 -1
- package/.internal/core/render/MonotoneXTension.js.map +1 -1
- package/.internal/core/render/MonotoneYTension.d.ts.map +1 -1
- package/.internal/core/render/MonotoneYTension.js.map +1 -1
- package/.internal/core/render/NumericStepper.d.ts +27 -0
- package/.internal/core/render/NumericStepper.d.ts.map +1 -0
- package/.internal/core/render/NumericStepper.js +117 -0
- package/.internal/core/render/NumericStepper.js.map +1 -0
- package/.internal/core/render/OrthogonalLine.d.ts +33 -0
- package/.internal/core/render/OrthogonalLine.d.ts.map +1 -0
- package/.internal/core/render/OrthogonalLine.js +97 -0
- package/.internal/core/render/OrthogonalLine.js.map +1 -0
- package/.internal/core/render/ProgressPie.d.ts +32 -0
- package/.internal/core/render/ProgressPie.d.ts.map +1 -0
- package/.internal/core/render/ProgressPie.js +89 -0
- package/.internal/core/render/ProgressPie.js.map +1 -0
- package/.internal/core/render/Series.d.ts +0 -7
- package/.internal/core/render/Series.d.ts.map +1 -1
- package/.internal/core/render/Series.js +24 -27
- package/.internal/core/render/Series.js.map +1 -1
- package/.internal/core/render/Sprite.d.ts +3 -2
- package/.internal/core/render/Sprite.d.ts.map +1 -1
- package/.internal/core/render/Sprite.js +40 -30
- package/.internal/core/render/Sprite.js.map +1 -1
- package/.internal/core/render/patterns/LinePattern.d.ts +8 -0
- package/.internal/core/render/patterns/LinePattern.d.ts.map +1 -1
- package/.internal/core/render/patterns/LinePattern.js +32 -1
- package/.internal/core/render/patterns/LinePattern.js.map +1 -1
- package/.internal/core/util/Entity.d.ts.map +1 -1
- package/.internal/core/util/Entity.js.map +1 -1
- package/.internal/core/util/EventDispatcher.d.ts +32 -3
- package/.internal/core/util/EventDispatcher.d.ts.map +1 -1
- package/.internal/core/util/EventDispatcher.js +51 -5
- package/.internal/core/util/EventDispatcher.js.map +1 -1
- package/.internal/core/util/Language.d.ts +2 -0
- package/.internal/core/util/Language.d.ts.map +1 -1
- package/.internal/core/util/Language.js.map +1 -1
- package/.internal/core/util/Time.d.ts.map +1 -1
- package/.internal/core/util/Time.js +4 -1
- package/.internal/core/util/Time.js.map +1 -1
- package/.internal/plugins/colorPicker/ColorPicker.d.ts +151 -0
- package/.internal/plugins/colorPicker/ColorPicker.d.ts.map +1 -0
- package/.internal/plugins/colorPicker/ColorPicker.js +665 -0
- package/.internal/plugins/colorPicker/ColorPicker.js.map +1 -0
- package/.internal/plugins/colorPicker/ColorPickerButton.d.ts +28 -0
- package/.internal/plugins/colorPicker/ColorPickerButton.d.ts.map +1 -0
- package/.internal/plugins/colorPicker/ColorPickerButton.js +87 -0
- package/.internal/plugins/colorPicker/ColorPickerButton.js.map +1 -0
- package/.internal/plugins/colorPicker/ColorPickerDefaultTheme.d.ts +8 -0
- package/.internal/plugins/colorPicker/ColorPickerDefaultTheme.d.ts.map +1 -0
- package/.internal/plugins/colorPicker/ColorPickerDefaultTheme.js +248 -0
- package/.internal/plugins/colorPicker/ColorPickerDefaultTheme.js.map +1 -0
- package/.internal/plugins/json/Classes-script.d.ts +28 -0
- package/.internal/plugins/json/Classes-script.d.ts.map +1 -1
- package/.internal/plugins/json/Classes-script.js +14 -0
- package/.internal/plugins/json/Classes-script.js.map +1 -1
- package/.internal/plugins/json/Classes.d.ts +28 -0
- package/.internal/plugins/json/Classes.d.ts.map +1 -1
- package/.internal/plugins/json/Classes.js +14 -0
- package/.internal/plugins/json/Classes.js.map +1 -1
- package/.internal/themes/DefaultTheme.d.ts.map +1 -1
- package/.internal/themes/DefaultTheme.js +227 -2
- package/.internal/themes/DefaultTheme.js.map +1 -1
- package/CHANGELOG.md +37 -0
- package/examples/javascript/flow-arc-horizontal/package.json +1 -1
- package/examples/javascript/flow-arc-vertical/package.json +1 -1
- package/examples/javascript/flow-chord/package.json +1 -1
- package/examples/javascript/flow-chord-directed/package.json +1 -1
- package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/javascript/flow-sankey/package.json +1 -1
- package/examples/javascript/gantt/README.md +6 -0
- package/examples/javascript/gantt/index.css +11 -0
- package/examples/javascript/gantt/index.html +12 -0
- package/examples/javascript/gantt/index.js +228 -0
- package/examples/javascript/gantt/package.json +16 -0
- package/examples/javascript/gantt/webpack.config.js +38 -0
- package/examples/javascript/gantt-multilevel/README.md +6 -0
- package/examples/javascript/gantt-multilevel/index.css +11 -0
- package/examples/javascript/gantt-multilevel/index.html +12 -0
- package/examples/javascript/gantt-multilevel/index.js +90 -0
- package/examples/javascript/gantt-multilevel/package.json +16 -0
- package/examples/javascript/gantt-multilevel/webpack.config.js +38 -0
- package/examples/javascript/gantt-simple/README.md +6 -0
- package/examples/javascript/gantt-simple/index.css +11 -0
- package/examples/javascript/gantt-simple/index.html +12 -0
- package/examples/javascript/gantt-simple/index.js +90 -0
- package/examples/javascript/gantt-simple/package.json +16 -0
- package/examples/javascript/gantt-simple/webpack.config.js +38 -0
- package/examples/javascript/gauge/package.json +1 -1
- package/examples/javascript/gauge-bands/package.json +1 -1
- package/examples/javascript/hierarchy-force-directed/package.json +1 -1
- package/examples/javascript/hierarchy-pack/package.json +1 -1
- package/examples/javascript/hierarchy-partition/package.json +1 -1
- package/examples/javascript/hierarchy-sunburst/package.json +1 -1
- package/examples/javascript/hierarchy-tree/package.json +1 -1
- package/examples/javascript/hierarchy-treemap/package.json +1 -1
- package/examples/javascript/hierarchy-voronoi-treemap/package.json +1 -1
- package/examples/javascript/jest/package.json +1 -1
- package/examples/javascript/json-pie/package.json +1 -1
- package/examples/javascript/json-xy/package.json +1 -1
- package/examples/javascript/map-animating-along-lines/package.json +1 -1
- package/examples/javascript/map-clustered-points/package.json +1 -1
- package/examples/javascript/map-day-and-night/package.json +1 -1
- package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/javascript/map-with-bubbles/package.json +1 -1
- package/examples/javascript/map-zoom-to-country/package.json +1 -1
- package/examples/javascript/misc-40-charts/package.json +1 -1
- package/examples/javascript/misc-microchart-grid/package.json +1 -1
- package/examples/javascript/pie-chart/package.json +1 -1
- package/examples/javascript/pie-donut-chart/package.json +1 -1
- package/examples/javascript/pie-variable-radius/package.json +1 -1
- package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
- package/examples/javascript/radar-heat-map/package.json +1 -1
- package/examples/javascript/radar-line/package.json +1 -1
- package/examples/javascript/radar-time-line/package.json +1 -1
- package/examples/javascript/sliced-funnel/package.json +1 -1
- package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/javascript/sliced-pyramid/package.json +1 -1
- package/examples/javascript/stock-chart/index.js +2 -0
- package/examples/javascript/stock-chart/package.json +1 -1
- package/examples/javascript/stock-chart-comparing-stocks/index.js +2 -0
- package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/javascript/stock-chart-data-granularity/index.js +2 -0
- package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
- package/examples/javascript/stock-chart-data-grouping/index.js +2 -0
- package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
- package/examples/javascript/stock-chart-intraday/index.js +2 -0
- package/examples/javascript/stock-chart-intraday/package.json +1 -1
- package/examples/javascript/stock-chart-live/index.js +1 -0
- package/examples/javascript/stock-chart-live/package.json +1 -1
- package/examples/javascript/stock-chart-volume-separate-panel/index.js +2 -0
- package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/javascript/timeline-horizontal-serpentine-chart/package.json +1 -1
- package/examples/javascript/timeline-linear-process-diagram/package.json +1 -1
- package/examples/javascript/timeline-serpentine-chart/package.json +1 -1
- package/examples/javascript/timeline-spiral-chart/package.json +1 -1
- package/examples/javascript/venn-diagram/package.json +1 -1
- package/examples/javascript/wordcloud-with-data/package.json +1 -1
- package/examples/javascript/wordcloud-with-text/package.json +1 -1
- package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/javascript/xy-bubble/package.json +1 -1
- package/examples/javascript/xy-candlestick/index.js +1 -0
- package/examples/javascript/xy-candlestick/package.json +1 -1
- package/examples/javascript/xy-clustered-column/package.json +1 -1
- package/examples/javascript/xy-column/package.json +1 -1
- package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/javascript/xy-data-grouping/package.json +1 -1
- package/examples/javascript/xy-draggable-range/package.json +1 -1
- package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/javascript/xy-dumbbell plot/package.json +1 -1
- package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/javascript/xy-line/package.json +1 -1
- package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/javascript/xy-live-data/package.json +1 -1
- package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/javascript/xy-ohlc/package.json +1 -1
- package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/javascript/xy-smoothed-line/package.json +1 -1
- package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/javascript/xy-stacked-column/package.json +1 -1
- package/examples/javascript/xy-stacked-step/package.json +1 -1
- package/examples/javascript/xy-stock/package.json +1 -1
- package/examples/javascript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/flow-arc-horizontal/package.json +1 -1
- package/examples/typescript/flow-arc-vertical/package.json +1 -1
- package/examples/typescript/flow-chord/package.json +1 -1
- package/examples/typescript/flow-chord-directed/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/gantt/README.md +6 -0
- package/examples/typescript/gantt/index.css +11 -0
- package/examples/typescript/gantt/index.html +12 -0
- package/examples/typescript/gantt/index.ts +228 -0
- package/examples/typescript/gantt/package.json +18 -0
- package/examples/typescript/gantt/tsconfig.json +12 -0
- package/examples/typescript/gantt/webpack.config.js +45 -0
- package/examples/typescript/gantt-multilevel/README.md +6 -0
- package/examples/typescript/gantt-multilevel/index.css +11 -0
- package/examples/typescript/gantt-multilevel/index.html +12 -0
- package/examples/typescript/gantt-multilevel/index.ts +90 -0
- package/examples/typescript/gantt-multilevel/package.json +18 -0
- package/examples/typescript/gantt-multilevel/tsconfig.json +12 -0
- package/examples/typescript/gantt-multilevel/webpack.config.js +45 -0
- package/examples/typescript/gantt-simple/README.md +6 -0
- package/examples/typescript/gantt-simple/index.css +11 -0
- package/examples/typescript/gantt-simple/index.html +12 -0
- package/examples/typescript/gantt-simple/index.ts +90 -0
- package/examples/typescript/gantt-simple/package.json +18 -0
- package/examples/typescript/gantt-simple/tsconfig.json +12 -0
- package/examples/typescript/gantt-simple/webpack.config.js +45 -0
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/hierarchy-voronoi-treemap/package.json +1 -1
- package/examples/typescript/jest/package.json +1 -1
- package/examples/typescript/json-pie/package.json +1 -1
- package/examples/typescript/json-xy/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-clustered-points/package.json +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/stock-chart/index.ts +2 -0
- package/examples/typescript/stock-chart/package.json +1 -1
- package/examples/typescript/stock-chart-comparing-stocks/index.ts +2 -0
- package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/typescript/stock-chart-data-granularity/index.ts +2 -0
- package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
- package/examples/typescript/stock-chart-data-grouping/index.ts +2 -0
- package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
- package/examples/typescript/stock-chart-intraday/index.ts +2 -0
- package/examples/typescript/stock-chart-intraday/package.json +1 -1
- package/examples/typescript/stock-chart-live/index.ts +1 -0
- package/examples/typescript/stock-chart-live/package.json +1 -1
- package/examples/typescript/stock-chart-volume-separate-panel/index.ts +2 -0
- package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/typescript/timeline-horizontal-serpentine-chart/package.json +1 -1
- package/examples/typescript/timeline-linear-process-diagram/package.json +1 -1
- package/examples/typescript/timeline-serpentine-chart/package.json +1 -1
- package/examples/typescript/timeline-spiral-chart/package.json +1 -1
- package/examples/typescript/venn-diagram/package.json +1 -1
- package/examples/typescript/wordcloud-with-data/package.json +1 -1
- package/examples/typescript/wordcloud-with-text/package.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-candlestick/index.ts +1 -0
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/gantt.d.ts +9 -0
- package/gantt.d.ts.map +1 -0
- package/gantt.js +9 -0
- package/gantt.js.map +1 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -1
- package/index.js +5 -0
- package/index.js.map +1 -1
- package/locales/ar.d.ts +4 -0
- package/locales/ar.d.ts.map +1 -1
- package/locales/ar.js +5 -0
- package/locales/ar.js.map +1 -1
- package/locales/bg_BG.d.ts +2 -0
- package/locales/bg_BG.d.ts.map +1 -1
- package/locales/bg_BG.js +3 -1
- package/locales/bg_BG.js.map +1 -1
- package/locales/bs_BA.d.ts +4 -0
- package/locales/bs_BA.d.ts.map +1 -1
- package/locales/bs_BA.js +5 -0
- package/locales/bs_BA.js.map +1 -1
- package/locales/ca_ES.d.ts +4 -0
- package/locales/ca_ES.d.ts.map +1 -1
- package/locales/ca_ES.js +5 -0
- package/locales/ca_ES.js.map +1 -1
- package/locales/cs_CZ.d.ts +4 -0
- package/locales/cs_CZ.d.ts.map +1 -1
- package/locales/cs_CZ.js +5 -0
- package/locales/cs_CZ.js.map +1 -1
- package/locales/da_DK.d.ts +4 -0
- package/locales/da_DK.d.ts.map +1 -1
- package/locales/da_DK.js +5 -0
- package/locales/da_DK.js.map +1 -1
- package/locales/de_CH.d.ts +4 -0
- package/locales/de_CH.d.ts.map +1 -1
- package/locales/de_CH.js +5 -0
- package/locales/de_CH.js.map +1 -1
- package/locales/de_DE.d.ts +4 -0
- package/locales/de_DE.d.ts.map +1 -1
- package/locales/de_DE.js +5 -0
- package/locales/de_DE.js.map +1 -1
- package/locales/el_GR.d.ts +4 -0
- package/locales/el_GR.d.ts.map +1 -1
- package/locales/el_GR.js +5 -0
- package/locales/el_GR.js.map +1 -1
- package/locales/en.d.ts +2 -0
- package/locales/en.d.ts.map +1 -1
- package/locales/en.js +3 -1
- package/locales/en.js.map +1 -1
- package/locales/en_CA.d.ts +4 -0
- package/locales/en_CA.d.ts.map +1 -1
- package/locales/en_CA.js +5 -0
- package/locales/en_CA.js.map +1 -1
- package/locales/en_US.d.ts +4 -0
- package/locales/en_US.d.ts.map +1 -1
- package/locales/en_US.js +5 -0
- package/locales/en_US.js.map +1 -1
- package/locales/es_ES.d.ts +4 -0
- package/locales/es_ES.d.ts.map +1 -1
- package/locales/es_ES.js +6 -1
- package/locales/es_ES.js.map +1 -1
- package/locales/et_EE.d.ts +4 -0
- package/locales/et_EE.d.ts.map +1 -1
- package/locales/et_EE.js +5 -0
- package/locales/et_EE.js.map +1 -1
- package/locales/fi_FI.d.ts +4 -0
- package/locales/fi_FI.d.ts.map +1 -1
- package/locales/fi_FI.js +5 -0
- package/locales/fi_FI.js.map +1 -1
- package/locales/fo_FO.d.ts +2 -0
- package/locales/fo_FO.d.ts.map +1 -1
- package/locales/fo_FO.js +3 -1
- package/locales/fo_FO.js.map +1 -1
- package/locales/fr_FR.d.ts +4 -0
- package/locales/fr_FR.d.ts.map +1 -1
- package/locales/fr_FR.js +5 -0
- package/locales/fr_FR.js.map +1 -1
- package/locales/he_IL.d.ts +4 -0
- package/locales/he_IL.d.ts.map +1 -1
- package/locales/he_IL.js +5 -0
- package/locales/he_IL.js.map +1 -1
- package/locales/hi_IN.d.ts +4 -0
- package/locales/hi_IN.d.ts.map +1 -1
- package/locales/hi_IN.js +5 -0
- package/locales/hi_IN.js.map +1 -1
- package/locales/hr_HR.d.ts +4 -0
- package/locales/hr_HR.d.ts.map +1 -1
- package/locales/hr_HR.js +5 -0
- package/locales/hr_HR.js.map +1 -1
- package/locales/hu_HU.d.ts +4 -0
- package/locales/hu_HU.d.ts.map +1 -1
- package/locales/hu_HU.js +5 -0
- package/locales/hu_HU.js.map +1 -1
- package/locales/id_ID.d.ts +4 -0
- package/locales/id_ID.d.ts.map +1 -1
- package/locales/id_ID.js +5 -0
- package/locales/id_ID.js.map +1 -1
- package/locales/it_IT.d.ts +4 -0
- package/locales/it_IT.d.ts.map +1 -1
- package/locales/it_IT.js +5 -0
- package/locales/it_IT.js.map +1 -1
- package/locales/ja_JP.d.ts +4 -0
- package/locales/ja_JP.d.ts.map +1 -1
- package/locales/ja_JP.js +5 -0
- package/locales/ja_JP.js.map +1 -1
- package/locales/ko_KR.d.ts +4 -0
- package/locales/ko_KR.d.ts.map +1 -1
- package/locales/ko_KR.js +5 -0
- package/locales/ko_KR.js.map +1 -1
- package/locales/lt_LT.d.ts +4 -0
- package/locales/lt_LT.d.ts.map +1 -1
- package/locales/lt_LT.js +5 -0
- package/locales/lt_LT.js.map +1 -1
- package/locales/lv_LV.d.ts +4 -0
- package/locales/lv_LV.d.ts.map +1 -1
- package/locales/lv_LV.js +5 -0
- package/locales/lv_LV.js.map +1 -1
- package/locales/nb_NO.d.ts +4 -0
- package/locales/nb_NO.d.ts.map +1 -1
- package/locales/nb_NO.js +5 -0
- package/locales/nb_NO.js.map +1 -1
- package/locales/nl_NL.d.ts +4 -0
- package/locales/nl_NL.d.ts.map +1 -1
- package/locales/nl_NL.js +5 -0
- package/locales/nl_NL.js.map +1 -1
- package/locales/pl_PL.d.ts +4 -0
- package/locales/pl_PL.d.ts.map +1 -1
- package/locales/pl_PL.js +5 -0
- package/locales/pl_PL.js.map +1 -1
- package/locales/pt_BR.d.ts +4 -0
- package/locales/pt_BR.d.ts.map +1 -1
- package/locales/pt_BR.js +5 -0
- package/locales/pt_BR.js.map +1 -1
- package/locales/pt_PT.d.ts +4 -0
- package/locales/pt_PT.d.ts.map +1 -1
- package/locales/pt_PT.js +5 -0
- package/locales/pt_PT.js.map +1 -1
- package/locales/ro_RO.d.ts +4 -0
- package/locales/ro_RO.d.ts.map +1 -1
- package/locales/ro_RO.js +5 -0
- package/locales/ro_RO.js.map +1 -1
- package/locales/ru_RU.d.ts +4 -0
- package/locales/ru_RU.d.ts.map +1 -1
- package/locales/ru_RU.js +5 -0
- package/locales/ru_RU.js.map +1 -1
- package/locales/sk_SK.d.ts +4 -0
- package/locales/sk_SK.d.ts.map +1 -1
- package/locales/sk_SK.js +5 -0
- package/locales/sk_SK.js.map +1 -1
- package/locales/sl_SL.d.ts +4 -0
- package/locales/sl_SL.d.ts.map +1 -1
- package/locales/sl_SL.js +5 -0
- package/locales/sl_SL.js.map +1 -1
- package/locales/sr_RS.d.ts +4 -0
- package/locales/sr_RS.d.ts.map +1 -1
- package/locales/sr_RS.js +5 -0
- package/locales/sr_RS.js.map +1 -1
- package/locales/sv_SE.d.ts +4 -0
- package/locales/sv_SE.d.ts.map +1 -1
- package/locales/sv_SE.js +5 -0
- package/locales/sv_SE.js.map +1 -1
- package/locales/th_TH.d.ts +4 -0
- package/locales/th_TH.d.ts.map +1 -1
- package/locales/th_TH.js +5 -0
- package/locales/th_TH.js.map +1 -1
- package/locales/tr_TR.d.ts +4 -0
- package/locales/tr_TR.d.ts.map +1 -1
- package/locales/tr_TR.js +5 -0
- package/locales/tr_TR.js.map +1 -1
- package/locales/uk_UA.d.ts +4 -0
- package/locales/uk_UA.d.ts.map +1 -1
- package/locales/uk_UA.js +5 -0
- package/locales/uk_UA.js.map +1 -1
- package/locales/vi_VN.d.ts +4 -0
- package/locales/vi_VN.d.ts.map +1 -1
- package/locales/vi_VN.js +5 -0
- package/locales/vi_VN.js.map +1 -1
- package/locales/zh_Hans.d.ts +4 -0
- package/locales/zh_Hans.d.ts.map +1 -1
- package/locales/zh_Hans.js +5 -0
- package/locales/zh_Hans.js.map +1 -1
- package/locales/zh_Hant.d.ts +4 -0
- package/locales/zh_Hant.d.ts.map +1 -1
- package/locales/zh_Hant.js +5 -0
- package/locales/zh_Hant.js.map +1 -1
- package/package.json +1 -1
- package/plugins/colorPicker.d.ts +3 -0
- package/plugins/colorPicker.d.ts.map +1 -0
- package/plugins/colorPicker.js +3 -0
- package/plugins/colorPicker.js.map +1 -0
- package/xy.d.ts +1 -0
- package/xy.d.ts.map +1 -1
- package/xy.js +1 -0
- package/xy.js.map +1 -1
|
@@ -0,0 +1,769 @@
|
|
|
1
|
+
import { Theme } from "../../core/Theme";
|
|
2
|
+
import { p50, p100, percent } from "../../core/util/Percent";
|
|
3
|
+
import { LinePattern } from "../../core/render/patterns/LinePattern";
|
|
4
|
+
import { setColor } from "../../themes/DefaultTheme";
|
|
5
|
+
import { color, ColorSet } from "../../..";
|
|
6
|
+
import * as $time from "../../core/util/Time";
|
|
7
|
+
/**
|
|
8
|
+
* @ignore
|
|
9
|
+
*/
|
|
10
|
+
export class GanttDefaultTheme extends Theme {
|
|
11
|
+
setupDefaultRules() {
|
|
12
|
+
super.setupDefaultRules();
|
|
13
|
+
const l = this._root.language;
|
|
14
|
+
const ic = this._root.interfaceColors;
|
|
15
|
+
const r = this.rule.bind(this);
|
|
16
|
+
const defaultDateFormat = l.translate("_date_day_full");
|
|
17
|
+
r("Gantt").setAll({
|
|
18
|
+
editable: true,
|
|
19
|
+
layout: this._root.verticalLayout,
|
|
20
|
+
colors: ColorSet.new(this._root, {}),
|
|
21
|
+
snapThreshold: 0.5,
|
|
22
|
+
linkNewTasks: true,
|
|
23
|
+
durationUnit: "day",
|
|
24
|
+
sidebarWidth: percent(30),
|
|
25
|
+
weekends: [0, 6],
|
|
26
|
+
width: p100,
|
|
27
|
+
height: p100,
|
|
28
|
+
gridIntervals: {
|
|
29
|
+
year: [
|
|
30
|
+
{ timeUnit: "week", count: 1 },
|
|
31
|
+
{ timeUnit: "month", count: 1 },
|
|
32
|
+
{ timeUnit: "month", count: 2 },
|
|
33
|
+
{ timeUnit: "month", count: 6 }
|
|
34
|
+
],
|
|
35
|
+
month: [
|
|
36
|
+
{ timeUnit: "week", count: 1 },
|
|
37
|
+
{ timeUnit: "week", count: 2 }
|
|
38
|
+
],
|
|
39
|
+
week: [
|
|
40
|
+
{ timeUnit: "day", count: 1 }
|
|
41
|
+
],
|
|
42
|
+
day: [
|
|
43
|
+
{ timeUnit: "hour", count: 1 },
|
|
44
|
+
{ timeUnit: "hour", count: 3 },
|
|
45
|
+
{ timeUnit: "hour", count: 6 },
|
|
46
|
+
{ timeUnit: "hour", count: 12 }
|
|
47
|
+
],
|
|
48
|
+
hour: [
|
|
49
|
+
{ timeUnit: "minute", count: 1 },
|
|
50
|
+
{ timeUnit: "minute", count: 5 },
|
|
51
|
+
{ timeUnit: "minute", count: 15 },
|
|
52
|
+
{ timeUnit: "minute", count: 30 }
|
|
53
|
+
],
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
// Zoom Controls
|
|
57
|
+
r("Container", ["zoomcontrols"]).setAll({
|
|
58
|
+
x: percent(100),
|
|
59
|
+
centerX: percent(100),
|
|
60
|
+
y: 10,
|
|
61
|
+
layout: this._root.verticalLayout,
|
|
62
|
+
});
|
|
63
|
+
r("XYChart", ["gantt"]).setAll({
|
|
64
|
+
panX: true,
|
|
65
|
+
panY: true,
|
|
66
|
+
paddingRight: 0,
|
|
67
|
+
wheelY: "panY"
|
|
68
|
+
});
|
|
69
|
+
// vertical line between axis and plot area, resizable
|
|
70
|
+
{
|
|
71
|
+
const rule = r("Rectangle", ["axisresizer"]);
|
|
72
|
+
rule.setAll({
|
|
73
|
+
width: 12,
|
|
74
|
+
height: p100,
|
|
75
|
+
fillOpacity: 0.05,
|
|
76
|
+
fill: ic.get("alternativeBackground"),
|
|
77
|
+
cursorOverStyle: "col-resize",
|
|
78
|
+
interactive: true
|
|
79
|
+
});
|
|
80
|
+
rule.states.create("hover", { fillOpacity: 0.1 });
|
|
81
|
+
}
|
|
82
|
+
// Editable label
|
|
83
|
+
r("EditableLabel", ["axis"]).setAll({
|
|
84
|
+
paddingBottom: 3,
|
|
85
|
+
paddingTop: 3,
|
|
86
|
+
paddingLeft: 5,
|
|
87
|
+
paddingRight: 5,
|
|
88
|
+
cursorOverStyle: "text"
|
|
89
|
+
});
|
|
90
|
+
// Axes
|
|
91
|
+
// category axis
|
|
92
|
+
r("GanttCategoryAxis").setAll({
|
|
93
|
+
maxDeviation: 0,
|
|
94
|
+
zoomOut: false,
|
|
95
|
+
childShift: 25,
|
|
96
|
+
childCellSize: 0.8,
|
|
97
|
+
minCellHeight: 70
|
|
98
|
+
});
|
|
99
|
+
r("GanttCategoryAxisRenderer").setAll({
|
|
100
|
+
inversed: true,
|
|
101
|
+
minGridDistance: 10
|
|
102
|
+
});
|
|
103
|
+
// date axis
|
|
104
|
+
// upper
|
|
105
|
+
r("GanttDateAxis").setAll({
|
|
106
|
+
maxZoomFactor: 10000000,
|
|
107
|
+
extraMax: 0.03,
|
|
108
|
+
extraMin: 0.02,
|
|
109
|
+
autoZoom: false,
|
|
110
|
+
//strictMinMaxSelection: false,
|
|
111
|
+
//strictMinMax: false,
|
|
112
|
+
markUnitChange: false,
|
|
113
|
+
weekLabelLocation: 0.5,
|
|
114
|
+
cursorOverStyle: "pointer",
|
|
115
|
+
gridIntervals: [
|
|
116
|
+
{ timeUnit: "hour", count: 1 },
|
|
117
|
+
{ timeUnit: "day", count: 1 },
|
|
118
|
+
{ timeUnit: "week", count: 1 },
|
|
119
|
+
{ timeUnit: "month", count: 1 },
|
|
120
|
+
{ timeUnit: "year", count: 1 },
|
|
121
|
+
{ timeUnit: "year", count: 2 },
|
|
122
|
+
{ timeUnit: "year", count: 5 },
|
|
123
|
+
{ timeUnit: "year", count: 10 }
|
|
124
|
+
],
|
|
125
|
+
dateFormats: {
|
|
126
|
+
hour: l.translate("_date_hour_full"),
|
|
127
|
+
day: l.translate("_date_day"),
|
|
128
|
+
week: defaultDateFormat,
|
|
129
|
+
month: l.translate("_date_month_full"),
|
|
130
|
+
year: l.translate("_date_year")
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
// minor
|
|
134
|
+
r("GanttDateAxis", ["minor"]).setAll({
|
|
135
|
+
dateFormats: {
|
|
136
|
+
millisecond: "SSS",
|
|
137
|
+
second: "ss",
|
|
138
|
+
minute: "mm",
|
|
139
|
+
hour: l.translate("_date_hour_short"),
|
|
140
|
+
day: "EEEEE",
|
|
141
|
+
week: l.translate("_date_day"),
|
|
142
|
+
month: l.translate("_date_month"),
|
|
143
|
+
year: l.translate("_date_year")
|
|
144
|
+
},
|
|
145
|
+
fillRule: (dataItem) => {
|
|
146
|
+
var _a;
|
|
147
|
+
const axisFill = dataItem.get("axisFill");
|
|
148
|
+
if (axisFill) {
|
|
149
|
+
const axis = dataItem.component;
|
|
150
|
+
const value = dataItem.get("value", 0);
|
|
151
|
+
const endValue = dataItem.get("endValue", 0);
|
|
152
|
+
const baseInterval = axis.getPrivate("baseInterval");
|
|
153
|
+
const gridInterval = axis.getPrivate("gridInterval", baseInterval);
|
|
154
|
+
const weekends = (_a = axis.gantt) === null || _a === void 0 ? void 0 : _a.get("weekends", [0, 6]);
|
|
155
|
+
axisFill.set("visible", false);
|
|
156
|
+
if (gridInterval.timeUnit == "day") {
|
|
157
|
+
let weekDay = new Date(value).getDay();
|
|
158
|
+
const duration = endValue - value;
|
|
159
|
+
const dayDuration = $time.getDuration("day", 1);
|
|
160
|
+
if (weekends && weekends.indexOf(weekDay) != -1 && (duration >= dayDuration * 0.9 && duration <= dayDuration * 1.1)) {
|
|
161
|
+
axisFill.set("visible", true);
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
axisFill.set("visible", false);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
r("GanttDateAxisRenderer").setAll({
|
|
171
|
+
minGridDistance: 150,
|
|
172
|
+
opposite: true
|
|
173
|
+
});
|
|
174
|
+
r("GanttDateAxisRenderer", ["minor"]).setAll({
|
|
175
|
+
minGridDistance: 50,
|
|
176
|
+
opposite: true
|
|
177
|
+
});
|
|
178
|
+
// Grid
|
|
179
|
+
r("Grid", ["cursor", "x"]).setAll({
|
|
180
|
+
forceHidden: true
|
|
181
|
+
});
|
|
182
|
+
r("Grid", ["cursor", "y"]).setAll({
|
|
183
|
+
forceHidden: true
|
|
184
|
+
});
|
|
185
|
+
r("Grid", ["range"]).setAll({
|
|
186
|
+
stroke: ic.get("negative"),
|
|
187
|
+
strokeOpacity: 1,
|
|
188
|
+
strokeWidth: 2,
|
|
189
|
+
strokeDasharray: [4, 2]
|
|
190
|
+
});
|
|
191
|
+
// Axis labels
|
|
192
|
+
// X axis labels
|
|
193
|
+
r("AxisLabel", ["x"]).setAll({
|
|
194
|
+
paddingBottom: 15,
|
|
195
|
+
multiLocation: 0.5
|
|
196
|
+
});
|
|
197
|
+
// Y axis labels (Tasks, editable)
|
|
198
|
+
r("EditableAxisLabel").setAll({
|
|
199
|
+
y: p50,
|
|
200
|
+
populateText: true,
|
|
201
|
+
text: "{name}",
|
|
202
|
+
centerY: p50,
|
|
203
|
+
oversizedBehavior: "truncate",
|
|
204
|
+
marginRight: 10
|
|
205
|
+
});
|
|
206
|
+
// Ticks
|
|
207
|
+
// X axis
|
|
208
|
+
r("AxisTick", ["gantt", "renderer", "x"]).setAll({
|
|
209
|
+
strokeOpacity: .1,
|
|
210
|
+
visible: true,
|
|
211
|
+
location: 1,
|
|
212
|
+
length: 29
|
|
213
|
+
});
|
|
214
|
+
// hover state
|
|
215
|
+
r("AxisTick", ["gantt", "axis", "y"]).states.create("hover", {
|
|
216
|
+
stroke: ic.get("primaryButton"),
|
|
217
|
+
strokeOpacity: 1,
|
|
218
|
+
strokeWidth: 3
|
|
219
|
+
});
|
|
220
|
+
// Y axis
|
|
221
|
+
r("AxisTick", ["gantt", "renderer", "y"]).setAll({
|
|
222
|
+
strokeOpacity: .1,
|
|
223
|
+
visible: true,
|
|
224
|
+
location: 1
|
|
225
|
+
});
|
|
226
|
+
// Grid
|
|
227
|
+
// X axis
|
|
228
|
+
r("Grid", ["gantt", "renderer", "x"]).setAll({
|
|
229
|
+
forceHidden: true
|
|
230
|
+
});
|
|
231
|
+
// minor X axis
|
|
232
|
+
{
|
|
233
|
+
const rule = r("Grid", ["gantt", "renderer", "x", "minor"]);
|
|
234
|
+
rule.setAll({
|
|
235
|
+
forceHidden: false,
|
|
236
|
+
location: 1
|
|
237
|
+
});
|
|
238
|
+
rule.states.create("hover", {
|
|
239
|
+
stroke: ic.get("primaryButton"),
|
|
240
|
+
strokeOpacity: 1,
|
|
241
|
+
strokeWidth: 2
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
// Y axis
|
|
245
|
+
r("Grid", ["gantt", "renderer", "y"]).setAll({
|
|
246
|
+
location: 1
|
|
247
|
+
});
|
|
248
|
+
// Y axis labels
|
|
249
|
+
// container which holds all elements
|
|
250
|
+
r("Container", ["axislabelcontainer"]).setAll({
|
|
251
|
+
minWidth: 150,
|
|
252
|
+
draggable: true
|
|
253
|
+
});
|
|
254
|
+
// main background of the label container
|
|
255
|
+
r("Rectangle", ["axislabelcontainer", "background"]).setAll({
|
|
256
|
+
fill: ic.get("alternativeBackground"),
|
|
257
|
+
fillOpacity: 0,
|
|
258
|
+
interactive: true
|
|
259
|
+
});
|
|
260
|
+
// hover state
|
|
261
|
+
r("Rectangle", ["axislabelcontainer", "background"]).states.create("hover", {
|
|
262
|
+
fillOpacity: 0.05
|
|
263
|
+
});
|
|
264
|
+
// active state
|
|
265
|
+
r("Rectangle", ["axislabelcontainer", "background"]).states.create("active", {
|
|
266
|
+
fillOpacity: 0.07
|
|
267
|
+
});
|
|
268
|
+
// label itself
|
|
269
|
+
r("EditableLabel", ["categorylabel"]).setAll({
|
|
270
|
+
minWidth: 100,
|
|
271
|
+
multiLine: false
|
|
272
|
+
});
|
|
273
|
+
// container which holds numeric stepper, progress pie
|
|
274
|
+
r("Container", ["axislabelcontrols"]).setAll({
|
|
275
|
+
height: p100,
|
|
276
|
+
layout: this._root.horizontalLayout
|
|
277
|
+
});
|
|
278
|
+
// grip for dragging (left to the label)
|
|
279
|
+
r("Rectangle", ["gantt", "grip", "axislabel"]).setAll({
|
|
280
|
+
width: 18,
|
|
281
|
+
height: 25,
|
|
282
|
+
cursorOverStyle: "ns-resize",
|
|
283
|
+
interactive: true,
|
|
284
|
+
centerY: p50,
|
|
285
|
+
y: p50,
|
|
286
|
+
fillPattern: LinePattern.new(this._root, {
|
|
287
|
+
color: ic.get("alternativeBackground"),
|
|
288
|
+
colorOpacity: 0.2,
|
|
289
|
+
rotation: 0,
|
|
290
|
+
gap: 3
|
|
291
|
+
})
|
|
292
|
+
});
|
|
293
|
+
// Progress pie
|
|
294
|
+
r("ProgressPie").setAll({
|
|
295
|
+
y: p50,
|
|
296
|
+
centerY: 0,
|
|
297
|
+
width: 32,
|
|
298
|
+
height: 32,
|
|
299
|
+
marginLeft: 15,
|
|
300
|
+
cursorOverStyle: "pointer"
|
|
301
|
+
});
|
|
302
|
+
// Numeric stepper for changing duration
|
|
303
|
+
r("NumericStepper").setAll({
|
|
304
|
+
y: p50,
|
|
305
|
+
centerY: p50
|
|
306
|
+
});
|
|
307
|
+
// Series
|
|
308
|
+
r("GanttSeries").setAll({
|
|
309
|
+
linkHorizontalOffset: 25,
|
|
310
|
+
snapCount: 1,
|
|
311
|
+
exactLocationX: true
|
|
312
|
+
});
|
|
313
|
+
// Columns (tasks)
|
|
314
|
+
r("RoundedRectangle", ["series", "column", "gantt"]).setAll({
|
|
315
|
+
maxHeight: 60,
|
|
316
|
+
draggable: true,
|
|
317
|
+
cornerRadiusBL: 5,
|
|
318
|
+
cornerRadiusTL: 5,
|
|
319
|
+
cornerRadiusBR: 5,
|
|
320
|
+
cornerRadiusTR: 5,
|
|
321
|
+
fillOpacity: .8,
|
|
322
|
+
strokeWidth: 2,
|
|
323
|
+
tooltipY: 0,
|
|
324
|
+
tooltipText: "{name}: {openValueX.formatDate('" + defaultDateFormat + "')} - {valueX.formatDate('" + defaultDateFormat + "')}"
|
|
325
|
+
});
|
|
326
|
+
// hover state of the column
|
|
327
|
+
r("RoundedRectangle", ["column", "series", "gantt"]).states.create("hover", {
|
|
328
|
+
strokeWidth: 3,
|
|
329
|
+
cornerRadiusBL: 0,
|
|
330
|
+
cornerRadiusTL: 0,
|
|
331
|
+
cornerRadiusBR: 0,
|
|
332
|
+
cornerRadiusTR: 0,
|
|
333
|
+
fillOpacity: 1
|
|
334
|
+
});
|
|
335
|
+
// disabled state of the column (used to show inactive tasks while drawing new link)
|
|
336
|
+
r("RoundedRectangle", ["column", "series", "gantt"]).states.create("disabled", {
|
|
337
|
+
opacity: 0.2,
|
|
338
|
+
forceInactive: true
|
|
339
|
+
});
|
|
340
|
+
// hidden state of the column
|
|
341
|
+
r("RoundedRectangle", ["series", "column", "gantt"]).states.create("hidden", {
|
|
342
|
+
opacity: 0,
|
|
343
|
+
visible: false,
|
|
344
|
+
strokeOpacity: 0
|
|
345
|
+
});
|
|
346
|
+
// container which holds column and all related elements (grips, bullets)
|
|
347
|
+
r("Container", ["columncontainer"]).states.create("disabled", {
|
|
348
|
+
opacity: 0.2,
|
|
349
|
+
forceInactive: true
|
|
350
|
+
});
|
|
351
|
+
// container which holds grips and progress fill
|
|
352
|
+
r("Container", ["maskedcontainer"]).setAll({
|
|
353
|
+
position: "absolute"
|
|
354
|
+
});
|
|
355
|
+
// zero duration rectangle
|
|
356
|
+
r("RoundedRectangle", ["zerorectangle"]).setAll({
|
|
357
|
+
draggable: true,
|
|
358
|
+
cornerRadiusBL: 2,
|
|
359
|
+
cornerRadiusTL: 2,
|
|
360
|
+
cornerRadiusBR: 2,
|
|
361
|
+
cornerRadiusTR: 2,
|
|
362
|
+
strokeWidth: 2,
|
|
363
|
+
rotation: 45,
|
|
364
|
+
fillOpacity: .8,
|
|
365
|
+
centerX: p50,
|
|
366
|
+
centerY: p50,
|
|
367
|
+
y: p50,
|
|
368
|
+
tooltipText: "{name}: {openValueX.formatDate('" + defaultDateFormat + "')}"
|
|
369
|
+
});
|
|
370
|
+
// hover state of zero duration rectangle
|
|
371
|
+
r("RoundedRectangle", ["zerorectangle"]).states.create("disabled", {
|
|
372
|
+
opacity: 0.5,
|
|
373
|
+
forceInactive: true
|
|
374
|
+
});
|
|
375
|
+
// round bullet at the start of the column
|
|
376
|
+
r("Circle", ["connectorbullet", "start", "gantt"]).setAll({
|
|
377
|
+
strokeWidth: 2,
|
|
378
|
+
strokeOpacity: 1,
|
|
379
|
+
radius: 8,
|
|
380
|
+
y: p50,
|
|
381
|
+
fill: ic.get("background"),
|
|
382
|
+
stroke: ic.get("alternativeBackground"),
|
|
383
|
+
fillOpacity: 1,
|
|
384
|
+
cursorOverStyle: "pointer",
|
|
385
|
+
role: "figure",
|
|
386
|
+
interactive: true,
|
|
387
|
+
visible: false
|
|
388
|
+
});
|
|
389
|
+
// round bullet at the end of the column
|
|
390
|
+
r("Circle", ["connectorbullet", "end", "gantt"]).setAll({
|
|
391
|
+
strokeWidth: 2,
|
|
392
|
+
strokeOpacity: 1,
|
|
393
|
+
radius: 8,
|
|
394
|
+
y: p50,
|
|
395
|
+
fill: ic.get("background"),
|
|
396
|
+
stroke: ic.get("alternativeBackground"),
|
|
397
|
+
fillOpacity: 1,
|
|
398
|
+
cursorOverStyle: "pointer",
|
|
399
|
+
role: "figure",
|
|
400
|
+
interactive: true
|
|
401
|
+
});
|
|
402
|
+
// hover state for end bullet
|
|
403
|
+
r("Circle", ["connectorbullet", "gantt", "end"]).states.create("hover", {
|
|
404
|
+
scale: 1.2
|
|
405
|
+
});
|
|
406
|
+
// active hover state for end bullet
|
|
407
|
+
r("Circle", ["connectorbullet", "gantt", "end"]).states.create("activehover", {
|
|
408
|
+
scale: 1.2,
|
|
409
|
+
strokeWidth: 4
|
|
410
|
+
});
|
|
411
|
+
// progress rectangle (filled with pattern)
|
|
412
|
+
r("Rectangle", ["progressrectangle", "gantt"]).setAll({
|
|
413
|
+
forceInactive: true,
|
|
414
|
+
width: 1,
|
|
415
|
+
fill: ic.get("background"),
|
|
416
|
+
fillOpacity: 0.2,
|
|
417
|
+
strokeOpacity: 0,
|
|
418
|
+
fillPattern: LinePattern.new(this._root, {
|
|
419
|
+
width: 3000,
|
|
420
|
+
height: 100,
|
|
421
|
+
angle: -45,
|
|
422
|
+
gap: 4,
|
|
423
|
+
color: ic.get("background")
|
|
424
|
+
})
|
|
425
|
+
});
|
|
426
|
+
// grip for adjusting progress
|
|
427
|
+
r("Triangle", ["progressgrip", "gantt"]).setAll({
|
|
428
|
+
draggable: true,
|
|
429
|
+
cursorOverStyle: "ew-resize",
|
|
430
|
+
width: 22,
|
|
431
|
+
height: 11,
|
|
432
|
+
fill: ic.get("background"),
|
|
433
|
+
stroke: ic.get("background"),
|
|
434
|
+
strokeOpacity: 0,
|
|
435
|
+
fillOpacity: 1,
|
|
436
|
+
y: p100,
|
|
437
|
+
centerY: p100
|
|
438
|
+
});
|
|
439
|
+
// grip for resizing column - start (the dashed vertical one)
|
|
440
|
+
r("Rectangle", ["resizegrip", "start", "gantt"]).setAll({
|
|
441
|
+
width: 9,
|
|
442
|
+
centerX: 19,
|
|
443
|
+
fill: ic.get("background"),
|
|
444
|
+
stroke: ic.get("alternativeBackground"),
|
|
445
|
+
fillPattern: LinePattern.new(this._root, {
|
|
446
|
+
color: ic.get("alternativeBackground"),
|
|
447
|
+
colorOpacity: 0.2,
|
|
448
|
+
rotation: 90,
|
|
449
|
+
gap: 2
|
|
450
|
+
}),
|
|
451
|
+
draggable: true,
|
|
452
|
+
fillOpacity: 0,
|
|
453
|
+
strokeOpacity: 0,
|
|
454
|
+
cursorOverStyle: "ew-resize"
|
|
455
|
+
});
|
|
456
|
+
// grip for resizing column - end (the dashed vertical one)
|
|
457
|
+
r("Rectangle", ["resizegrip", "end", "gantt"]).setAll({
|
|
458
|
+
width: 9,
|
|
459
|
+
centerX: -10,
|
|
460
|
+
fill: ic.get("background"),
|
|
461
|
+
stroke: ic.get("alternativeBackground"),
|
|
462
|
+
fillPattern: LinePattern.new(this._root, {
|
|
463
|
+
color: ic.get("alternativeBackground"),
|
|
464
|
+
colorOpacity: 0.2,
|
|
465
|
+
rotation: 90,
|
|
466
|
+
gap: 2
|
|
467
|
+
}),
|
|
468
|
+
draggable: true,
|
|
469
|
+
fillOpacity: 0,
|
|
470
|
+
strokeOpacity: 0,
|
|
471
|
+
cursorOverStyle: "ew-resize"
|
|
472
|
+
});
|
|
473
|
+
// Line shown while drawing a new link
|
|
474
|
+
r("Line", ["connectorline", "gantt"]).setAll({
|
|
475
|
+
strokeWidth: 1,
|
|
476
|
+
strokeDasharray: [2, 2],
|
|
477
|
+
strokeOpacity: 1,
|
|
478
|
+
stroke: ic.get("alternativeBackground"),
|
|
479
|
+
});
|
|
480
|
+
// Arrow shown at the end of the link being drawn
|
|
481
|
+
r("Triangle", ["connectorarrow", "gantt"]).setAll({
|
|
482
|
+
width: 10,
|
|
483
|
+
height: 10,
|
|
484
|
+
fill: ic.get("alternativeBackground"),
|
|
485
|
+
stroke: ic.get("alternativeBackground"),
|
|
486
|
+
rotation: 90,
|
|
487
|
+
centerX: p50,
|
|
488
|
+
centerY: p50,
|
|
489
|
+
fillOpacity: 1,
|
|
490
|
+
strokeOpacity: 1
|
|
491
|
+
});
|
|
492
|
+
// hide the arrow at the start of the link
|
|
493
|
+
r("Triangle", ["link", "start"]).setAll({
|
|
494
|
+
forceHidden: true
|
|
495
|
+
});
|
|
496
|
+
// Links
|
|
497
|
+
r("Link", ["gantt"]).setAll({
|
|
498
|
+
toggleKey: "active",
|
|
499
|
+
cursorOverStyle: "pointer"
|
|
500
|
+
});
|
|
501
|
+
// this is needed for the states to be propagated to the link children
|
|
502
|
+
r("Link", ["gantt"]).states.create("active", {});
|
|
503
|
+
// Buttons
|
|
504
|
+
{
|
|
505
|
+
const rule = r("Button", ["secondary"]);
|
|
506
|
+
rule.setAll({
|
|
507
|
+
height: 35,
|
|
508
|
+
marginLeft: 6,
|
|
509
|
+
tooltipX: percent(90)
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
{
|
|
513
|
+
const rule = r("Graphics", ["icon", "button", "fixedwidth"]);
|
|
514
|
+
rule.setAll({
|
|
515
|
+
x: p50,
|
|
516
|
+
centerX: p50
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
{
|
|
520
|
+
const rule = r("Button", ["fixedwidth"]);
|
|
521
|
+
rule.setAll({
|
|
522
|
+
width: 35
|
|
523
|
+
});
|
|
524
|
+
}
|
|
525
|
+
{
|
|
526
|
+
const rule = r("Button", ["zoombutton", "secondary"]);
|
|
527
|
+
rule.setAll({
|
|
528
|
+
height: 35,
|
|
529
|
+
width: 35,
|
|
530
|
+
y: undefined,
|
|
531
|
+
marginLeft: 0,
|
|
532
|
+
marginBottom: 6,
|
|
533
|
+
tooltipX: percent(10)
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
{
|
|
537
|
+
const rule = r("Graphics", ["icon", "button", "secondary"]);
|
|
538
|
+
rule.setAll({
|
|
539
|
+
centerY: p50,
|
|
540
|
+
y: p50
|
|
541
|
+
});
|
|
542
|
+
setColor(rule, "stroke", ic, "secondaryButtonText");
|
|
543
|
+
}
|
|
544
|
+
{
|
|
545
|
+
const rule = r("Graphics", ["icon", "button", "secondary"]);
|
|
546
|
+
rule.states.create("hover", {
|
|
547
|
+
stroke: ic.get("alternativeBackground")
|
|
548
|
+
});
|
|
549
|
+
rule.states.create("active", {
|
|
550
|
+
stroke: ic.get("alternativeBackground")
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
{
|
|
554
|
+
const rule = r("RoundedRectangle", ["background", "secondary", "button"]);
|
|
555
|
+
setColor(rule, "fill", ic, "background");
|
|
556
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
557
|
+
}
|
|
558
|
+
{
|
|
559
|
+
r("RoundedRectangle", ["background", "secondary", "button"]).states.create("hover", {
|
|
560
|
+
strokeOpacity: 1,
|
|
561
|
+
fillOpacity: 0.2,
|
|
562
|
+
fill: ic.get("secondaryButtonHover")
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
{
|
|
566
|
+
r("RoundedRectangle", ["background", "secondary", "button"]).states.create("active", {
|
|
567
|
+
strokeOpacity: 1,
|
|
568
|
+
fillOpacity: 0.2,
|
|
569
|
+
fill: ic.get("secondaryButtonActive")
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
{
|
|
573
|
+
const rule = r("RoundedRectangle", ["background", "secondary", "button"]).states.create("down", { stateAnimationDuration: 0 });
|
|
574
|
+
setColor(rule, "fill", ic, "secondaryButtonDown");
|
|
575
|
+
}
|
|
576
|
+
{
|
|
577
|
+
const rule = r("Graphics", ["icon", "secondary", "button"]);
|
|
578
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
579
|
+
}
|
|
580
|
+
// Task bullet button - shown at the left side of the task label, either triangle (if has children) or circle (if no children)
|
|
581
|
+
r("Button", ["taskbullet"]).setAll({
|
|
582
|
+
centerX: p50,
|
|
583
|
+
centerY: p50,
|
|
584
|
+
y: p50,
|
|
585
|
+
width: 30,
|
|
586
|
+
height: 30,
|
|
587
|
+
cursorOverStyle: "pointer"
|
|
588
|
+
});
|
|
589
|
+
r("Graphics", ["taskbullet", "icon"]).states.create("default", {
|
|
590
|
+
stateAnimationDuration: 0
|
|
591
|
+
});
|
|
592
|
+
// hover state for task bullet icon
|
|
593
|
+
r("Graphics", ["taskbullet", "icon"]).states.create("hover", {
|
|
594
|
+
fill: ic.get("secondaryButtonHover")
|
|
595
|
+
});
|
|
596
|
+
r("Graphics", ["taskbullet", "icon"]).states.create("active", {
|
|
597
|
+
fill: ic.get("secondaryButton"),
|
|
598
|
+
stateAnimationDuration: 0,
|
|
599
|
+
rotation: 90
|
|
600
|
+
});
|
|
601
|
+
r("Graphics", ["taskbullet", "icon"]).states.create("disabled", {
|
|
602
|
+
// draw circle
|
|
603
|
+
marginLeft: 3,
|
|
604
|
+
stateAnimationDuration: 0,
|
|
605
|
+
fill: ic.get("secondaryButton"),
|
|
606
|
+
draw: (display) => {
|
|
607
|
+
display.moveTo(0, 0);
|
|
608
|
+
display.arc(0, 0, 4, 0, 360, false);
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
r("RoundedRectangle", ["button", "taskbullet", "background"]).setAll({
|
|
612
|
+
opacity: 0
|
|
613
|
+
});
|
|
614
|
+
r("RoundedRectangle", ["button", "taskbullet", "background"]).states.create("default", {
|
|
615
|
+
opacity: 0
|
|
616
|
+
});
|
|
617
|
+
r("Button", ["taskbullet"]).states.create("disabled", {
|
|
618
|
+
stateAnimationDuration: 0
|
|
619
|
+
});
|
|
620
|
+
r("Graphics", ["taskbullet", "icon"]).setAll({
|
|
621
|
+
fill: ic.get("secondaryButton"),
|
|
622
|
+
stateAnimationDuration: 0,
|
|
623
|
+
strokeOpacity: 0,
|
|
624
|
+
y: p50,
|
|
625
|
+
// draw triangle that points left
|
|
626
|
+
draw: (display) => {
|
|
627
|
+
display.moveTo(-5, -8);
|
|
628
|
+
display.lineTo(4, 0);
|
|
629
|
+
display.lineTo(-5, 8);
|
|
630
|
+
display.lineTo(-5, -8);
|
|
631
|
+
display.closePath();
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
// end of task bullet
|
|
635
|
+
// add button
|
|
636
|
+
r("Button", ["add"]).setAll({
|
|
637
|
+
width: 35,
|
|
638
|
+
height: 35,
|
|
639
|
+
tooltipText: l.translateAny("Add task"),
|
|
640
|
+
tooltipX: percent(90)
|
|
641
|
+
});
|
|
642
|
+
r("RoundedRectangle", ["button", "add", "background"]).setAll({
|
|
643
|
+
stroke: ic.get("primaryButton"),
|
|
644
|
+
strokeWidth: 0,
|
|
645
|
+
});
|
|
646
|
+
// edit button
|
|
647
|
+
r("Button", ["edit"]).setAll({
|
|
648
|
+
visible: false,
|
|
649
|
+
tooltipText: l.translateAny("Edit mode"),
|
|
650
|
+
toggleKey: "active"
|
|
651
|
+
});
|
|
652
|
+
{
|
|
653
|
+
const rule = r("Graphics", ["icon", "edit", "button"]);
|
|
654
|
+
rule.setAll({
|
|
655
|
+
svgPath: "M 10.1 -1.3 L 16.1 5.3 L 7.9 14.4 L 1.9 14.4 L 1.9 7.8 L 10.1 -1.3 M 8.2 0.8 L 14.2 7.4 M 1.9 12.7 L 3.5 14.4 M 6.7 11.6 L 12.3 5.3 M 4.5 9.2 L 10.1 2.9 M 1.9 7.8 L 4.5 9.2 L 5.1 11.3 L 6.7 11.6 L 7.9 14.4 M 8.9 0.1 L 14.9 6.8 M 9.5 -0.6 L 15.5 6 M 1.9 13.4 L 2.9 14.4 M 1.9 12 L 4.1 14.4"
|
|
656
|
+
});
|
|
657
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
658
|
+
}
|
|
659
|
+
// expand button
|
|
660
|
+
r("Button", ["expand"]).setAll({
|
|
661
|
+
tooltipText: l.translateAny("Expand all")
|
|
662
|
+
});
|
|
663
|
+
{
|
|
664
|
+
const rule = r("Graphics", ["icon", "expand", "button"]);
|
|
665
|
+
rule.setAll({
|
|
666
|
+
svgPath: "M -6 -4 L 0 2 L 6 -4 M -6 2 L 0 8 L 6 2"
|
|
667
|
+
});
|
|
668
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
669
|
+
}
|
|
670
|
+
// collapse button
|
|
671
|
+
r("Button", ["collapse"]).setAll({
|
|
672
|
+
tooltipText: l.translateAny("Collapse all")
|
|
673
|
+
});
|
|
674
|
+
{
|
|
675
|
+
const rule = r("Graphics", ["icon", "collapse", "button"]);
|
|
676
|
+
rule.setAll({
|
|
677
|
+
svgPath: "M -6 6 L 0 0 L 6 6 M -6 0 L 0 -6 L 6 0"
|
|
678
|
+
});
|
|
679
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
680
|
+
}
|
|
681
|
+
// auto-link button
|
|
682
|
+
r("Button", ["link"]).setAll({
|
|
683
|
+
tooltipText: l.translateAny("Link new tasks"),
|
|
684
|
+
toggleKey: "active"
|
|
685
|
+
});
|
|
686
|
+
{
|
|
687
|
+
const rule = r("Graphics", ["icon", "link", "button"]);
|
|
688
|
+
rule.setAll({
|
|
689
|
+
svgPath: "M 5 5 L 13 5 C 17 5 17 11 13 11 L 8 11 C 4 11 4 17 8 17 L 16 17 L 14 15 L 14 19 L 16 17"
|
|
690
|
+
});
|
|
691
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
692
|
+
}
|
|
693
|
+
// clear button
|
|
694
|
+
r("Button", ["clear"]).setAll({
|
|
695
|
+
tooltipText: l.translateAny("Clear all")
|
|
696
|
+
});
|
|
697
|
+
// garbage bin icon
|
|
698
|
+
{
|
|
699
|
+
const rule = r("Graphics", ["icon", "clear", "button"]);
|
|
700
|
+
rule.setAll({
|
|
701
|
+
marginLeft: 1,
|
|
702
|
+
marginRight: 1,
|
|
703
|
+
svgPath: "M 2.4 4 L 4.8 19.2 L 15.2 19.2 L 17.6 4 L 2.4 4 M 5.6 5.6 L 7.2 17.2 M 10 5.6 L 10 17.2 M 14.4 5.6 L 12.8 17.2 M 2.4 3.2 L 17.6 3.2 M 8.4 3.2 L 8.4 1.2 L 12 1.2 L 12 3.2"
|
|
704
|
+
});
|
|
705
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
706
|
+
}
|
|
707
|
+
// fit button
|
|
708
|
+
r("Button", ["fit"]).setAll({
|
|
709
|
+
tooltipText: l.translateAny("Fit to view")
|
|
710
|
+
});
|
|
711
|
+
{
|
|
712
|
+
const rule = r("Graphics", ["icon", "fit", "button"]);
|
|
713
|
+
rule.setAll({
|
|
714
|
+
svgPath: "M 8 0 L 2 0 M 6 -4 L 2 0 L 6 4 M -2 0 L -8 0 M -6 -4 L -2 0 L -6 4"
|
|
715
|
+
});
|
|
716
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
717
|
+
}
|
|
718
|
+
r("Button", ["zoomout"]).setAll({
|
|
719
|
+
tooltipText: l.translateAny("Zoom out")
|
|
720
|
+
});
|
|
721
|
+
{
|
|
722
|
+
const rule = r("Graphics", ["icon", "zoomout", "button"]);
|
|
723
|
+
rule.setAll({
|
|
724
|
+
svgPath: "M 8 0 L 2 0 M 4 -4 L 8 0 L 4 4 M -2 0 L -8 0 M -4 -4 L -8 0 L -4 4"
|
|
725
|
+
});
|
|
726
|
+
setColor(rule, "stroke", ic, "secondaryButton");
|
|
727
|
+
}
|
|
728
|
+
// x button (shown when clicked on a task)
|
|
729
|
+
r("Button", ["xbutton"]).setAll({
|
|
730
|
+
position: "absolute",
|
|
731
|
+
width: 35,
|
|
732
|
+
height: 35,
|
|
733
|
+
centerX: p50,
|
|
734
|
+
centerY: p50
|
|
735
|
+
});
|
|
736
|
+
r("RoundedRectangle", ["xbutton", "background"]).setAll({
|
|
737
|
+
fillOpacity: 0,
|
|
738
|
+
strokeOpacity: 0
|
|
739
|
+
});
|
|
740
|
+
r("Graphics", ["xbutton", "icon"]).setAll({
|
|
741
|
+
fill: ic.get("negative"),
|
|
742
|
+
isMeasured: false,
|
|
743
|
+
forceInactive: true,
|
|
744
|
+
stroke: color(0xffffff),
|
|
745
|
+
strokeWidth: 2,
|
|
746
|
+
cursorOverStyle: "pointer",
|
|
747
|
+
centerX: p50,
|
|
748
|
+
centerY: p50,
|
|
749
|
+
x: p50,
|
|
750
|
+
y: p50,
|
|
751
|
+
draw: (display) => {
|
|
752
|
+
display.arc(0, 0, 16, 0, Math.PI * 2);
|
|
753
|
+
display.moveTo(-6, -6);
|
|
754
|
+
display.lineTo(6, 6);
|
|
755
|
+
display.moveTo(6, -6);
|
|
756
|
+
display.lineTo(-6, 6);
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
// color picker button
|
|
760
|
+
r("ColorPickerButton").setAll({
|
|
761
|
+
width: 35,
|
|
762
|
+
height: 35,
|
|
763
|
+
marginLeft: 6,
|
|
764
|
+
tooltipX: percent(90),
|
|
765
|
+
tooltipText: l.translateAny("Set color")
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
//# sourceMappingURL=GanttDefaultTheme.js.map
|