@sapui5/sap.gantt 1.139.0 → 1.140.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 +1 -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 +1 -1
- 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 +1 -1
- 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/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 +2 -2
- package/src/sap/gantt/messagebundle.properties +2 -2
- 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 +19 -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 +1 -1
- 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/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/simple/GanttConnectExtension.js +5 -12
- 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/GanttPointerExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +56 -15
- package/src/sap/gantt/simple/GanttResizeExtension.js +4 -10
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttScrollExtension.js +5 -26
- 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/PrintDialogTemplate.js +1 -1
- package/src/sap/gantt/simple/PrintUtils.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +10 -17
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/ShapeStyle.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +20 -3
- 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 +1 -1
- package/src/sap/gantt/skipTime/WeekPattern.js +1 -1
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @extends sap.ui.core.Element
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.140.0
|
|
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: {
|
|
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: {
|
|
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);
|
|
@@ -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.
|
|
20
|
+
* @version 1.140.0
|
|
21
21
|
*
|
|
22
22
|
* @private
|
|
23
23
|
* @static
|
|
@@ -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
|
|
338
|
-
|
|
339
|
-
|
|
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 *
|
|
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 *
|
|
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,
|
|
@@ -71,7 +71,8 @@ sap.ui.define([
|
|
|
71
71
|
"sap/gantt/utils/GanttChartConfigurationUtils",
|
|
72
72
|
"sap/ui/core/Lib",
|
|
73
73
|
"sap/gantt/simple/PrintConfig",
|
|
74
|
-
"sap/gantt/simple/PrintUtils"
|
|
74
|
+
"sap/gantt/simple/PrintUtils",
|
|
75
|
+
"sap/base/Log"
|
|
75
76
|
], function (
|
|
76
77
|
GanttLibrary,
|
|
77
78
|
$,
|
|
@@ -131,14 +132,15 @@ sap.ui.define([
|
|
|
131
132
|
coreLibrary,
|
|
132
133
|
FilterType,
|
|
133
134
|
DateTimeOffset,
|
|
134
|
-
|
|
135
|
+
ODataString,
|
|
135
136
|
DateTimeWithTimezone,
|
|
136
137
|
Integer,
|
|
137
138
|
Boolean,
|
|
138
139
|
GanttChartConfigurationUtils,
|
|
139
140
|
Lib,
|
|
140
141
|
PrintConfig,
|
|
141
|
-
PrintUtils
|
|
142
|
+
PrintUtils,
|
|
143
|
+
Log
|
|
142
144
|
) {
|
|
143
145
|
"use strict";
|
|
144
146
|
var oResourceBundle = Lib.getResourceBundleFor("sap.gantt");
|
|
@@ -162,7 +164,7 @@ sap.ui.define([
|
|
|
162
164
|
* @extend sap.ui.core.Element
|
|
163
165
|
*
|
|
164
166
|
* @author SAP SE
|
|
165
|
-
* @version 1.
|
|
167
|
+
* @version 1.140.0
|
|
166
168
|
* @since 1.66
|
|
167
169
|
*
|
|
168
170
|
* @constructor
|
|
@@ -396,6 +398,8 @@ sap.ui.define([
|
|
|
396
398
|
that._ganttChartClone._bExpandRows = true;
|
|
397
399
|
updateProgressIndicator(); // 3rd progress update
|
|
398
400
|
return that._expandRowSettings();
|
|
401
|
+
}).then(function () {
|
|
402
|
+
return that._fetchFont(that._ganttChartClone);
|
|
399
403
|
}).then(function () {
|
|
400
404
|
that._ganttChartClone._bExpandRows = false;
|
|
401
405
|
that._setCloneDivHeight();
|
|
@@ -619,6 +623,8 @@ sap.ui.define([
|
|
|
619
623
|
}).then(function (){
|
|
620
624
|
that._ganttChartClone._bExpandRows = true;
|
|
621
625
|
return that._expandRowSettings();
|
|
626
|
+
}).then(function () {
|
|
627
|
+
return that._fetchFont(that._ganttChartClone);
|
|
622
628
|
}).then(function () {
|
|
623
629
|
that._ganttChartClone._bExpandRows = false;
|
|
624
630
|
that._setCloneDivHeightNonOptimised();
|
|
@@ -1874,15 +1880,17 @@ sap.ui.define([
|
|
|
1874
1880
|
return this._ganttChartClone.getInnerGantt().resolveWhenReady(this._originalHasRenderedShapes).then(function () {
|
|
1875
1881
|
this._ganttChartClone._bRenderGanttClone = false;
|
|
1876
1882
|
return this.renderGanttClone().then(function () {
|
|
1877
|
-
this.
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
this.
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
this.
|
|
1883
|
+
return this._fetchFont(this._ganttChartClone).then(function () {
|
|
1884
|
+
this._setCloneDivHeightNonOptimised();
|
|
1885
|
+
document.getElementById(this._ganttChartClone.getId() + "-sapGanttBackgroundTableContent").style.height = this._iContentHeight;
|
|
1886
|
+
document.getElementById(this._ganttChartClone.getTable().getId() + "-tableCCnt").style.height = this._iContentHeight;
|
|
1887
|
+
this._createGanttCanvas().then(function (oUpdatedCanvas) {
|
|
1888
|
+
this._oGanttCanvas = oUpdatedCanvas;
|
|
1889
|
+
this._updateDialogPreview();
|
|
1890
|
+
this._oFlexBoxPreview.setBusy(false);
|
|
1891
|
+
}.bind(this)).catch(function () {
|
|
1892
|
+
this._oFlexBoxPreview.setBusy(false);
|
|
1893
|
+
}.bind(this));
|
|
1886
1894
|
}.bind(this));
|
|
1887
1895
|
}.bind(this));
|
|
1888
1896
|
}.bind(this)).catch(function () {
|
|
@@ -2509,6 +2517,39 @@ sap.ui.define([
|
|
|
2509
2517
|
}
|
|
2510
2518
|
};
|
|
2511
2519
|
|
|
2520
|
+
GanttPrinting.prototype._fetchFont = async function (oGanttChart) {
|
|
2521
|
+
var oSvgChart = oGanttChart.getDomRef().getElementsByClassName("sapGanttChartSvg")[0];
|
|
2522
|
+
if (this.fontStyleElement && oSvgChart) {
|
|
2523
|
+
oSvgChart.insertBefore(this.fontStyleElement, oSvgChart.firstChild);
|
|
2524
|
+
return;
|
|
2525
|
+
}
|
|
2526
|
+
var sTheme = GanttChartConfigurationUtils.getTheme();
|
|
2527
|
+
var sPath = 'base';
|
|
2528
|
+
if (sTheme.indexOf("sap_horizon") > -1) {
|
|
2529
|
+
sPath = sTheme;
|
|
2530
|
+
}
|
|
2531
|
+
var sDownloadURI = sap.ui.require.toUrl("sap/ui/core/themes/" + sPath + "/fonts/SAP-icons.ttf");
|
|
2532
|
+
if (oSvgChart) {
|
|
2533
|
+
try {
|
|
2534
|
+
const response = await fetch(sDownloadURI);
|
|
2535
|
+
const buffer = await response.arrayBuffer();
|
|
2536
|
+
const uint8Array = new Uint8Array(buffer);
|
|
2537
|
+
let fontString = '';
|
|
2538
|
+
const chunkSize = 8192; // Process in chunks to avoid stack overflow
|
|
2539
|
+
for (let i = 0; i < uint8Array.length; i += chunkSize) {
|
|
2540
|
+
fontString += String.fromCharCode(...uint8Array.subarray(i, i + chunkSize));
|
|
2541
|
+
}
|
|
2542
|
+
fontString = btoa(fontString);
|
|
2543
|
+
this.fontStyleElement = document.createElement("style");
|
|
2544
|
+
this.fontStyleElement.setAttribute("type", "text/css");
|
|
2545
|
+
this.fontStyleElement.textContent = "@font-face { font-family: 'SAP-icons'; src: url(data:font/ttf;base64," + fontString + ") format('truetype'); font-weight: normal; font-style: normal;}";
|
|
2546
|
+
oSvgChart.insertBefore(this.fontStyleElement, oSvgChart.firstChild);
|
|
2547
|
+
} catch (error) {
|
|
2548
|
+
Log.error("Error fetching font:", error);
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
};
|
|
2552
|
+
|
|
2512
2553
|
GanttPrinting.prototype._setStyleToGanttChartSvg = function (oGanttChart) {
|
|
2513
2554
|
var $SvgChart = oGanttChart.$().find("svg.sapGanttChartSvg")[0];
|
|
2514
2555
|
var $SvgChartHeader = oGanttChart.$().find("svg.sapGanttChartHeaderSvg")[0];
|
|
@@ -3262,7 +3303,7 @@ sap.ui.define([
|
|
|
3262
3303
|
},
|
|
3263
3304
|
{
|
|
3264
3305
|
path: 'setting>/timezone',
|
|
3265
|
-
type: new
|
|
3306
|
+
type: new ODataString()
|
|
3266
3307
|
}
|
|
3267
3308
|
],
|
|
3268
3309
|
type: new DateTimeWithTimezone()
|
|
@@ -3284,7 +3325,7 @@ sap.ui.define([
|
|
|
3284
3325
|
},
|
|
3285
3326
|
{
|
|
3286
3327
|
path: 'setting>/timezone',
|
|
3287
|
-
type: new
|
|
3328
|
+
type: new ODataString()
|
|
3288
3329
|
}
|
|
3289
3330
|
],
|
|
3290
3331
|
type: new DateTimeWithTimezone()
|
|
@@ -1156,20 +1156,14 @@ sap.ui.define([
|
|
|
1156
1156
|
"stroke-width": 1
|
|
1157
1157
|
};
|
|
1158
1158
|
var mBias = Utility.getShapeBias(oElement);
|
|
1159
|
-
var
|
|
1160
|
-
|
|
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 *
|
|
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 *
|
|
1166
|
+
iRightY = bIsTransformed ? iY + (iHeight * iRightAnchorPosition) - (iRectWidth / 2) : iY + (iHeight * iRightAnchorPosition) - (iRectWidth / 2) + mBias.y;
|
|
1173
1167
|
|
|
1174
1168
|
return [
|
|
1175
1169
|
jQuery.extend({
|
|
@@ -67,32 +67,11 @@ sap.ui.define([
|
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
if ('wheelDelta' in oEvent) {
|
|
76
|
-
iSpinY = oEvent.wheelDelta / 120;
|
|
77
|
-
}
|
|
78
|
-
if ('wheelDeltaY' in oEvent) {
|
|
79
|
-
iSpinY = oEvent.wheelDeltaY / 120;
|
|
80
|
-
}
|
|
81
|
-
var bSpinY = Math.abs(iSpinY) >= 1;
|
|
82
|
-
|
|
83
|
-
var iHorizontalDelta = oEvent.deltaX;
|
|
84
|
-
var iVerticalDelta = oEvent.deltaY;
|
|
85
|
-
|
|
86
|
-
if (bSpinY) {
|
|
87
|
-
iHorizontalDelta = oEvent.deltaY;
|
|
88
|
-
iVerticalDelta = oEvent.deltaX;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
var bHorizontalDelta = Math.abs(iHorizontalDelta) > Math.abs(iVerticalDelta);
|
|
92
|
-
var oScrollExtension = this._getScrollExtension(),
|
|
93
|
-
bHorizontalScrolling = bHorizontalDelta && oEvent.shiftKey;
|
|
94
|
-
|
|
95
|
-
var iScrollDelta = bHorizontalDelta ? iHorizontalDelta : iVerticalDelta,
|
|
70
|
+
var oScrollExtension = this._getScrollExtension();
|
|
71
|
+
var bHorizontalDelta = Math.abs(oEvent.deltaX) > Math.abs(oEvent.deltaY),
|
|
72
|
+
bHorizontalScrolling = bHorizontalDelta || oEvent.shiftKey;
|
|
73
|
+
|
|
74
|
+
var iScrollDelta = bHorizontalDelta ? oEvent.deltaX : oEvent.deltaY,
|
|
96
75
|
bScrollingForward = iScrollDelta > 0,
|
|
97
76
|
bScrolledToEnd = false;
|
|
98
77
|
if (iScrollDelta === 0) {
|
|
@@ -50,7 +50,7 @@ sap.ui.define([
|
|
|
50
50
|
* @extends sap.gantt.simple.BasePath
|
|
51
51
|
*
|
|
52
52
|
* @author SAP SE
|
|
53
|
-
* @version 1.
|
|
53
|
+
* @version 1.140.0
|
|
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
|
|
789
|
-
|
|
790
|
-
|
|
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 *
|
|
800
|
+
y: oBBox.y + oBBox.height * iLeftAnchorPosition + (parseFloat(iTranslateY)),
|
|
808
801
|
dx: 0,
|
|
809
|
-
dyTop: oBBox.height *
|
|
810
|
-
dyBottom : oBBox.height * (1 -
|
|
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 *
|
|
807
|
+
y: oBBox.y + oBBox.height * iRightAnchorPosition + (parseFloat(iTranslateY)),
|
|
815
808
|
dx: 0,
|
|
816
|
-
dyTop: oBBox.height *
|
|
817
|
-
dyBottom : oBBox.height * (1 -
|
|
809
|
+
dyTop: oBBox.height * iRightAnchorPosition,
|
|
810
|
+
dyBottom : oBBox.height * (1 - iRightAnchorPosition)
|
|
818
811
|
}
|
|
819
812
|
};
|
|
820
813
|
}
|