@sapui5/sap.gantt 1.127.1 → 1.129.0
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/package.json +1 -1
- package/src/sap/gantt/.library +4 -1
- package/src/sap/gantt/AdhocLine.js +1 -1
- package/src/sap/gantt/GanttChart.js +1 -1
- package/src/sap/gantt/GanttChartBase.js +1 -1
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +11 -8
- package/src/sap/gantt/axistime/FullScreenStrategy.js +4 -4
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +6 -6
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +2 -2
- package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
- package/src/sap/gantt/config/ChartScheme.js +1 -1
- package/src/sap/gantt/config/ColumnAttribute.js +1 -1
- package/src/sap/gantt/config/ContainerLayout.js +1 -1
- package/src/sap/gantt/config/ExpandChart.js +1 -1
- package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
- package/src/sap/gantt/config/GanttChartLayout.js +1 -1
- package/src/sap/gantt/config/Hierarchy.js +1 -1
- package/src/sap/gantt/config/HierarchyColumn.js +1 -1
- package/src/sap/gantt/config/LayoutGroup.js +1 -1
- package/src/sap/gantt/config/Locale.js +1 -1
- package/src/sap/gantt/config/Mode.js +1 -1
- package/src/sap/gantt/config/ModeGroup.js +1 -1
- package/src/sap/gantt/config/ObjectType.js +1 -1
- package/src/sap/gantt/config/SettingGroup.js +1 -1
- package/src/sap/gantt/config/SettingItem.js +1 -1
- package/src/sap/gantt/config/Shape.js +1 -1
- package/src/sap/gantt/config/TimeAxis.js +1 -1
- package/src/sap/gantt/config/TimeHorizon.js +1 -1
- package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarScheme.js +1 -1
- package/src/sap/gantt/control/Cell.js +1 -1
- package/src/sap/gantt/def/DefBase.js +1 -1
- package/src/sap/gantt/def/SvgDefs.js +1 -1
- package/src/sap/gantt/def/cal/Calendar.js +1 -1
- package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
- package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
- package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
- package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
- package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
- package/src/sap/gantt/def/gradient/Stop.js +1 -1
- package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
- package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
- package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
- package/src/sap/gantt/drawer/AdhocLine.js +1 -1
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/VerticalLine.js +1 -1
- package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
- package/src/sap/gantt/eventHandler/BirdEyeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/MouseWheelHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePopoverHandler.js +1 -1
- package/src/sap/gantt/flexibility/simple/GanttChartContainer.flexibility.js +5 -1
- package/src/sap/gantt/layouts/SidePanel.js +1 -1
- package/src/sap/gantt/legend/DimensionLegend.js +1 -1
- package/src/sap/gantt/legend/LegendBase.js +1 -1
- package/src/sap/gantt/legend/LegendContainer.js +1 -1
- package/src/sap/gantt/legend/ListLegend.js +1 -1
- package/src/sap/gantt/library.js +3 -3
- package/src/sap/gantt/messagebundle.properties +6 -6
- package/src/sap/gantt/messagebundle_ar.properties +8 -4
- package/src/sap/gantt/messagebundle_bg.properties +8 -4
- package/src/sap/gantt/messagebundle_ca.properties +8 -4
- package/src/sap/gantt/messagebundle_cnr.properties +8 -4
- package/src/sap/gantt/messagebundle_cs.properties +7 -3
- package/src/sap/gantt/messagebundle_cy.properties +8 -4
- package/src/sap/gantt/messagebundle_da.properties +8 -4
- package/src/sap/gantt/messagebundle_de.properties +7 -3
- package/src/sap/gantt/messagebundle_el.properties +8 -4
- package/src/sap/gantt/messagebundle_en.properties +8 -4
- package/src/sap/gantt/messagebundle_en_GB.properties +8 -4
- package/src/sap/gantt/messagebundle_en_US_sappsd.properties +48 -23
- package/src/sap/gantt/messagebundle_en_US_saprigi.properties +13 -6
- package/src/sap/gantt/messagebundle_en_US_saptrc.properties +221 -196
- package/src/sap/gantt/messagebundle_es.properties +8 -4
- package/src/sap/gantt/messagebundle_es_MX.properties +9 -5
- package/src/sap/gantt/messagebundle_et.properties +8 -4
- package/src/sap/gantt/messagebundle_fi.properties +8 -4
- package/src/sap/gantt/messagebundle_fr.properties +8 -4
- package/src/sap/gantt/messagebundle_fr_CA.properties +8 -4
- package/src/sap/gantt/messagebundle_hi.properties +7 -3
- package/src/sap/gantt/messagebundle_hr.properties +8 -4
- package/src/sap/gantt/messagebundle_hu.properties +8 -4
- package/src/sap/gantt/messagebundle_id.properties +8 -4
- package/src/sap/gantt/messagebundle_it.properties +8 -4
- package/src/sap/gantt/messagebundle_iw.properties +8 -4
- package/src/sap/gantt/messagebundle_ja.properties +6 -2
- package/src/sap/gantt/messagebundle_kk.properties +8 -4
- package/src/sap/gantt/messagebundle_ko.properties +6 -2
- package/src/sap/gantt/messagebundle_lt.properties +8 -4
- package/src/sap/gantt/messagebundle_lv.properties +8 -4
- package/src/sap/gantt/messagebundle_mk.properties +8 -4
- package/src/sap/gantt/messagebundle_ms.properties +8 -4
- package/src/sap/gantt/messagebundle_nl.properties +8 -4
- package/src/sap/gantt/messagebundle_no.properties +8 -4
- package/src/sap/gantt/messagebundle_pl.properties +8 -4
- package/src/sap/gantt/messagebundle_pt.properties +8 -4
- package/src/sap/gantt/messagebundle_pt_PT.properties +8 -4
- package/src/sap/gantt/messagebundle_ro.properties +8 -4
- package/src/sap/gantt/messagebundle_ru.properties +8 -4
- package/src/sap/gantt/messagebundle_sh.properties +8 -4
- package/src/sap/gantt/messagebundle_sk.properties +7 -3
- package/src/sap/gantt/messagebundle_sl.properties +8 -4
- package/src/sap/gantt/messagebundle_sr.properties +8 -4
- package/src/sap/gantt/messagebundle_sv.properties +8 -4
- package/src/sap/gantt/messagebundle_th.properties +8 -4
- package/src/sap/gantt/messagebundle_tr.properties +8 -4
- package/src/sap/gantt/messagebundle_uk.properties +8 -4
- package/src/sap/gantt/messagebundle_vi.properties +8 -4
- package/src/sap/gantt/messagebundle_zh_CN.properties +8 -4
- package/src/sap/gantt/messagebundle_zh_TW.properties +8 -4
- package/src/sap/gantt/misc/AxisTime.js +22 -11
- package/src/sap/gantt/misc/Format.js +42 -0
- package/src/sap/gantt/misc/Memoizer.js +1 -1
- package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
- package/src/sap/gantt/misc/ShapeManager.js +1 -1
- package/src/sap/gantt/overlays/GanttRowOverlay.js +1 -1
- package/src/sap/gantt/overlays/Overlay.js +1 -1
- package/src/sap/gantt/shape/Circle.js +1 -1
- package/src/sap/gantt/shape/ClipPath.js +1 -1
- package/src/sap/gantt/shape/Definitions.js +1 -1
- package/src/sap/gantt/shape/Group.js +1 -1
- package/src/sap/gantt/shape/Image.js +1 -1
- package/src/sap/gantt/shape/Line.js +1 -1
- package/src/sap/gantt/shape/Path.js +1 -1
- package/src/sap/gantt/shape/Polygon.js +1 -1
- package/src/sap/gantt/shape/Polyline.js +1 -1
- package/src/sap/gantt/shape/Rectangle.js +1 -1
- package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
- package/src/sap/gantt/shape/SelectedShape.js +1 -1
- package/src/sap/gantt/shape/Shape.js +1 -1
- package/src/sap/gantt/shape/Text.js +1 -1
- package/src/sap/gantt/shape/cal/Calendar.js +1 -1
- package/src/sap/gantt/shape/ext/Chevron.js +1 -1
- package/src/sap/gantt/shape/ext/Cursor.js +1 -1
- package/src/sap/gantt/shape/ext/Diamond.js +1 -1
- package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
- package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
- package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
- package/src/sap/gantt/shape/ext/Triangle.js +1 -1
- package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
- package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
- package/src/sap/gantt/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/simple/BaseCalendar.js +1 -1
- package/src/sap/gantt/simple/BaseChevron.js +1 -1
- package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
- package/src/sap/gantt/simple/BaseCursor.js +1 -1
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseDiamond.js +1 -1
- package/src/sap/gantt/simple/BaseGroup.js +1 -1
- package/src/sap/gantt/simple/BaseImage.js +1 -1
- package/src/sap/gantt/simple/BaseLine.js +1 -1
- package/src/sap/gantt/simple/BasePath.js +1 -1
- package/src/sap/gantt/simple/BasePseudoShape.js +1 -1
- package/src/sap/gantt/simple/BaseRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseShape.js +4 -3
- package/src/sap/gantt/simple/BaseText.js +1 -1
- package/src/sap/gantt/simple/BaseTriangle.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbar.js +2 -2
- package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
- package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
- package/src/sap/gantt/simple/CustomVariantHandler.js +1 -1
- package/src/sap/gantt/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/simple/ExpandModel.js +1 -1
- package/src/sap/gantt/simple/FindAndSelectUtils.js +35 -27
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +14 -4
- package/src/sap/gantt/simple/GanttDragDropExtension.js +1 -1
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +1 -1
- package/src/sap/gantt/simple/GanttLassoExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPointerExtension.js +13 -6
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +94 -14
- package/src/sap/gantt/simple/GanttResizeExtension.js +47 -13
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttSearchSidePanel.js +9 -14
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/LegendContainer.js +1 -1
- package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityRowSettings.js +1 -1
- package/src/sap/gantt/simple/PrintConfig.js +55 -39
- package/src/sap/gantt/simple/PrintDialogTemplate.js +1 -1
- package/src/sap/gantt/simple/PrintUtils.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +1 -1
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +1 -1
- package/src/sap/gantt/simple/StockChartDimension.js +1 -1
- package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
- package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
- package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
- package/src/sap/gantt/simple/shapes/Shape.js +1 -1
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
- package/src/sap/gantt/skipTime/DayInterval.js +1 -1
- package/src/sap/gantt/skipTime/DiscontinuousProvider.js +1 -1
- package/src/sap/gantt/skipTime/SkipInterval.js +1 -1
- package/src/sap/gantt/skipTime/SkipPattern.js +2 -2
- package/src/sap/gantt/skipTime/WeekPattern.js +1 -1
- package/src/sap/gantt/utils/GanttFlexibilityUtils.js +39 -1
- package/ui5.yaml +1 -0
package/package.json
CHANGED
package/src/sap/gantt/.library
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
9
9
|
</copyright>
|
|
10
|
-
<version>1.
|
|
10
|
+
<version>1.129.0</version>
|
|
11
11
|
|
|
12
12
|
<documentation>UI5 library: sap.gantt</documentation>
|
|
13
13
|
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
<dependency>
|
|
28
28
|
<libraryName>sap.ui.export</libraryName>
|
|
29
29
|
</dependency>
|
|
30
|
+
<dependency>
|
|
31
|
+
<libraryName>sap.tnt</libraryName>
|
|
32
|
+
</dependency>
|
|
30
33
|
<dependency>
|
|
31
34
|
<libraryName>sap.ui.dt</libraryName>
|
|
32
35
|
</dependency>
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @abstract
|
|
75
75
|
*
|
|
76
76
|
* @author SAP SE
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.129.0
|
|
78
78
|
*
|
|
79
79
|
* @constructor
|
|
80
80
|
* @public
|
|
@@ -111,6 +111,8 @@ sap.ui.define([
|
|
|
111
111
|
* <li><code>"span": 1</code> - Span is 1.</li>
|
|
112
112
|
* <li><code>"range": 90</code> - This granularity level is selected as the current level if 12 hours is the first time span that
|
|
113
113
|
* consumes more than 90 pixels to be displayed in the chart area.</li>
|
|
114
|
+
* <li><code>"selector": (requiredRange) => 90 </code> - This granularity level is selected as the current level if 12 hours is the first time span that
|
|
115
|
+
* consumes more than 90 pixels to be displayed in the chart area. Selector takes precedence over the range for level selection and provides flexibility to adjust range or column size in the timeline</li>
|
|
114
116
|
* </ul>
|
|
115
117
|
* </li>
|
|
116
118
|
* <li>
|
|
@@ -239,10 +241,13 @@ sap.ui.define([
|
|
|
239
241
|
|
|
240
242
|
/**
|
|
241
243
|
* Specifies the skip time pattern that is to be removed from the gantt timeline.
|
|
242
|
-
* The functionality works only for <code>sap.gantt.axistime.StepwiseZoomStrategy</code>.
|
|
243
244
|
* We recommend that you set the type of this argument to <code>sap.gantt.skipTime.SkipPattern</code>.
|
|
244
245
|
* Otherwise, some properties you set may not function properly.
|
|
245
246
|
*
|
|
247
|
+
* Supported in <code>sap.gantt.axistime.StepwiseZoomStrategy</code> from 1.126.
|
|
248
|
+
* Supported in <code>sap.gantt.axistime.ProportionZoomStrategy</code> from 1.128.
|
|
249
|
+
* Supported in <code>sap.gantt.axistime.FullScreenStrategy</code> from 1.128.
|
|
250
|
+
*
|
|
246
251
|
* The default value for skipTimePattern is null.
|
|
247
252
|
* @experimental since 1.126
|
|
248
253
|
*/
|
|
@@ -275,12 +280,10 @@ sap.ui.define([
|
|
|
275
280
|
* @public
|
|
276
281
|
*/
|
|
277
282
|
AxisTimeStrategyBase.prototype.setSkipTimePattern = function (oSkipTimePattern, bSuppressInvalidate) {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
this.setProperty("_discontinuousProvider", oDiscontinuousProvider, bSuppressInvalidate);
|
|
283
|
-
}
|
|
283
|
+
var oDiscontinuousProvider = oSkipTimePattern ? oSkipTimePattern.getDiscontinuityProvider() : null;
|
|
284
|
+
this.setAggregation("skipTimePattern", oSkipTimePattern, true);
|
|
285
|
+
delete this._nGanttVisibleWidth;
|
|
286
|
+
this.setProperty("_discontinuousProvider", oDiscontinuousProvider, bSuppressInvalidate);
|
|
284
287
|
};
|
|
285
288
|
|
|
286
289
|
AxisTimeStrategyBase.prototype.clone = function () {
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.129.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @public
|
|
@@ -178,13 +178,13 @@ sap.ui.define([
|
|
|
178
178
|
|
|
179
179
|
var oAxisTime = this.getAxisTime();
|
|
180
180
|
if (oAxisTime) {
|
|
181
|
-
var start = oAxisTime.timeToView(startTime);
|
|
181
|
+
var start = oAxisTime.timeToView(startTime, undefined, oAxisTime.continuousScale);
|
|
182
182
|
|
|
183
183
|
for (i in oTimeLineOptions) {
|
|
184
184
|
var interval = oTimeLineOptions[i].innerInterval;
|
|
185
|
-
var end = oAxisTime.timeToView(ObjectPath.get(interval.unit).offset(startTime, interval.span));
|
|
185
|
+
var end = oAxisTime.timeToView(ObjectPath.get(interval.unit).offset(startTime, interval.span), undefined, oAxisTime.continuousScale);
|
|
186
186
|
var r = Math.abs(Math.ceil((end - start)));
|
|
187
|
-
if (r >=
|
|
187
|
+
if (r >= this._getTimeLineRange(oTimeLineOptions[i])) {
|
|
188
188
|
iCurrentTickKey = i;
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.129.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
|
@@ -302,12 +302,12 @@ sap.ui.define([
|
|
|
302
302
|
minRate: this._oZoom.base.scale / this.calZoomScale(
|
|
303
303
|
oCoarsestTimeLineOption.innerInterval.unit,
|
|
304
304
|
oCoarsestTimeLineOption.innerInterval.span,
|
|
305
|
-
oCoarsestTimeLineOption
|
|
305
|
+
this._getTimeLineRange(oCoarsestTimeLineOption)
|
|
306
306
|
),
|
|
307
307
|
maxRate: this._oZoom.base.scale / this.calZoomScale(
|
|
308
308
|
oFinestTimeLineOption.innerInterval.unit,
|
|
309
309
|
oFinestTimeLineOption.innerInterval.span,
|
|
310
|
-
oFinestTimeLineOption
|
|
310
|
+
this._getTimeLineRange(oFinestTimeLineOption) * 4
|
|
311
311
|
)
|
|
312
312
|
};
|
|
313
313
|
}
|
|
@@ -369,13 +369,13 @@ sap.ui.define([
|
|
|
369
369
|
|
|
370
370
|
var oAxisTime = this.getAxisTime();
|
|
371
371
|
if (oAxisTime) {
|
|
372
|
-
var start = oAxisTime.timeToView(startTime);
|
|
372
|
+
var start = oAxisTime.timeToView(startTime, undefined, oAxisTime.continuousScale);
|
|
373
373
|
|
|
374
374
|
for (i in oTimeLineOptions) {
|
|
375
375
|
var interval = oTimeLineOptions[i].innerInterval;
|
|
376
|
-
var end = oAxisTime.timeToView(ObjectPath.get(interval.unit).offset(startTime, interval.span));
|
|
376
|
+
var end = oAxisTime.timeToView(ObjectPath.get(interval.unit).offset(startTime, interval.span), undefined, oAxisTime.continuousScale);
|
|
377
377
|
var r = Math.abs(Math.ceil((end - start)));
|
|
378
|
-
var bValue = typeof interval.selector === "function" ? interval.selector(r) : r >=
|
|
378
|
+
var bValue = typeof interval.selector === "function" ? interval.selector(r) : r >= this._getTimeLineRange(oTimeLineOptions[i]);
|
|
379
379
|
|
|
380
380
|
if (bValue) {
|
|
381
381
|
iCurrentTickKey = i;
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* The class allows you to define a zoom strategy whose time line options are stepwise, i.e. the width of each time line option
|
|
24
24
|
* is pre-defined and won't be changed during zooming.
|
|
25
25
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.129.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -169,7 +169,7 @@ sap.ui.define([
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
//update view range
|
|
172
|
-
oAxisTime.setViewRange([0, Math.ceil((nHorizonTimeRange * this._getTimeLineRange(oTimeLineOption) / nUnitTimeRange) / this._aZoomRate[this.getZoomLevel()])]
|
|
172
|
+
oAxisTime.setViewRange([0, Math.ceil((nHorizonTimeRange * this._getTimeLineRange(oTimeLineOption) / nUnitTimeRange) / this._aZoomRate[this.getZoomLevel()])]);
|
|
173
173
|
}
|
|
174
174
|
return this;
|
|
175
175
|
};
|