@sapui5/sap.gantt 1.139.0 → 1.139.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.
Files changed (175) hide show
  1. package/package.json +1 -1
  2. package/src/sap/gantt/.library +1 -1
  3. package/src/sap/gantt/AdhocLine.js +1 -1
  4. package/src/sap/gantt/GanttChart.js +1 -1
  5. package/src/sap/gantt/GanttChartBase.js +1 -1
  6. package/src/sap/gantt/GanttChartContainer.js +1 -1
  7. package/src/sap/gantt/GanttChartWithTable.js +1 -1
  8. package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +1 -1
  9. package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
  10. package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
  11. package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +1 -1
  12. package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
  13. package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
  14. package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
  15. package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
  16. package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
  17. package/src/sap/gantt/config/ChartScheme.js +1 -1
  18. package/src/sap/gantt/config/ColumnAttribute.js +1 -1
  19. package/src/sap/gantt/config/ContainerLayout.js +1 -1
  20. package/src/sap/gantt/config/ExpandChart.js +1 -1
  21. package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
  22. package/src/sap/gantt/config/GanttChartLayout.js +1 -1
  23. package/src/sap/gantt/config/Hierarchy.js +1 -1
  24. package/src/sap/gantt/config/HierarchyColumn.js +1 -1
  25. package/src/sap/gantt/config/LayoutGroup.js +1 -1
  26. package/src/sap/gantt/config/Locale.js +1 -1
  27. package/src/sap/gantt/config/Mode.js +1 -1
  28. package/src/sap/gantt/config/ModeGroup.js +1 -1
  29. package/src/sap/gantt/config/ObjectType.js +1 -1
  30. package/src/sap/gantt/config/SettingGroup.js +1 -1
  31. package/src/sap/gantt/config/SettingItem.js +1 -1
  32. package/src/sap/gantt/config/Shape.js +1 -1
  33. package/src/sap/gantt/config/TimeAxis.js +1 -1
  34. package/src/sap/gantt/config/TimeHorizon.js +1 -1
  35. package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
  36. package/src/sap/gantt/config/ToolbarGroup.js +1 -1
  37. package/src/sap/gantt/config/ToolbarScheme.js +1 -1
  38. package/src/sap/gantt/control/Cell.js +1 -1
  39. package/src/sap/gantt/def/DefBase.js +1 -1
  40. package/src/sap/gantt/def/SvgDefs.js +1 -1
  41. package/src/sap/gantt/def/cal/Calendar.js +1 -1
  42. package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
  43. package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
  44. package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
  45. package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
  46. package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
  47. package/src/sap/gantt/def/gradient/Stop.js +1 -1
  48. package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
  49. package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
  50. package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
  51. package/src/sap/gantt/drawer/AdhocLine.js +1 -1
  52. package/src/sap/gantt/drawer/Drawer.js +1 -1
  53. package/src/sap/gantt/drawer/VerticalLine.js +1 -1
  54. package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
  55. package/src/sap/gantt/eventHandler/BirdEyeHandler.js +1 -1
  56. package/src/sap/gantt/eventHandler/MouseWheelHandler.js +1 -1
  57. package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
  58. package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
  59. package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
  60. package/src/sap/gantt/eventHandler/TimePopoverHandler.js +1 -1
  61. package/src/sap/gantt/layouts/SidePanel.js +1 -1
  62. package/src/sap/gantt/legend/DimensionLegend.js +1 -1
  63. package/src/sap/gantt/legend/LegendBase.js +1 -1
  64. package/src/sap/gantt/legend/LegendContainer.js +1 -1
  65. package/src/sap/gantt/legend/ListLegend.js +1 -1
  66. package/src/sap/gantt/library.js +2 -2
  67. package/src/sap/gantt/misc/Memoizer.js +1 -1
  68. package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
  69. package/src/sap/gantt/misc/ShapeManager.js +1 -1
  70. package/src/sap/gantt/overlays/GanttRowOverlay.js +1 -1
  71. package/src/sap/gantt/overlays/Overlay.js +1 -1
  72. package/src/sap/gantt/shape/Circle.js +1 -1
  73. package/src/sap/gantt/shape/ClipPath.js +1 -1
  74. package/src/sap/gantt/shape/Definitions.js +1 -1
  75. package/src/sap/gantt/shape/Group.js +1 -1
  76. package/src/sap/gantt/shape/Image.js +1 -1
  77. package/src/sap/gantt/shape/Line.js +1 -1
  78. package/src/sap/gantt/shape/Path.js +1 -1
  79. package/src/sap/gantt/shape/Polygon.js +1 -1
  80. package/src/sap/gantt/shape/Polyline.js +1 -1
  81. package/src/sap/gantt/shape/Rectangle.js +1 -1
  82. package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
  83. package/src/sap/gantt/shape/SelectedShape.js +1 -1
  84. package/src/sap/gantt/shape/Shape.js +1 -1
  85. package/src/sap/gantt/shape/Text.js +1 -1
  86. package/src/sap/gantt/shape/cal/Calendar.js +1 -1
  87. package/src/sap/gantt/shape/ext/Chevron.js +1 -1
  88. package/src/sap/gantt/shape/ext/Cursor.js +1 -1
  89. package/src/sap/gantt/shape/ext/Diamond.js +1 -1
  90. package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
  91. package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
  92. package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
  93. package/src/sap/gantt/shape/ext/Triangle.js +1 -1
  94. package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
  95. package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +1 -1
  96. package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
  97. package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
  98. package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
  99. package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
  100. package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
  101. package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
  102. package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
  103. package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
  104. package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
  105. package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
  106. package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
  107. package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
  108. package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
  109. package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
  110. package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
  111. package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
  112. package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
  113. package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
  114. package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
  115. package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
  116. package/src/sap/gantt/simple/AdhocLine.js +1 -1
  117. package/src/sap/gantt/simple/BaseCalendar.js +1 -1
  118. package/src/sap/gantt/simple/BaseChevron.js +1 -1
  119. package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
  120. package/src/sap/gantt/simple/BaseCursor.js +1 -1
  121. package/src/sap/gantt/simple/BaseDeltaRectangle.js +1 -1
  122. package/src/sap/gantt/simple/BaseDiamond.js +5 -6
  123. package/src/sap/gantt/simple/BaseGroup.js +1 -1
  124. package/src/sap/gantt/simple/BaseImage.js +1 -1
  125. package/src/sap/gantt/simple/BaseLine.js +1 -1
  126. package/src/sap/gantt/simple/BasePath.js +1 -1
  127. package/src/sap/gantt/simple/BasePseudoShape.js +1 -1
  128. package/src/sap/gantt/simple/BaseRectangle.js +1 -1
  129. package/src/sap/gantt/simple/BaseShape.js +19 -3
  130. package/src/sap/gantt/simple/BaseText.js +8 -6
  131. package/src/sap/gantt/simple/BaseTriangle.js +1 -1
  132. package/src/sap/gantt/simple/ContainerToolbar.js +1 -1
  133. package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
  134. package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
  135. package/src/sap/gantt/simple/CustomVariantHandler.js +1 -1
  136. package/src/sap/gantt/simple/DeltaLine.js +1 -1
  137. package/src/sap/gantt/simple/ExpandModel.js +1 -1
  138. package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
  139. package/src/sap/gantt/simple/GanttChartContainer.js +1 -1
  140. package/src/sap/gantt/simple/GanttChartWithTable.js +1 -1
  141. package/src/sap/gantt/simple/GanttConnectExtension.js +5 -12
  142. package/src/sap/gantt/simple/GanttDragDropExtension.js +1 -1
  143. package/src/sap/gantt/simple/GanttExtension.js +1 -1
  144. package/src/sap/gantt/simple/GanttHeader.js +1 -1
  145. package/src/sap/gantt/simple/GanttPointerExtension.js +1 -1
  146. package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
  147. package/src/sap/gantt/simple/GanttPrinting.js +1 -1
  148. package/src/sap/gantt/simple/GanttResizeExtension.js +4 -10
  149. package/src/sap/gantt/simple/GanttRowAction.js +1 -1
  150. package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
  151. package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
  152. package/src/sap/gantt/simple/LegendContainer.js +1 -1
  153. package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
  154. package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
  155. package/src/sap/gantt/simple/MultiActivityRowSettings.js +1 -1
  156. package/src/sap/gantt/simple/PrintDialogTemplate.js +1 -1
  157. package/src/sap/gantt/simple/PrintUtils.js +1 -1
  158. package/src/sap/gantt/simple/Relationship.js +10 -17
  159. package/src/sap/gantt/simple/ShapeScheme.js +1 -1
  160. package/src/sap/gantt/simple/ShapeStyle.js +1 -1
  161. package/src/sap/gantt/simple/StockChart.js +20 -3
  162. package/src/sap/gantt/simple/StockChartDimension.js +1 -1
  163. package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
  164. package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
  165. package/src/sap/gantt/simple/UtilizationChart.js +1 -1
  166. package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
  167. package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
  168. package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
  169. package/src/sap/gantt/simple/shapes/Shape.js +1 -1
  170. package/src/sap/gantt/simple/shapes/Task.js +1 -1
  171. package/src/sap/gantt/skipTime/DayInterval.js +1 -1
  172. package/src/sap/gantt/skipTime/DiscontinuousProvider.js +1 -1
  173. package/src/sap/gantt/skipTime/SkipInterval.js +1 -1
  174. package/src/sap/gantt/skipTime/SkipPattern.js +1 -1
  175. package/src/sap/gantt/skipTime/WeekPattern.js +1 -1
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.gantt.simple.BaseShape
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.139.1
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.gantt.simple.MultiActivityGroup
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.139.0
33
+ * @version 1.139.1
34
34
  * @since 1.109
35
35
  *
36
36
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.gantt.simple.BaseShape
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.139.0
26
+ * @version 1.139.1
27
27
  *
28
28
  * @constructor
29
29
  * @public
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @extends sap.ui.core.Element
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.139.0
60
+ * @version 1.139.1
61
61
  *
62
62
  * @abstract
63
63
  * @constructor
@@ -356,12 +356,12 @@ sap.ui.define([
356
356
  /** Postion of left anchor for a shape to connect with other shapes whose value ranges from 0-100
357
357
  * @since 1.131
358
358
  */
359
- leftAnchorPosition: { type: "int", defaultValue: 50 },
359
+ leftAnchorPosition: {type: "int"},
360
360
 
361
361
  /** Postion of right anchor for a shape to connect with other shapes whose value ranges from 0-100
362
362
  * @since 1.131
363
363
  */
364
- rightAnchorPosition: { type: "int", defaultValue: 50 }
364
+ rightAnchorPosition: {type: "int"}
365
365
  },
366
366
  designtime: "sap/ui/dt/designtime/notAdaptable.designtime"
367
367
  },
@@ -416,6 +416,22 @@ sap.ui.define([
416
416
  return this._buildTransformByXYBias();
417
417
  };
418
418
 
419
+ BaseShape.prototype.getLeftAnchorPosition = function () {
420
+ var iLeftAnchorPosition = this.getProperty("leftAnchorPosition");
421
+ if (iLeftAnchorPosition === undefined || iLeftAnchorPosition === null) {
422
+ iLeftAnchorPosition = this.getDomRef("nonLabelGroup") ? 75 : 50;
423
+ }
424
+ return iLeftAnchorPosition;
425
+ };
426
+
427
+ BaseShape.prototype.getRightAnchorPosition = function () {
428
+ var iRightAnchorPosition = this.getProperty("rightAnchorPosition");
429
+ if (iRightAnchorPosition === undefined || iRightAnchorPosition === null) {
430
+ iRightAnchorPosition = this.getDomRef("nonLabelGroup") ? 75 : 50;
431
+ }
432
+ return iRightAnchorPosition;
433
+ };
434
+
419
435
  BaseShape.prototype.setLeftAnchorPosition = function (iPosition, bSuppressInvalidate) {
420
436
  iPosition = Math.max(0, Math.min(iPosition, 100));
421
437
  this.setProperty("leftAnchorPosition", iPosition, bSuppressInvalidate);
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.gantt.simple.BaseShape
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.139.0
39
+ * @version 1.139.1
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -316,12 +316,18 @@ sap.ui.define([
316
316
  }
317
317
 
318
318
  if (iParentWidth < iOriginalWidth) {
319
- return iParentWidth;
319
+ iOriginalWidth = iParentWidth;
320
320
  }
321
321
  }
322
322
  if (this.getTextAnchor().toLowerCase() === library.simple.horizontalTextAlignment.Dynamic.toLowerCase() && this.getProperty("_shapeCropped")) {
323
323
  iOriginalWidth = GanttChartConfigurationUtils.getRTL() ? iOriginalWidth + this.getProperty("_xBiassed") : iOriginalWidth - this.getProperty("_xBiassed");
324
324
  }
325
+ if (iOriginalWidth !== undefined) {
326
+ var iXBias = this.getProperty("xBias") || 0;
327
+ if (iXBias > 0 || !this.isA("sap.gantt.simple.BaseImage")) {
328
+ iOriginalWidth = Math.max(iOriginalWidth - iXBias, 0);
329
+ }
330
+ }
325
331
  return iOriginalWidth;
326
332
  };
327
333
 
@@ -380,7 +386,6 @@ sap.ui.define([
380
386
  BaseText.prototype._processTextForTruncation = function(sSourceText, bPseudoShape, iIconHeight) {
381
387
  var iTruncateWidth = this.getTruncateWidth(),
382
388
  iEllipsisWidth = this.measureTextWidth("..."),
383
- iXBias = this.getProperty("xBias") || 0,
384
389
  iTextTotalLength = this.measureTextWidth(sSourceText);
385
390
  var iAdditionalPadding;
386
391
  if (bPseudoShape){
@@ -403,9 +408,6 @@ sap.ui.define([
403
408
  if (iTargetWidth > iAdditionalPadding){
404
409
  iTargetWidth = iTargetWidth - iAdditionalPadding;
405
410
  }
406
- if (iTargetWidth > iXBias){
407
- iTargetWidth = iTargetWidth - iXBias;
408
- }
409
411
 
410
412
  // truncate
411
413
  var sTruncatedText;
@@ -20,7 +20,7 @@ sap.ui.define(
20
20
  * @extends sap.gantt.simple.BaseRectangle
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.139.0
23
+ * @version 1.139.1
24
24
  * @since 1.84
25
25
  *
26
26
  * @constructor
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  * @extends sap.m.OverflowToolbar
90
90
  *
91
91
  * @author SAP SE
92
- * @version 1.139.0
92
+ * @version 1.139.1
93
93
  *
94
94
  * @constructor
95
95
  * @public
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.core.Control
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.139.0
30
+ * @version 1.139.1
31
31
  * @since 1.66.0
32
32
  *
33
33
  * @constructor
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/thirdparty/jquery', "sap/ui/Device"], function(jQuery, De
17
17
  * @class Utility functionality to work with SVG coordination, e.g. find x position of cursor
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.139.0
20
+ * @version 1.139.1
21
21
  *
22
22
  * @private
23
23
  * @static
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.core.Element
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.139.1
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -26,7 +26,7 @@ sap.ui.define(
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.139.0
29
+ * @version 1.139.1
30
30
  * @since 1.84
31
31
  *
32
32
  * @constructor
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.base.ManagedObject
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.139.0
29
+ * @version 1.139.1
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extend sap.ui.core.CustomData
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.139.1
25
25
  * @since 1.90
26
26
  *
27
27
  * @constructor
@@ -52,7 +52,7 @@ sap.ui.define([
52
52
  * @extends sap.ui.core.Control
53
53
  *
54
54
  * @author SAP SE
55
- * @version 1.139.0
55
+ * @version 1.139.1
56
56
  *
57
57
  * @constructor
58
58
  * @public
@@ -170,7 +170,7 @@ sap.ui.define([
170
170
  * @extend sap.ui.core.Control
171
171
  *
172
172
  * @author SAP SE
173
- * @version 1.139.0
173
+ * @version 1.139.1
174
174
  * @since 1.60
175
175
  *
176
176
  * @constructor
@@ -334,16 +334,9 @@ sap.ui.define([
334
334
 
335
335
  GanttConnectExtension.prototype._getIndicatorData = function(oShape) {
336
336
  var sElemId = oShape.getId();
337
- var oFrame, leftAnchorPosition, rightAnchorPosition;
338
- if (oShape.getDomRef("nonLabelGroup")) {
339
- oFrame = oShape.getDomRef("nonLabelGroup").getBBox();
340
- leftAnchorPosition = 3 / 4;
341
- rightAnchorPosition = 3 / 4;
342
- } else {
343
- oFrame = oShape.getDomRef().getBBox();
344
- leftAnchorPosition = oShape.getLeftAnchorPosition() / 100;
345
- rightAnchorPosition = oShape.getRightAnchorPosition() / 100;
346
- }
337
+ var oFrame = oShape.getDomRef("nonLabelGroup") ? oShape.getDomRef("nonLabelGroup").getBBox() : oShape.getDomRef().getBBox();
338
+ var iLeftAnchorPosition = oShape.getLeftAnchorPosition() / 100;
339
+ var iRightAnchorPosition = oShape.getRightAnchorPosition() / 100;
347
340
  var iX = oFrame.x,
348
341
  iY = oFrame.y,
349
342
  iWidth = oFrame.width,
@@ -366,10 +359,10 @@ sap.ui.define([
366
359
  var iMargin = 2;
367
360
  var mBias = Utility.getShapeBias(oShape);
368
361
  var iLeftX = iX - iMargin - iRectWidth + mBias.x,
369
- iLeftY = bIsTransformed ? iY + (iHeight * leftAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * leftAnchorPosition) - (iRectWidth / 2) + mBias.y;
362
+ iLeftY = bIsTransformed ? iY + (iHeight * iLeftAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * iLeftAnchorPosition) - (iRectWidth / 2) + mBias.y;
370
363
 
371
364
  var iRightX = (iX + iWidth + iMargin) + mBias.x,
372
- iRightY = bIsTransformed ? iY + (iHeight * rightAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * rightAnchorPosition) - (iRectWidth / 2) + mBias.y;
365
+ iRightY = bIsTransformed ? iY + (iHeight * iRightAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * iRightAnchorPosition) - (iRectWidth / 2) + mBias.y;
373
366
 
374
367
  var mCommonProp = {
375
368
  width: iRectWidth,
@@ -103,7 +103,7 @@ sap.ui.define([
103
103
  *
104
104
  * @extends sap.gantt.simple.GanttExtension
105
105
  * @author SAP SE
106
- * @version 1.139.0
106
+ * @version 1.139.1
107
107
  * @constructor
108
108
  * @private
109
109
  * @alias sap.gantt.simple.GanttExtension
@@ -18,7 +18,7 @@ sap.ui.define([ "sap/ui/base/Object" ],function(BaseObject) {
18
18
  * @abstract
19
19
  * @extends sap.ui.base.Object
20
20
  * @author SAP SE
21
- * @version 1.139.0
21
+ * @version 1.139.1
22
22
  * @constructor
23
23
  * @private
24
24
  * @alias sap.gantt.simple.GanttExtension
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extend sap.ui.core.Element
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.139.0
38
+ * @version 1.139.1
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -243,7 +243,7 @@ sap.ui.define([
243
243
  *
244
244
  * @extends sap.gantt.simple.GanttExtension
245
245
  * @author SAP SE
246
- * @version 1.139.0
246
+ * @version 1.139.1
247
247
  * @constructor
248
248
  * @private
249
249
  * @alias sap.gantt.simple.GanttPointerExtension
@@ -83,7 +83,7 @@ function(
83
83
  *
84
84
  * @extends sap.gantt.simple.GanttExtension
85
85
  * @author SAP SE
86
- * @version 1.139.0
86
+ * @version 1.139.1
87
87
  * @constructor
88
88
  * @private
89
89
  * @alias sap.gantt.simple.GanttPopoverExtension
@@ -162,7 +162,7 @@ sap.ui.define([
162
162
  * @extend sap.ui.core.Element
163
163
  *
164
164
  * @author SAP SE
165
- * @version 1.139.0
165
+ * @version 1.139.1
166
166
  * @since 1.66
167
167
  *
168
168
  * @constructor
@@ -1156,20 +1156,14 @@ sap.ui.define([
1156
1156
  "stroke-width": 1
1157
1157
  };
1158
1158
  var mBias = Utility.getShapeBias(oElement);
1159
- var leftAnchorPosition, rightAnchorPosition;
1160
- if (oElement.getDomRef("nonLabelGroup")) {
1161
- leftAnchorPosition = 3 / 4;
1162
- rightAnchorPosition = 3 / 4;
1163
- } else {
1164
- leftAnchorPosition = oElement.getLeftAnchorPosition() / 100;
1165
- rightAnchorPosition = oElement.getRightAnchorPosition() / 100;
1166
- }
1159
+ var iLeftAnchorPosition = oElement.getLeftAnchorPosition() / 100;
1160
+ var iRightAnchorPosition = oElement.getRightAnchorPosition() / 100;
1167
1161
 
1168
1162
  var iLeftX = iX - iMargin - iRectWidth - 2 + mBias.x,
1169
- iLeftY = bIsTransformed ? iY + (iHeight * leftAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * leftAnchorPosition) - (iRectWidth / 2) + mBias.y;
1163
+ iLeftY = bIsTransformed ? iY + (iHeight * iLeftAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * iLeftAnchorPosition) - (iRectWidth / 2) + mBias.y;
1170
1164
 
1171
1165
  var iRightX = (iX + iWidth + iMargin) + 2 + mBias.x,
1172
- iRightY = bIsTransformed ? iY + (iHeight * rightAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * rightAnchorPosition) - (iRectWidth / 2) + mBias.y;
1166
+ iRightY = bIsTransformed ? iY + (iHeight * iRightAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * iRightAnchorPosition) - (iRectWidth / 2) + mBias.y;
1173
1167
 
1174
1168
  return [
1175
1169
  jQuery.extend({
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.table.RowAction
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.139.0
30
+ * @version 1.139.1
31
31
  *
32
32
  * @constructor
33
33
  * @alias sap.gantt.simple.GanttRowAction
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @extends sap.ui.table.RowSettings
28
28
  *
29
29
  * @author SAP SE
30
- * @version 1.139.0
30
+ * @version 1.139.1
31
31
  *
32
32
  * @constructor
33
33
  * @public
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @extend sap.ui.core.Control
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.139.0
42
+ * @version 1.139.1
43
43
  *
44
44
  * @constructor
45
45
  * @private
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.core.Control
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.139.0
36
+ * @version 1.139.1
37
37
  *
38
38
  * @constructor
39
39
  * @public
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.gantt.simple.BaseShape
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.139.0
25
+ * @version 1.139.1
26
26
  * @since 1.84
27
27
  *
28
28
  * @constructor
@@ -19,7 +19,7 @@ sap.ui.define(["sap/gantt/simple/BaseGroup"], function (BaseGroup) {
19
19
  * @extends sap.gantt.simple.BaseGroup
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.139.0
22
+ * @version 1.139.1
23
23
  * @since 1.85
24
24
  *
25
25
  * @constructor
@@ -21,7 +21,7 @@
21
21
  * @extends sap.gantt.simple.GanttRowSettings
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.139.0
24
+ * @version 1.139.1
25
25
  * @since 1.85
26
26
  *
27
27
  * @constructor
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @extends sap.ui.base.ManagedObject
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.139.0
23
+ * @version 1.139.1
24
24
  *
25
25
  * @constructor
26
26
  * @public
@@ -11,7 +11,7 @@ sap.ui.define([
11
11
  * @private
12
12
  * Provides helper methods for print configurations.
13
13
  * @author SAP SE
14
- * @version 1.139.0
14
+ * @version 1.139.1
15
15
  * @alias sap.gantt.simple.PrintUtils
16
16
  * @since 1.127
17
17
  */
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.gantt.simple.BasePath
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.139.0
53
+ * @version 1.139.1
54
54
  *
55
55
  * @constructor
56
56
  * @public
@@ -785,16 +785,9 @@ sap.ui.define([
785
785
  if (oShape.getShapeAnchors) {
786
786
  mAnchors[sKey] = oShape.getShapeAnchors();
787
787
  } else {
788
- var oBBox, leftAnchorPosition, rightAnchorPosition;
789
- if (oShape.getDomRef("nonLabelGroup")) {
790
- oBBox = oShape.getDomRef("nonLabelGroup").getBBox();
791
- leftAnchorPosition = 3 / 4;
792
- rightAnchorPosition = 3 / 4;
793
- } else {
794
- oBBox = oShape.getDomRef().getBBox();
795
- leftAnchorPosition = oShape.getLeftAnchorPosition() / 100;
796
- rightAnchorPosition = oShape.getRightAnchorPosition() / 100;
797
- }
788
+ var oBBox = oShape.getDomRef("nonLabelGroup") ? oShape.getDomRef("nonLabelGroup").getBBox() : oShape.getDomRef().getBBox();
789
+ var iLeftAnchorPosition = oShape.getLeftAnchorPosition() / 100;
790
+ var iRightAnchorPosition = oShape.getRightAnchorPosition() / 100;
798
791
  var sTransform, iTranslateY = 0;
799
792
  sTransform = window.getComputedStyle(oShape.getDomRef()).transform.match(/matrix.*\((.+)\)/);
800
793
 
@@ -804,17 +797,17 @@ sap.ui.define([
804
797
  mAnchors[sKey] = {
805
798
  head: {
806
799
  x: oBBox.x,
807
- y: oBBox.y + oBBox.height * leftAnchorPosition + (parseFloat(iTranslateY)),
800
+ y: oBBox.y + oBBox.height * iLeftAnchorPosition + (parseFloat(iTranslateY)),
808
801
  dx: 0,
809
- dyTop: oBBox.height * leftAnchorPosition,
810
- dyBottom : oBBox.height * (1 - leftAnchorPosition)
802
+ dyTop: oBBox.height * iLeftAnchorPosition,
803
+ dyBottom : oBBox.height * (1 - iLeftAnchorPosition)
811
804
  },
812
805
  tail: {
813
806
  x: oBBox.x + oBBox.width,
814
- y: oBBox.y + oBBox.height * rightAnchorPosition + (parseFloat(iTranslateY)),
807
+ y: oBBox.y + oBBox.height * iRightAnchorPosition + (parseFloat(iTranslateY)),
815
808
  dx: 0,
816
- dyTop: oBBox.height * rightAnchorPosition,
817
- dyBottom : oBBox.height * (1 - rightAnchorPosition)
809
+ dyTop: oBBox.height * iRightAnchorPosition,
810
+ dyBottom : oBBox.height * (1 - iRightAnchorPosition)
818
811
  }
819
812
  };
820
813
  }
@@ -19,7 +19,7 @@ sap.ui.define(['sap/ui/core/Element'], function (Element) {
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.139.0
22
+ * @version 1.139.1
23
23
  *
24
24
  * @constructor
25
25
  * @public
@@ -23,7 +23,7 @@ sap.ui.define(["sap/ui/core/Element",
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.139.0
26
+ * @version 1.139.1
27
27
  * @since 1.130
28
28
  *
29
29
  * @constructor
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.gantt.simple.UtilizationChart
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.139.0
31
+ * @version 1.139.1
32
32
  * @since 1.95
33
33
  *
34
34
  * @constructor
@@ -70,7 +70,14 @@ sap.ui.define([
70
70
  stockChartDimensions: {
71
71
  type: "sap.gantt.simple.StockChartDimension",
72
72
  group : "Data"
73
- }
73
+ },
74
+
75
+ /**
76
+ * Custom configuration for middle line to define stroke, stroke-width and stroke-dasharray.
77
+ * @public
78
+ * @since 1.140
79
+ */
80
+ customMiddleLine: {type: "sap.gantt.simple.BaseLine", multiple: false}
74
81
  }
75
82
  },
76
83
  renderer: {
@@ -83,6 +90,7 @@ sap.ui.define([
83
90
  UtilizationChart.prototype.applySettings.call(this, mSettings, oScope);
84
91
  };
85
92
 
93
+
86
94
  /**
87
95
  * Render a shape element with RenderManager
88
96
  * @protected
@@ -550,8 +558,17 @@ sap.ui.define([
550
558
  if (this.getShowMiddleLine()) {
551
559
  var iMiddleY = this._getMiddleLineY(mProp);
552
560
  oRm.openStart("path", this.getId() + "-middleLine");
561
+
553
562
  oRm.attr("d", "M " + mProp.x + " " + iMiddleY + " h " + mProp.width);
554
- oRm.class("sapGanttStockMiddleLine");
563
+ var customMiddleLine = this.getCustomMiddleLine();
564
+ if (customMiddleLine){
565
+ oRm.attr("stroke", customMiddleLine.getStroke());
566
+ oRm.attr("stroke-width", customMiddleLine.getStrokeWidth());
567
+ oRm.attr("stroke-dasharray", customMiddleLine.getStrokeDasharray());
568
+ oRm.attr("shape-rendering", "crispEdges");
569
+ } else {
570
+ oRm.class("sapGanttStockMiddleLine");
571
+ }
555
572
  oRm.openEnd().close("path");
556
573
  }
557
574
  };
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.core.Element
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.139.0
26
+ * @version 1.139.1
27
27
  * @since 1.95
28
28
  *
29
29
  * @constructor
@@ -26,7 +26,7 @@ sap.ui.define(["sap/ui/core/Element"], function(Element){
26
26
  * @extends sap.ui.core.Element
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.139.0
29
+ * @version 1.139.1
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.gantt.simple.UtilizationChart
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.139.0
29
+ * @version 1.139.1
30
30
  *
31
31
  * @constructor
32
32
  * @public
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.gantt.simple.BaseShape
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.139.0
29
+ * @version 1.139.1
30
30
  *
31
31
  * @constructor
32
32
  * @abstract
@@ -20,7 +20,7 @@ sap.ui.define(["sap/ui/core/Element","sap/gantt/library"], function(Element,libr
20
20
  * @extends sap.ui.core.Element
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.139.0
23
+ * @version 1.139.1
24
24
  *
25
25
  * @constructor
26
26
  * @public
@@ -31,7 +31,7 @@ sap.ui.define([
31
31
  * @extends sap.gantt.simple.UtilizationChart
32
32
  *
33
33
  * @author SAP SE
34
- * @version 1.139.0
34
+ * @version 1.139.1
35
35
  *
36
36
  * @constructor
37
37
  * @public
@@ -24,7 +24,7 @@ sap.ui.define(["sap/ui/core/Element"], function(Element){
24
24
  * @extends sap.ui.core.Element
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.139.0
27
+ * @version 1.139.1
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.gantt.simple.BaseShape
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.139.0
35
+ * @version 1.139.1
36
36
  *
37
37
  * @abstract
38
38
  * @constructor
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.gantt.simple.shapes.Shape
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.139.0
41
+ * @version 1.139.1
42
42
  *
43
43
  * @constructor
44
44
  * @public