@sapui5/sap.gantt 1.125.0 → 1.126.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 +6 -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 +58 -8
- package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +10 -4
- 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/Drawer.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/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 +13 -3
- package/src/sap/gantt/messagebundle_sh.properties +30 -30
- package/src/sap/gantt/misc/AxisTime.js +80 -22
- 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 +80 -16
- package/src/sap/gantt/overlays/Overlay.js +1 -1
- package/src/sap/gantt/polyfills/lib.js +1 -1
- package/src/sap/gantt/polyfills/time.js +7 -7
- package/src/sap/gantt/polyfills/{time-utils → timeUtils}/dayCount.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 +2 -2
- 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/AggregationUtils.js +11 -58
- 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 +4 -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 +4 -1
- package/src/sap/gantt/simple/BaseShape.js +1 -1
- 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 +13 -4
- 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 -3
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +8 -2
- package/src/sap/gantt/simple/GanttChartWithTable.js +36 -2
- package/src/sap/gantt/simple/GanttDragDropExtension.js +8 -1
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +1 -1
- package/src/sap/gantt/simple/GanttPointerExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +3 -2
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +30 -1
- package/src/sap/gantt/simple/GanttScrollExtension.js +19 -4
- package/src/sap/gantt/simple/GanttUtils.js +85 -0
- 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/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 +4 -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 +63 -0
- package/src/sap/gantt/skipTime/DiscontinuousProvider.js +48 -0
- package/src/sap/gantt/skipTime/SkipInterval.js +76 -0
- package/src/sap/gantt/skipTime/SkipPattern.js +64 -0
- package/src/sap/gantt/skipTime/WeekPattern.js +118 -0
- package/src/sap/gantt/skipTime/WeeklyDiscontinuousProvider.js +78 -0
- package/src/sap/gantt/themes/sap_hcb/base_Gantt.less +899 -0
- package/src/sap/gantt/themes/sap_hcb/base_GanttPrinting.less +101 -0
- package/src/sap/gantt/themes/sap_hcb/base_GanttSyncedControl.less +96 -0
- package/src/sap/gantt/themes/sap_hcb/library.source.less +15 -1
- package/src/sap/gantt/thirdparty/d3fc-discontinuous-scale.js +1129 -0
- package/src/sap/gantt/thirdparty/d3fc-rebind.js +103 -0
- package/src/sap/gantt/thirdparty/licenses/d3fc-MIT-LICENSE.txt +21 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/day.js +0 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/days.js +0 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/interval.js +0 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/millisecond.js +0 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/monday.js +0 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/saturday.js +0 -0
- /package/src/sap/gantt/polyfills/{time-utils → timeUtils}/weeks.js +0 -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.126.0</version>
|
|
11
11
|
|
|
12
12
|
<documentation>UI5 library: sap.gantt</documentation>
|
|
13
13
|
|
|
@@ -68,6 +68,11 @@
|
|
|
68
68
|
<license url="https://github.com/niklasvh/html2canvas/blob/master/LICENSE" type="MIT" file="./licenses/html2canvas-MIT-LICENSE.txt" />
|
|
69
69
|
<pattern>sap/gantt/thirdparty/html2canvas.js</pattern>
|
|
70
70
|
</lib>
|
|
71
|
+
<lib name="d3fc" displayName="d3fc" version="15.2.6" homepage="https://github.com/d3fc/d3fc" id="73555000106100110931">
|
|
72
|
+
<license url="https://github.com/d3fc/d3fc/blob/master/LICENSE" type="MIT" file="./licenses/d3fc-MIT-LICENSE.txt" />
|
|
73
|
+
<pattern>sap/gantt/thirdparty/d3fc-discontinuous-scale.js</pattern>
|
|
74
|
+
<pattern>sap/gantt/thirdparty/d3fc-rebind.js</pattern>
|
|
75
|
+
</lib>
|
|
71
76
|
</thirdparty>
|
|
72
77
|
</appData>
|
|
73
78
|
|
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @abstract
|
|
75
75
|
*
|
|
76
76
|
* @author SAP SE
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.126.0
|
|
78
78
|
*
|
|
79
79
|
* @constructor
|
|
80
80
|
* @public
|
|
@@ -91,7 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
* <ul>
|
|
92
92
|
* <li>granularity level: time span between two neighboring vertical lines. Examples: 12 hours.</li>
|
|
93
93
|
* <li>labelling format: time formats for the upper row and lower row in the time line. These two rows do not have to share the same format. </li>
|
|
94
|
-
* <li>range: defines a certain length in pixel. Gantt Chart loops the granularity levels from the beginning and chooses the first granularity
|
|
94
|
+
* <li>range: defines a certain length in pixel. This can be a value, or a function that returns the value. Gantt Chart loops the granularity levels from the beginning and chooses the first granularity
|
|
95
95
|
* level with the time span that consumes more than the defined length.</li>
|
|
96
96
|
* For example, if the current range is 90, Gantt Chart loops the granularity levels from the default initial granularity level 5min. If the 6hour
|
|
97
97
|
* granularity level consumes 50 pixels, 12hour consumes 100 pixels, and 1Day consumes 200 pixels, the 12hour granularity level is selected as the
|
|
@@ -199,7 +199,12 @@ sap.ui.define([
|
|
|
199
199
|
* If not set, the calendar week numbering of the global configuration is used.
|
|
200
200
|
* @since 1.110.0
|
|
201
201
|
*/
|
|
202
|
-
calendarWeekNumbering: {type: "sap.ui.core.date.CalendarWeekNumbering", defaultValue: null}
|
|
202
|
+
calendarWeekNumbering: {type: "sap.ui.core.date.CalendarWeekNumbering", defaultValue: null},
|
|
203
|
+
/**
|
|
204
|
+
* Discontinuity provider for the skip time pattern.
|
|
205
|
+
* @private since 1.126
|
|
206
|
+
*/
|
|
207
|
+
_discontinuousProvider: { type: "object", multiple: false, visibility: "hidden" }
|
|
203
208
|
},
|
|
204
209
|
aggregations: {
|
|
205
210
|
/**
|
|
@@ -232,6 +237,17 @@ sap.ui.define([
|
|
|
232
237
|
*/
|
|
233
238
|
visibleHorizon: {type: "sap.gantt.config.TimeHorizon", multiple: false},
|
|
234
239
|
|
|
240
|
+
/**
|
|
241
|
+
* 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
|
+
* We recommend that you set the type of this argument to <code>sap.gantt.skipTime.SkipPattern</code>.
|
|
244
|
+
* Otherwise, some properties you set may not function properly.
|
|
245
|
+
*
|
|
246
|
+
* The default value for skipTimePattern is null.
|
|
247
|
+
* @experimental since 1.126
|
|
248
|
+
*/
|
|
249
|
+
skipTimePattern: { type: "sap.gantt.skipTime.SkipPattern", multiple: false },
|
|
250
|
+
|
|
235
251
|
_axisTime: {type: "sap.gantt.misc.AxisTime", multiple: false, visibility: "hidden"}
|
|
236
252
|
}
|
|
237
253
|
}
|
|
@@ -252,6 +268,21 @@ sap.ui.define([
|
|
|
252
268
|
return this;
|
|
253
269
|
};
|
|
254
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Sets the skip time pattern for gantt chart
|
|
273
|
+
* @param {sap.gantt.skipTime.SkipPattern} oSkipTimePattern Skip time pattern to be set
|
|
274
|
+
* @param {Boolean} bSuppressInvalidate Flag to suppress re-rendering of the control
|
|
275
|
+
* @public
|
|
276
|
+
*/
|
|
277
|
+
AxisTimeStrategyBase.prototype.setSkipTimePattern = function (oSkipTimePattern, bSuppressInvalidate) {
|
|
278
|
+
if (this.isA("sap.gantt.axistime.StepwiseZoomStrategy")) {
|
|
279
|
+
var oDiscontinuousProvider = oSkipTimePattern ? oSkipTimePattern.getDiscontinuityProvider() : null;
|
|
280
|
+
this.setAggregation("skipTimePattern", oSkipTimePattern, true);
|
|
281
|
+
delete this._nGanttVisibleWidth;
|
|
282
|
+
this.setProperty("_discontinuousProvider", oDiscontinuousProvider, bSuppressInvalidate);
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
|
|
255
286
|
AxisTimeStrategyBase.prototype.clone = function () {
|
|
256
287
|
var oClone = Element.prototype.clone.apply(this, arguments);
|
|
257
288
|
// we don't want to keep listeners tied to the original Gantt
|
|
@@ -397,14 +428,23 @@ sap.ui.define([
|
|
|
397
428
|
var oHorizonStartTime = Format.getTimeStampFormatter().parse(oTotalHorizon.getStartTime());
|
|
398
429
|
var oHorizonEndTime = Format.getTimeStampFormatter().parse(oTotalHorizon.getEndTime());
|
|
399
430
|
var nHorizonTimeRange = oHorizonEndTime.valueOf() - oHorizonStartTime.valueOf();
|
|
400
|
-
var oUnitStartTime = Format.getTimeStampFormatter().parse("20000101000000");
|
|
401
431
|
|
|
402
432
|
var nUnitTimeRange = ObjectPath.get(oTimeLineOption.innerInterval.unit)
|
|
403
|
-
|
|
433
|
+
.offset(oHorizonStartTime, oTimeLineOption.innerInterval.span).valueOf() - oHorizonStartTime.valueOf();
|
|
434
|
+
|
|
435
|
+
var timeRange = [oHorizonStartTime, oHorizonEndTime];
|
|
436
|
+
var iRange = this._getTimeLineRange(oTimeLineOption);
|
|
437
|
+
var viewRange = [0, Math.ceil(nHorizonTimeRange * iRange / nUnitTimeRange)];
|
|
438
|
+
var oDiscontinuousProvider = this.getProperty("_discontinuousProvider");
|
|
439
|
+
|
|
440
|
+
if (oDiscontinuousProvider) {
|
|
441
|
+
var nTotalTradingTimeRange = oDiscontinuousProvider.distance(oHorizonStartTime, oHorizonEndTime);
|
|
442
|
+
viewRange = [0, Math.ceil(nTotalTradingTimeRange * iRange / nUnitTimeRange)];
|
|
443
|
+
}
|
|
404
444
|
|
|
405
445
|
var oAxisTime = new AxisTime(
|
|
406
|
-
|
|
407
|
-
|
|
446
|
+
timeRange,
|
|
447
|
+
viewRange,
|
|
408
448
|
1, null, null,
|
|
409
449
|
oLocale, this);
|
|
410
450
|
|
|
@@ -618,7 +658,7 @@ sap.ui.define([
|
|
|
618
658
|
var fScale = this.calZoomScale(
|
|
619
659
|
oBaseTimeLineOption.innerInterval.unit,
|
|
620
660
|
oBaseTimeLineOption.innerInterval.span,
|
|
621
|
-
oBaseTimeLineOption
|
|
661
|
+
this._getTimeLineRange(oBaseTimeLineOption)
|
|
622
662
|
);
|
|
623
663
|
|
|
624
664
|
this._oZoom = {
|
|
@@ -653,6 +693,16 @@ sap.ui.define([
|
|
|
653
693
|
}
|
|
654
694
|
};
|
|
655
695
|
|
|
696
|
+
/**
|
|
697
|
+
* Utility method to return the timelineOption range from range function with fallback to range property
|
|
698
|
+
* @param {object} oTimeLineOption timelineOption
|
|
699
|
+
* @returns {number} returns the range for the timelineOption
|
|
700
|
+
* @private
|
|
701
|
+
*/
|
|
702
|
+
AxisTimeStrategyBase.prototype._getTimeLineRange = function (oTimeLineOption) {
|
|
703
|
+
return typeof oTimeLineOption.innerInterval.range === "function" ? oTimeLineOption.innerInterval.range() : oTimeLineOption.innerInterval.range;
|
|
704
|
+
};
|
|
705
|
+
|
|
656
706
|
/**
|
|
657
707
|
* update visible horizon for mouse wheel zoom according to configured zoom type
|
|
658
708
|
* @param {Date} oTimeAtZoomCenter the time where mouse pointer located during the zooming
|
|
@@ -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.126.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -162,8 +162,14 @@ sap.ui.define([
|
|
|
162
162
|
var oTimeLineOption = this.getTimeLineOption();
|
|
163
163
|
var nUnitTimeRange = ObjectPath.get(oTimeLineOption.innerInterval.unit)
|
|
164
164
|
.offset(oHorizonStartTime, oTimeLineOption.innerInterval.span).valueOf() - oHorizonStartTime.valueOf();
|
|
165
|
+
|
|
166
|
+
var oDiscontinuousProvider = oAxisTime._discontinuityProviderInstance && oAxisTime._discontinuityProviderInstance.useDiscontinuousScale(oTimeLineOption.smallInterval.unit) ? oAxisTime._discontinuityProviderInstance : null;
|
|
167
|
+
if (oDiscontinuousProvider) {
|
|
168
|
+
nHorizonTimeRange = oDiscontinuousProvider.distance(oHorizonStartTime, oHorizonEndTime);
|
|
169
|
+
}
|
|
170
|
+
|
|
165
171
|
//update view range
|
|
166
|
-
oAxisTime.setViewRange([0, Math.ceil((nHorizonTimeRange * oTimeLineOption
|
|
172
|
+
oAxisTime.setViewRange([0, Math.ceil((nHorizonTimeRange * this._getTimeLineRange(oTimeLineOption) / nUnitTimeRange) / this._aZoomRate[this.getZoomLevel()])], oTimeLineOption);
|
|
167
173
|
}
|
|
168
174
|
return this;
|
|
169
175
|
};
|
|
@@ -388,7 +394,7 @@ sap.ui.define([
|
|
|
388
394
|
this._aZoomRate[i] = this._oZoom.base.scale / this.calZoomScale(
|
|
389
395
|
oTimeLineOptions[j].innerInterval.unit,
|
|
390
396
|
oTimeLineOptions[j].innerInterval.span,
|
|
391
|
-
oTimeLineOptions[j]
|
|
397
|
+
this._getTimeLineRange(oTimeLineOptions[j])
|
|
392
398
|
);
|
|
393
399
|
}
|
|
394
400
|
} else {
|
|
@@ -397,7 +403,7 @@ sap.ui.define([
|
|
|
397
403
|
this._aZoomRate[i] = this._oZoom.base.scale / this.calZoomScale(
|
|
398
404
|
oTimeLineOptions[n].innerInterval.unit,
|
|
399
405
|
oTimeLineOptions[n].innerInterval.span,
|
|
400
|
-
oTimeLineOptions[n]
|
|
406
|
+
this._getTimeLineRange(oTimeLineOptions[n])
|
|
401
407
|
);
|
|
402
408
|
i++;
|
|
403
409
|
}
|