scichart 3.0.269 → 3.0.284
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/Builder/chartBuilder.d.ts +7 -7
- package/Charting/ChartModifiers/ChartModifierBase2D.js +2 -3
- package/Charting/ChartModifiers/CursorModifier.d.ts +27 -12
- package/Charting/ChartModifiers/CursorModifier.js +87 -12
- package/Charting/ChartModifiers/XAxisDragModifier.d.ts +15 -12
- package/Charting/ChartModifiers/YAxisDragModifier.d.ts +15 -12
- package/Charting/ChartModifiers/constants.d.ts +4 -1
- package/Charting/ChartModifiers/constants.js +3 -0
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/BaseAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/BaseCenteredAxisLayoutStrategy.d.ts +1 -1
- package/Charting/LayoutManager/BottomAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/BottomAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/CentralAxesLayoutManager.d.ts +1 -1
- package/Charting/LayoutManager/LayoutManager.d.ts +14 -4
- package/Charting/LayoutManager/LayoutManager.js +133 -35
- package/Charting/LayoutManager/LeftAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/LeftAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +3 -3
- package/Charting/LayoutManager/RightAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/RightAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -1
- package/Charting/LayoutManager/TopAlignedInnerAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/TopAlignedOuterAxisLayoutStrategy.js +4 -1
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.d.ts +1 -0
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -1
- package/Charting/Visuals/Annotations/AnnotationBase.d.ts +6 -6
- package/Charting/Visuals/Annotations/AnnotationBase.js +13 -9
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +7 -7
- package/Charting/Visuals/Annotations/BoxAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/BoxAnnotation.js +21 -21
- package/Charting/Visuals/Annotations/LineAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/LineAnnotation.js +4 -4
- package/Charting/Visuals/Annotations/NativeTextAnnotation.d.ts +1 -1
- package/Charting/Visuals/Annotations/NativeTextAnnotation.js +21 -21
- package/Charting/Visuals/Annotations/SvgAnnotationBase.d.ts +1 -1
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +1 -6
- package/Charting/Visuals/Axis/AxisBase2D.js +13 -19
- package/Charting/Visuals/Axis/AxisCore.js +4 -1
- package/Charting/Visuals/Axis/LogarithmicAxis.d.ts +2 -2
- package/Charting/Visuals/I2DSurfaceOptions.d.ts +1 -1
- package/Charting/Visuals/PointMarkers/SpritePointMarker.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseHeatmapRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseLineRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +14 -0
- package/Charting/Visuals/RenderableSeries/DataLabels/BandSeriesDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/ColumnSeriesDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/ContoursDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/DataLabelState.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/HeatMapDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/DataLabels/LineSeriesDataLabelProvider.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastCandlestickRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastColumnRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastErrorBarsRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastImpulseRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/StackedColumnRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/RenderableSeries/UniformContoursRenderableSeries.d.ts +1 -1
- package/Charting/Visuals/SciChartSurface.d.ts +8 -3
- package/Charting/Visuals/SciChartSurface.js +10 -4
- package/Charting/Visuals/licenseManager2D.js +4 -2
- package/Charting3D/Visuals/Axis/NumericAxis3D.d.ts +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +2 -1
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/Core/Telemetry.js +4 -1
- package/README.md +61 -13
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +16 -16
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +16 -16
- package/_wasm/scichart3d.wasm +0 -0
- package/index.d.ts +958 -0
- package/index.js +1298 -2
- package/index.min.js +1 -0
- package/package.json +1 -1
- package/types/AxisAlignment.d.ts +1 -0
- package/types/AxisAlignment.js +5 -1
- package/utils/array.d.ts +9 -0
- package/utils/array.js +19 -1
|
@@ -29,19 +29,19 @@ var LayoutManager = /** @class */ (function () {
|
|
|
29
29
|
/**
|
|
30
30
|
* Layout strategy for layout of left aligned axis outside
|
|
31
31
|
*/
|
|
32
|
-
this.
|
|
32
|
+
this.leftOuterAxesLayoutStrategyProperty = new LeftAlignedOuterAxisLayoutStrategy_1.LeftAlignedOuterAxisLayoutStrategy();
|
|
33
33
|
/**
|
|
34
34
|
* Layout strategy for layout of right aligned axis outside
|
|
35
35
|
*/
|
|
36
|
-
this.
|
|
36
|
+
this.rightOuterAxesLayoutStrategyProperty = new RightAlignedOuterAxisLayoutStrategy_1.RightAlignedOuterAxisLayoutStrategy();
|
|
37
37
|
/**
|
|
38
38
|
* Layout strategy for layout of top aligned axis outside
|
|
39
39
|
*/
|
|
40
|
-
this.
|
|
40
|
+
this.topOuterAxesLayoutStrategyProperty = new TopAlignedOuterAxisLayoutStrategy_1.TopAlignedOuterAxisLayoutStrategy();
|
|
41
41
|
/**
|
|
42
42
|
* Layout strategy for layout of bottom aligned axis outside
|
|
43
43
|
*/
|
|
44
|
-
this.
|
|
44
|
+
this.bottomOuterAxesLayoutStrategyProperty = new BottomAlignedOuterAxisLayoutStrategy_1.BottomAlignedOuterAxisLayoutStrategy();
|
|
45
45
|
/**
|
|
46
46
|
* Layout strategy for layout of left aligned inner axis
|
|
47
47
|
*/
|
|
@@ -69,6 +69,101 @@ var LayoutManager = /** @class */ (function () {
|
|
|
69
69
|
this.topInnerAxesLayoutStrategy = this.createStrategy(options === null || options === void 0 ? void 0 : options.TopInner, this.topInnerAxesLayoutStrategy);
|
|
70
70
|
this.bottomInnerAxesLayoutStrategy = this.createStrategy(options === null || options === void 0 ? void 0 : options.BottomInner, this.bottomInnerAxesLayoutStrategy);
|
|
71
71
|
}
|
|
72
|
+
Object.defineProperty(LayoutManager.prototype, "leftOuterAxesLayoutStrategy", {
|
|
73
|
+
get: function () {
|
|
74
|
+
return this.leftOuterAxesLayoutStrategyProperty;
|
|
75
|
+
},
|
|
76
|
+
set: function (value) {
|
|
77
|
+
var _a;
|
|
78
|
+
var currentValue = this.leftOuterAxesLayoutStrategyProperty;
|
|
79
|
+
if (currentValue !== value) {
|
|
80
|
+
this.leftOuterAxesLayoutStrategyProperty = value;
|
|
81
|
+
if (currentValue.isStacked && !value.isStacked) {
|
|
82
|
+
this.groupAxesByLayoutStrategy();
|
|
83
|
+
resetAxes(this.axesGroupedByLayoutStrategy.leftOuterAxes);
|
|
84
|
+
}
|
|
85
|
+
(_a = this.sciChartSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
enumerable: false,
|
|
89
|
+
configurable: true
|
|
90
|
+
});
|
|
91
|
+
Object.defineProperty(LayoutManager.prototype, "rightOuterAxesLayoutStrategy", {
|
|
92
|
+
get: function () {
|
|
93
|
+
return this.rightOuterAxesLayoutStrategyProperty;
|
|
94
|
+
},
|
|
95
|
+
set: function (value) {
|
|
96
|
+
var _a;
|
|
97
|
+
var currentValue = this.rightOuterAxesLayoutStrategyProperty;
|
|
98
|
+
if (currentValue !== value) {
|
|
99
|
+
this.rightOuterAxesLayoutStrategyProperty = value;
|
|
100
|
+
if (currentValue.isStacked && !value.isStacked) {
|
|
101
|
+
this.groupAxesByLayoutStrategy();
|
|
102
|
+
resetAxes(this.axesGroupedByLayoutStrategy.rightOuterAxes);
|
|
103
|
+
}
|
|
104
|
+
(_a = this.sciChartSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
enumerable: false,
|
|
108
|
+
configurable: true
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(LayoutManager.prototype, "topOuterAxesLayoutStrategy", {
|
|
111
|
+
get: function () {
|
|
112
|
+
return this.topOuterAxesLayoutStrategyProperty;
|
|
113
|
+
},
|
|
114
|
+
set: function (value) {
|
|
115
|
+
var _a;
|
|
116
|
+
var currentValue = this.topOuterAxesLayoutStrategyProperty;
|
|
117
|
+
if (currentValue !== value) {
|
|
118
|
+
this.topOuterAxesLayoutStrategyProperty = value;
|
|
119
|
+
if (currentValue.isStacked && !value.isStacked) {
|
|
120
|
+
this.groupAxesByLayoutStrategy();
|
|
121
|
+
resetAxes(this.axesGroupedByLayoutStrategy.topOuterAxes);
|
|
122
|
+
}
|
|
123
|
+
(_a = this.sciChartSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
enumerable: false,
|
|
127
|
+
configurable: true
|
|
128
|
+
});
|
|
129
|
+
Object.defineProperty(LayoutManager.prototype, "bottomOuterAxesLayoutStrategy", {
|
|
130
|
+
get: function () {
|
|
131
|
+
return this.bottomOuterAxesLayoutStrategyProperty;
|
|
132
|
+
},
|
|
133
|
+
set: function (value) {
|
|
134
|
+
var _a;
|
|
135
|
+
var currentValue = this.bottomOuterAxesLayoutStrategyProperty;
|
|
136
|
+
if (currentValue !== value) {
|
|
137
|
+
this.bottomOuterAxesLayoutStrategyProperty = value;
|
|
138
|
+
if (currentValue.isStacked && !value.isStacked) {
|
|
139
|
+
this.groupAxesByLayoutStrategy();
|
|
140
|
+
resetAxes(this.axesGroupedByLayoutStrategy.bottomOuterAxes);
|
|
141
|
+
}
|
|
142
|
+
(_a = this.sciChartSurface) === null || _a === void 0 ? void 0 : _a.invalidateElement();
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
enumerable: false,
|
|
146
|
+
configurable: true
|
|
147
|
+
});
|
|
148
|
+
LayoutManager.prototype.getAxisLayoutStrategy = function (axisAlignment, isInnerAxis) {
|
|
149
|
+
switch (axisAlignment) {
|
|
150
|
+
case AxisAlignment_1.EAxisAlignment.Left: {
|
|
151
|
+
return isInnerAxis ? this.leftInnerAxesLayoutStrategy : this.leftOuterAxesLayoutStrategy;
|
|
152
|
+
}
|
|
153
|
+
case AxisAlignment_1.EAxisAlignment.Right: {
|
|
154
|
+
return isInnerAxis ? this.rightInnerAxesLayoutStrategy : this.rightOuterAxesLayoutStrategy;
|
|
155
|
+
}
|
|
156
|
+
case AxisAlignment_1.EAxisAlignment.Top: {
|
|
157
|
+
return isInnerAxis ? this.topInnerAxesLayoutStrategy : this.topOuterAxesLayoutStrategy;
|
|
158
|
+
}
|
|
159
|
+
case AxisAlignment_1.EAxisAlignment.Bottom: {
|
|
160
|
+
return isInnerAxis ? this.bottomInnerAxesLayoutStrategy : this.bottomOuterAxesLayoutStrategy;
|
|
161
|
+
}
|
|
162
|
+
default: {
|
|
163
|
+
return (0, AxisAlignment_1.handleInvalidAxisAlignment)(axisAlignment);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
};
|
|
72
167
|
LayoutManager.prototype.layoutChart = function (viewportSize, padding) {
|
|
73
168
|
var _a, _b, _c, _d;
|
|
74
169
|
this.groupAxesByLayoutStrategy();
|
|
@@ -171,38 +266,36 @@ var LayoutManager = /** @class */ (function () {
|
|
|
171
266
|
var groupAxes = function (axes) {
|
|
172
267
|
axes.forEach(function (axis) {
|
|
173
268
|
var axisAlignment = axis.axisAlignment, isInnerAxis = axis.isInnerAxis, isVisible = axis.isVisible;
|
|
174
|
-
if (
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
269
|
+
if (isInnerAxis) {
|
|
270
|
+
switch (axisAlignment) {
|
|
271
|
+
case AxisAlignment_1.EAxisAlignment.Top:
|
|
272
|
+
topInnerAxes.push(axis);
|
|
273
|
+
break;
|
|
274
|
+
case AxisAlignment_1.EAxisAlignment.Bottom:
|
|
275
|
+
bottomInnerAxes.push(axis);
|
|
276
|
+
break;
|
|
277
|
+
case AxisAlignment_1.EAxisAlignment.Left:
|
|
278
|
+
leftInnerAxes.push(axis);
|
|
279
|
+
break;
|
|
280
|
+
case AxisAlignment_1.EAxisAlignment.Right:
|
|
281
|
+
rightInnerAxes.push(axis);
|
|
282
|
+
break;
|
|
190
283
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
284
|
+
}
|
|
285
|
+
else {
|
|
286
|
+
switch (axisAlignment) {
|
|
287
|
+
case AxisAlignment_1.EAxisAlignment.Top:
|
|
288
|
+
topOuterAxes.push(axis);
|
|
289
|
+
break;
|
|
290
|
+
case AxisAlignment_1.EAxisAlignment.Bottom:
|
|
291
|
+
bottomOuterAxes.push(axis);
|
|
292
|
+
break;
|
|
293
|
+
case AxisAlignment_1.EAxisAlignment.Left:
|
|
294
|
+
leftOuterAxes.push(axis);
|
|
295
|
+
break;
|
|
296
|
+
case AxisAlignment_1.EAxisAlignment.Right:
|
|
297
|
+
rightOuterAxes.push(axis);
|
|
298
|
+
break;
|
|
206
299
|
}
|
|
207
300
|
}
|
|
208
301
|
});
|
|
@@ -242,3 +335,8 @@ var LayoutManager = /** @class */ (function () {
|
|
|
242
335
|
return LayoutManager;
|
|
243
336
|
}());
|
|
244
337
|
exports.LayoutManager = LayoutManager;
|
|
338
|
+
var resetAxes = function (axes) {
|
|
339
|
+
if (axes.length > 0) {
|
|
340
|
+
axes[0].isPrimaryAxis = true;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
@@ -42,7 +42,10 @@ var LeftAlignedInnerAxisLayoutStrategy = /** @class */ (function (_super) {
|
|
|
42
42
|
};
|
|
43
43
|
LeftAlignedInnerAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
|
|
44
44
|
// Set axisLength to default value which is seriesViewRect.height
|
|
45
|
-
axes.forEach(function (axis) {
|
|
45
|
+
axes.forEach(function (axis) {
|
|
46
|
+
axis.axisLength = undefined;
|
|
47
|
+
axis.offset = 0;
|
|
48
|
+
});
|
|
46
49
|
if (axes.length === 0) {
|
|
47
50
|
return;
|
|
48
51
|
}
|
|
@@ -44,7 +44,10 @@ var LeftAlignedOuterAxisLayoutStrategy = /** @class */ (function (_super) {
|
|
|
44
44
|
};
|
|
45
45
|
LeftAlignedOuterAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
|
|
46
46
|
// Set axisLength to default value which is seriesViewRect.height
|
|
47
|
-
axes.forEach(function (axis) {
|
|
47
|
+
axes.forEach(function (axis) {
|
|
48
|
+
axis.axisLength = undefined;
|
|
49
|
+
axis.offset = 0;
|
|
50
|
+
});
|
|
48
51
|
this.layoutAxesFromRightToLeft(left, top, right, bottom, axes);
|
|
49
52
|
};
|
|
50
53
|
return LeftAlignedOuterAxisLayoutStrategy;
|
|
@@ -8,6 +8,7 @@ import { ChartLayoutState } from "./ChartLayoutState";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class LeftAlignedOuterVerticallyStackedAxisLayoutStrategy extends BaseAxisLayoutStrategy {
|
|
10
10
|
readonly type = ELayoutStrategyType.LeftStacked;
|
|
11
|
+
readonly isStacked: boolean;
|
|
11
12
|
constructor();
|
|
12
13
|
measureAxes(sciChartSurface: SciChartSurface, chartLayoutState: ChartLayoutState, axes: AxisBase2D[]): void;
|
|
13
14
|
layoutAxes(left: number, top: number, right: number, bottom: number, axes: AxisBase2D[]): void;
|
|
@@ -28,6 +28,7 @@ var LeftAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functio
|
|
|
28
28
|
function LeftAlignedOuterVerticallyStackedAxisLayoutStrategy() {
|
|
29
29
|
var _this = _super.call(this) || this;
|
|
30
30
|
_this.type = LayoutStrategyType_1.ELayoutStrategyType.LeftStacked;
|
|
31
|
+
_this.isStacked = true;
|
|
31
32
|
_this.layoutAxisPartsStrategy = AxisLayoutHelpers_1.layoutAxisPartsLeftStrategy;
|
|
32
33
|
return _this;
|
|
33
34
|
}
|
|
@@ -53,7 +54,7 @@ var LeftAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functio
|
|
|
53
54
|
var totalAxisAreaHeight = bottom - top;
|
|
54
55
|
var firstAxis = axes[0];
|
|
55
56
|
var lastAxis = axes[axes.length - 1];
|
|
56
|
-
var axesWithDefinedLength = axes.filter(function (axis) { return axis.stackedAxisLength; });
|
|
57
|
+
var axesWithDefinedLength = axes.filter(function (axis) { return axis.stackedAxisLength !== undefined; });
|
|
57
58
|
var spaceWithoutBorders = axes.reduce(function (acc, axis) { return acc - axis.axisLayoutState.additionalBottomSize - axis.axisLayoutState.additionalTopSize; }, totalAxisAreaHeight +
|
|
58
59
|
(firstAxis === null || firstAxis === void 0 ? void 0 : firstAxis.axisLayoutState.additionalTopSize) +
|
|
59
60
|
(lastAxis === null || lastAxis === void 0 ? void 0 : lastAxis.axisLayoutState.additionalBottomSize));
|
|
@@ -71,14 +72,13 @@ var LeftAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functio
|
|
|
71
72
|
var _a = axis.axisLayoutState, axisSize = _a.axisSize, additionalRightSize = _a.additionalRightSize, additionalBottomSize = _a.additionalBottomSize, additionalTopSize = _a.additionalTopSize;
|
|
72
73
|
var rightOffset = right - additionalRightSize;
|
|
73
74
|
var leftOffset = rightOffset - axisSize;
|
|
74
|
-
var axisReservedHeight = axis.stackedAxisLength
|
|
75
|
+
var axisReservedHeight = axis.stackedAxisLength !== undefined
|
|
75
76
|
? _this.calculateTotalAxisHeight(axis, spaceWithoutBorders)
|
|
76
77
|
: defaultAxisReservedHeight;
|
|
77
78
|
var bottomOffset = topOffset + axisReservedHeight - additionalBottomSize;
|
|
78
79
|
topOffset += additionalTopSize;
|
|
79
80
|
axis.offset = topOffset - top;
|
|
80
81
|
axis.axisLength = bottomOffset - topOffset;
|
|
81
|
-
axis.isStackedAxis = true;
|
|
82
82
|
axis.isPrimaryAxis = true;
|
|
83
83
|
axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
|
|
84
84
|
topOffset = bottomOffset + additionalBottomSize;
|
|
@@ -42,7 +42,10 @@ var RightAlignedInnerAxisLayoutStrategy = /** @class */ (function (_super) {
|
|
|
42
42
|
};
|
|
43
43
|
RightAlignedInnerAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
|
|
44
44
|
// Set axisLength to default value which is seriesViewRect.height
|
|
45
|
-
axes.forEach(function (axis) {
|
|
45
|
+
axes.forEach(function (axis) {
|
|
46
|
+
axis.axisLength = undefined;
|
|
47
|
+
axis.offset = 0;
|
|
48
|
+
});
|
|
46
49
|
if (axes.length === 0) {
|
|
47
50
|
return;
|
|
48
51
|
}
|
|
@@ -44,7 +44,10 @@ var RightAlignedOuterAxisLayoutStrategy = /** @class */ (function (_super) {
|
|
|
44
44
|
};
|
|
45
45
|
RightAlignedOuterAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
|
|
46
46
|
// Set axisLength to default value which is seriesViewRect.height
|
|
47
|
-
axes.forEach(function (axis) {
|
|
47
|
+
axes.forEach(function (axis) {
|
|
48
|
+
axis.axisLength = undefined;
|
|
49
|
+
axis.offset = 0;
|
|
50
|
+
});
|
|
48
51
|
this.layoutAxesFromLeftToRight(left, top, right, bottom, axes);
|
|
49
52
|
};
|
|
50
53
|
return RightAlignedOuterAxisLayoutStrategy;
|
|
@@ -8,6 +8,7 @@ import { ChartLayoutState } from "./ChartLayoutState";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class RightAlignedOuterVerticallyStackedAxisLayoutStrategy extends BaseAxisLayoutStrategy {
|
|
10
10
|
readonly type = ELayoutStrategyType.RightStacked;
|
|
11
|
+
readonly isStacked: boolean;
|
|
11
12
|
constructor();
|
|
12
13
|
measureAxes(sciChartSurface: SciChartSurface, chartLayoutState: ChartLayoutState, axes: AxisBase2D[]): void;
|
|
13
14
|
layoutAxes(left: number, top: number, right: number, bottom: number, axes: AxisBase2D[]): void;
|
|
@@ -28,6 +28,7 @@ var RightAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functi
|
|
|
28
28
|
function RightAlignedOuterVerticallyStackedAxisLayoutStrategy() {
|
|
29
29
|
var _this = _super.call(this) || this;
|
|
30
30
|
_this.type = LayoutStrategyType_1.ELayoutStrategyType.RightStacked;
|
|
31
|
+
_this.isStacked = true;
|
|
31
32
|
_this.layoutAxisPartsStrategy = AxisLayoutHelpers_1.layoutAxisPartsRightStrategy;
|
|
32
33
|
return _this;
|
|
33
34
|
}
|
|
@@ -77,7 +78,6 @@ var RightAlignedOuterVerticallyStackedAxisLayoutStrategy = /** @class */ (functi
|
|
|
77
78
|
topOffset += additionalTopSize;
|
|
78
79
|
axis.offset = topOffset - top;
|
|
79
80
|
axis.axisLength = bottomOffset - topOffset;
|
|
80
|
-
axis.isStackedAxis = true;
|
|
81
81
|
axis.isPrimaryAxis = true;
|
|
82
82
|
axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
|
|
83
83
|
topOffset = bottomOffset + additionalBottomSize;
|
|
@@ -42,7 +42,10 @@ var TopAlignedInnerAxisLayoutStrategy = /** @class */ (function (_super) {
|
|
|
42
42
|
};
|
|
43
43
|
TopAlignedInnerAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
|
|
44
44
|
// Set axisLength to default value which is seriesViewRect.width
|
|
45
|
-
axes.forEach(function (axis) {
|
|
45
|
+
axes.forEach(function (axis) {
|
|
46
|
+
axis.axisLength = undefined;
|
|
47
|
+
axis.offset = 0;
|
|
48
|
+
});
|
|
46
49
|
if (axes.length === 0) {
|
|
47
50
|
return;
|
|
48
51
|
}
|
|
@@ -44,7 +44,10 @@ var TopAlignedOuterAxisLayoutStrategy = /** @class */ (function (_super) {
|
|
|
44
44
|
};
|
|
45
45
|
TopAlignedOuterAxisLayoutStrategy.prototype.layoutAxes = function (left, top, right, bottom, axes) {
|
|
46
46
|
// Set axisLength to default value which is seriesViewRect.width
|
|
47
|
-
axes.forEach(function (axis) {
|
|
47
|
+
axes.forEach(function (axis) {
|
|
48
|
+
axis.axisLength = undefined;
|
|
49
|
+
axis.offset = 0;
|
|
50
|
+
});
|
|
48
51
|
this.layoutAxesFromBottomToTop(left, top, right, bottom, axes);
|
|
49
52
|
};
|
|
50
53
|
return TopAlignedOuterAxisLayoutStrategy;
|
|
@@ -8,6 +8,7 @@ import { ChartLayoutState } from "./ChartLayoutState";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class TopAlignedOuterHorizontallyStackedAxisLayoutStrategy extends BaseAxisLayoutStrategy {
|
|
10
10
|
readonly type = ELayoutStrategyType.TopStacked;
|
|
11
|
+
readonly isStacked: boolean;
|
|
11
12
|
constructor();
|
|
12
13
|
measureAxes(sciChartSurface: SciChartSurface, chartLayoutState: ChartLayoutState, axes: AxisBase2D[]): void;
|
|
13
14
|
layoutAxes(left: number, top: number, right: number, bottom: number, axes: AxisBase2D[]): void;
|
|
@@ -28,6 +28,7 @@ var TopAlignedOuterHorizontallyStackedAxisLayoutStrategy = /** @class */ (functi
|
|
|
28
28
|
function TopAlignedOuterHorizontallyStackedAxisLayoutStrategy() {
|
|
29
29
|
var _this = _super.call(this) || this;
|
|
30
30
|
_this.type = LayoutStrategyType_1.ELayoutStrategyType.TopStacked;
|
|
31
|
+
_this.isStacked = true;
|
|
31
32
|
_this.layoutAxisPartsStrategy = AxisLayoutHelpers_1.layoutAxisPartsTopStrategy;
|
|
32
33
|
return _this;
|
|
33
34
|
}
|
|
@@ -77,7 +78,6 @@ var TopAlignedOuterHorizontallyStackedAxisLayoutStrategy = /** @class */ (functi
|
|
|
77
78
|
leftOffset += additionalLeftSize;
|
|
78
79
|
axis.offset = leftOffset - left;
|
|
79
80
|
axis.axisLength = rightOffset - leftOffset;
|
|
80
|
-
axis.isStackedAxis = true;
|
|
81
81
|
axis.isPrimaryAxis = true;
|
|
82
82
|
axis.viewRect = Rect_1.Rect.createWithCoords(leftOffset, topOffset, rightOffset, bottomOffset);
|
|
83
83
|
leftOffset = rightOffset + additionalRightSize;
|
|
@@ -39,7 +39,7 @@ export interface IAnnotationBaseOptions {
|
|
|
39
39
|
*/
|
|
40
40
|
isHidden?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* @description set
|
|
42
|
+
* @description set annotation resize direction
|
|
43
43
|
*/
|
|
44
44
|
resizeDirections?: EXyDirection;
|
|
45
45
|
/**
|
|
@@ -187,7 +187,7 @@ export interface IAnnotationBaseOptions {
|
|
|
187
187
|
/** The thickness of the selection box line */
|
|
188
188
|
selectionBoxThickness?: number;
|
|
189
189
|
/** The dragPoints that should be enabled for this annotation */
|
|
190
|
-
dragPoints?: EDraggingGripPoint[];
|
|
190
|
+
dragPoints?: readonly EDraggingGripPoint[];
|
|
191
191
|
}
|
|
192
192
|
/**
|
|
193
193
|
* Defines the CoordinateMode for {@link AnnotationBase | Annotations} within SciChart's
|
|
@@ -256,7 +256,7 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
|
|
|
256
256
|
protected selectionBoxStrokeProperty: string;
|
|
257
257
|
protected selectionBoxDeltaProperty: number;
|
|
258
258
|
protected selectionBoxThicknessProperty: number;
|
|
259
|
-
protected dragPointsProperty: EDraggingGripPoint[];
|
|
259
|
+
protected dragPointsProperty: readonly EDraggingGripPoint[];
|
|
260
260
|
private opacityProperty;
|
|
261
261
|
private annotationLayerProperty;
|
|
262
262
|
private isEditableProperty;
|
|
@@ -371,9 +371,9 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
|
|
|
371
371
|
/** @inheritDoc */
|
|
372
372
|
onDetach(): void;
|
|
373
373
|
/** Get the dragging points that should be enabled for this annotation */
|
|
374
|
-
|
|
374
|
+
get dragPoints(): readonly EDraggingGripPoint[];
|
|
375
375
|
/** Set the dragging points that should be enabled for this annotation */
|
|
376
|
-
|
|
376
|
+
set dragPoints(dragPoints: readonly EDraggingGripPoint[]);
|
|
377
377
|
/** @inheritDoc */
|
|
378
378
|
abstract delete(): void;
|
|
379
379
|
/** Called internally. Send a click to the annotation if the point is in bounds, raising the clicked event and optionally selecting the annotation. */
|
|
@@ -426,7 +426,7 @@ export declare abstract class AnnotationBase implements IAnnotation, IAdornerPro
|
|
|
426
426
|
* Coordinates passed in are the top left and bottom right of the bounding box.
|
|
427
427
|
* To get the bounding coordinates in their original order call this.getAdornerAnnotationBorders(false, true);
|
|
428
428
|
*/
|
|
429
|
-
|
|
429
|
+
svgStringAdornerTemplate(x1: number, y1: number, x2: number, y2: number): string;
|
|
430
430
|
/**
|
|
431
431
|
* Updates adorner layer for the annotation
|
|
432
432
|
* @protected
|
|
@@ -515,15 +515,19 @@ var AnnotationBase = /** @class */ (function () {
|
|
|
515
515
|
this.selectedChanged.unsubscribeAll();
|
|
516
516
|
this.deleteAdorner();
|
|
517
517
|
};
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
518
|
+
Object.defineProperty(AnnotationBase.prototype, "dragPoints", {
|
|
519
|
+
/** Get the dragging points that should be enabled for this annotation */
|
|
520
|
+
get: function () {
|
|
521
|
+
return this.dragPointsProperty;
|
|
522
|
+
},
|
|
523
|
+
/** Set the dragging points that should be enabled for this annotation */
|
|
524
|
+
set: function (dragPoints) {
|
|
525
|
+
this.dragPointsProperty = dragPoints;
|
|
526
|
+
this.notifyPropertyChanged(constants_1.PROPERTY.DRAGPOINTS);
|
|
527
|
+
},
|
|
528
|
+
enumerable: false,
|
|
529
|
+
configurable: true
|
|
530
|
+
});
|
|
527
531
|
/** Called internally. Send a click to the annotation if the point is in bounds, raising the clicked event and optionally selecting the annotation. */
|
|
528
532
|
AnnotationBase.prototype.click = function (args, selectOnClick) {
|
|
529
533
|
var xyPoint = (0, translate_1.translateFromCanvasToSeriesViewRect)(args.mousePoint, this.parentSurface.seriesViewRect, true);
|
|
@@ -201,7 +201,7 @@ export declare class AxisMarkerAnnotation extends RenderContextAnnotationBase {
|
|
|
201
201
|
};
|
|
202
202
|
protected checkIsClickedOnAnnotationInternal(x: number, y: number): boolean;
|
|
203
203
|
protected updateAdornerInner(): void;
|
|
204
|
-
|
|
204
|
+
svgStringAdornerTemplate(x1: number, y1: number, x2: number, y2: number): string;
|
|
205
205
|
/**
|
|
206
206
|
* Calculates the adorner center relative to the canvas,
|
|
207
207
|
* The coordinates are not scaled
|
|
@@ -57,13 +57,6 @@ var AxisMarkerAnnotation = /** @class */ (function (_super) {
|
|
|
57
57
|
_this.fontStyleProperty = "Normal";
|
|
58
58
|
_this.colorProperty = "#FFFFFF";
|
|
59
59
|
_this.backgroundColorProperty = "#b36200";
|
|
60
|
-
_this.svgStringAdornerTemplate = function (x1, y1, x2, y2) {
|
|
61
|
-
var colorLine = _this.selectionBoxStroke;
|
|
62
|
-
var _a = _this.calculateAdornerCenter(), x = _a.x, y = _a.y;
|
|
63
|
-
var width = x2 - x1;
|
|
64
|
-
var height = y2 - y1;
|
|
65
|
-
return "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"".concat(x1, "\" y=\"").concat(y1, "\" width=\"").concat(width, "\" height=\"").concat(height, "\" stroke=\"").concat(colorLine, "\" stroke-width=\"").concat(_this.selectionBoxThickness, "px\" fill=\"none\" />\n ").concat(_this.getAnnotationGripSvg(x, y), "\n </svg>");
|
|
66
|
-
};
|
|
67
60
|
_this.fontSizeProperty = (_a = options === null || options === void 0 ? void 0 : options.fontSize) !== null && _a !== void 0 ? _a : _this.fontSizeProperty;
|
|
68
61
|
_this.fontFamilyProperty = (_b = options === null || options === void 0 ? void 0 : options.fontFamily) !== null && _b !== void 0 ? _b : _this.fontFamilyProperty;
|
|
69
62
|
_this.fontWeightProperty = (_c = options === null || options === void 0 ? void 0 : options.fontWeight) !== null && _c !== void 0 ? _c : _this.fontWeightProperty;
|
|
@@ -411,6 +404,13 @@ var AxisMarkerAnnotation = /** @class */ (function (_super) {
|
|
|
411
404
|
this.svgAdorner = annotationHelpers_1.annotationHelpers.createSvg(svgString, adornerSvgRoot);
|
|
412
405
|
}
|
|
413
406
|
};
|
|
407
|
+
AxisMarkerAnnotation.prototype.svgStringAdornerTemplate = function (x1, y1, x2, y2) {
|
|
408
|
+
var colorLine = this.selectionBoxStroke;
|
|
409
|
+
var _a = this.calculateAdornerCenter(), x = _a.x, y = _a.y;
|
|
410
|
+
var width = x2 - x1;
|
|
411
|
+
var height = y2 - y1;
|
|
412
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"".concat(x1, "\" y=\"").concat(y1, "\" width=\"").concat(width, "\" height=\"").concat(height, "\" stroke=\"").concat(colorLine, "\" stroke-width=\"").concat(this.selectionBoxThickness, "px\" fill=\"none\" />\n ").concat(this.getAnnotationGripSvg(x, y), "\n </svg>");
|
|
413
|
+
};
|
|
414
414
|
/**
|
|
415
415
|
* Calculates the adorner center relative to the canvas,
|
|
416
416
|
* The coordinates are not scaled
|
|
@@ -96,6 +96,6 @@ export declare class BoxAnnotation extends RenderContextAnnotationBase {
|
|
|
96
96
|
protected checkIsClickedOnAnnotationInternal(x: number, y: number): boolean;
|
|
97
97
|
protected notifyPropertyChanged(propertyName: string): void;
|
|
98
98
|
protected updateAdornerInner(): void;
|
|
99
|
-
|
|
99
|
+
svgStringAdornerTemplate(x1: number, y1: number, x2: number, y2: number): string;
|
|
100
100
|
private drawWithProvider;
|
|
101
101
|
}
|
|
@@ -56,27 +56,6 @@ var BoxAnnotation = /** @class */ (function (_super) {
|
|
|
56
56
|
/** @inheritDoc */
|
|
57
57
|
_this.type = IAnnotation_1.EAnnotationType.RenderContextBoxAnnotation;
|
|
58
58
|
_this.strokeThicknessProperty = 1;
|
|
59
|
-
_this.svgStringAdornerTemplate = function (x1, y1, x2, y2) {
|
|
60
|
-
var colorLine = _this.selectionBoxStroke;
|
|
61
|
-
var width = x2 - x1;
|
|
62
|
-
var height = y2 - y1;
|
|
63
|
-
var svg = "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"".concat(x1, "\" y=\"").concat(y1, "\" width=\"").concat(width, "\" height=\"").concat(height, "\" stroke=\"").concat(colorLine, "\" stroke-width=\"").concat(_this.selectionBoxThickness, "px\" fill=\"none\" />\n ");
|
|
64
|
-
var grips = _this.getAdornerAnnotationBorders(false, true);
|
|
65
|
-
if (_this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x1y1)) {
|
|
66
|
-
svg += _this.getAnnotationGripSvg(grips.x1, grips.y1);
|
|
67
|
-
}
|
|
68
|
-
if (_this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x2y2)) {
|
|
69
|
-
svg += _this.getAnnotationGripSvg(grips.x2, grips.y2);
|
|
70
|
-
}
|
|
71
|
-
if (_this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x2y1)) {
|
|
72
|
-
svg += _this.getAnnotationGripSvg(grips.x2, grips.y1);
|
|
73
|
-
}
|
|
74
|
-
if (_this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x1y2)) {
|
|
75
|
-
svg += _this.getAnnotationGripSvg(grips.x1, grips.y2);
|
|
76
|
-
}
|
|
77
|
-
svg += "</svg>";
|
|
78
|
-
return svg;
|
|
79
|
-
};
|
|
80
59
|
_this.stroke = (_a = options === null || options === void 0 ? void 0 : options.stroke) !== null && _a !== void 0 ? _a : "#ffffff";
|
|
81
60
|
_this.strokeThickness = (_b = options === null || options === void 0 ? void 0 : options.strokeThickness) !== null && _b !== void 0 ? _b : 1;
|
|
82
61
|
_this.fill = (_c = options === null || options === void 0 ? void 0 : options.fill) !== null && _c !== void 0 ? _c : "#777777";
|
|
@@ -328,6 +307,27 @@ var BoxAnnotation = /** @class */ (function (_super) {
|
|
|
328
307
|
this.svgAdorner = annotationHelpers_1.annotationHelpers.createSvg(svgString, adornerSvgRoot);
|
|
329
308
|
}
|
|
330
309
|
};
|
|
310
|
+
BoxAnnotation.prototype.svgStringAdornerTemplate = function (x1, y1, x2, y2) {
|
|
311
|
+
var colorLine = this.selectionBoxStroke;
|
|
312
|
+
var width = x2 - x1;
|
|
313
|
+
var height = y2 - y1;
|
|
314
|
+
var svg = "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"".concat(x1, "\" y=\"").concat(y1, "\" width=\"").concat(width, "\" height=\"").concat(height, "\" stroke=\"").concat(colorLine, "\" stroke-width=\"").concat(this.selectionBoxThickness, "px\" fill=\"none\" />\n ");
|
|
315
|
+
var grips = this.getAdornerAnnotationBorders(false, true);
|
|
316
|
+
if (this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x1y1)) {
|
|
317
|
+
svg += this.getAnnotationGripSvg(grips.x1, grips.y1);
|
|
318
|
+
}
|
|
319
|
+
if (this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x2y2)) {
|
|
320
|
+
svg += this.getAnnotationGripSvg(grips.x2, grips.y2);
|
|
321
|
+
}
|
|
322
|
+
if (this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x2y1)) {
|
|
323
|
+
svg += this.getAnnotationGripSvg(grips.x2, grips.y1);
|
|
324
|
+
}
|
|
325
|
+
if (this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x1y2)) {
|
|
326
|
+
svg += this.getAnnotationGripSvg(grips.x1, grips.y2);
|
|
327
|
+
}
|
|
328
|
+
svg += "</svg>";
|
|
329
|
+
return svg;
|
|
330
|
+
};
|
|
331
331
|
BoxAnnotation.prototype.drawWithProvider = function (renderContext, linesPen, fillBrush, xCalc, yCalc, rect, viewRect) {
|
|
332
332
|
var webAssemblyContext = this.parentSurface.webAssemblyContext2D;
|
|
333
333
|
var args = new webAssemblyContext.SCRTColumnDrawingParams();
|
|
@@ -188,5 +188,5 @@ export declare class LineAnnotation extends RenderContextAnnotationBase {
|
|
|
188
188
|
protected checkIsClickedOnAnnotationInternal(x: number, y: number): boolean;
|
|
189
189
|
protected notifyPropertyChanged(propertyName: string): void;
|
|
190
190
|
protected updateAdornerInner(): void;
|
|
191
|
-
|
|
191
|
+
svgStringAdornerTemplate(x1: number, y1: number, x2: number, y2: number): string;
|
|
192
192
|
}
|
|
@@ -73,10 +73,6 @@ var LineAnnotation = /** @class */ (function (_super) {
|
|
|
73
73
|
_this.axisLabelFillProperty = "#b36200";
|
|
74
74
|
_this.labelPlacementProperty = LabelPlacement_1.ELabelPlacement.Auto;
|
|
75
75
|
_this.labelValueProperty = "";
|
|
76
|
-
_this.svgStringAdornerTemplate = function (x1, y1, x2, y2) {
|
|
77
|
-
var colorLine = _this.selectionBoxStroke;
|
|
78
|
-
return "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <line x1=\"".concat(x1, "\" y1=\"").concat(y1, "\" x2=\"").concat(x2, "\" y2=\"").concat(y2, "\" stroke=\"").concat(colorLine, "\" stroke-width=\"6\" />\n ").concat(_this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x1y1) ? _this.getAnnotationGripSvg(x1, y1) : "", "\n ").concat(_this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x2y2) ? _this.getAnnotationGripSvg(x2, y2) : "", "\n </svg>");
|
|
79
|
-
};
|
|
80
76
|
_this.stroke = (_a = options === null || options === void 0 ? void 0 : options.stroke) !== null && _a !== void 0 ? _a : _this.strokeProperty;
|
|
81
77
|
_this.strokeThickness = (_b = options === null || options === void 0 ? void 0 : options.strokeThickness) !== null && _b !== void 0 ? _b : _this.strokeThicknessProperty;
|
|
82
78
|
_this.strokeDashArray = (_c = options === null || options === void 0 ? void 0 : options.strokeDashArray) !== null && _c !== void 0 ? _c : _this.strokeDashArrayProperty;
|
|
@@ -453,6 +449,10 @@ var LineAnnotation = /** @class */ (function (_super) {
|
|
|
453
449
|
this.svgAdorner = annotationHelpers_1.annotationHelpers.createSvg(svgString, adornerSvgRoot);
|
|
454
450
|
}
|
|
455
451
|
};
|
|
452
|
+
LineAnnotation.prototype.svgStringAdornerTemplate = function (x1, y1, x2, y2) {
|
|
453
|
+
var colorLine = this.selectionBoxStroke;
|
|
454
|
+
return "<svg xmlns=\"http://www.w3.org/2000/svg\">\n <line x1=\"".concat(x1, "\" y1=\"").concat(y1, "\" x2=\"").concat(x2, "\" y2=\"").concat(y2, "\" stroke=\"").concat(colorLine, "\" stroke-width=\"6\" />\n ").concat(this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x1y1) ? this.getAnnotationGripSvg(x1, y1) : "", "\n ").concat(this.canDragPoint(AnnotationBase_1.EDraggingGripPoint.x2y2) ? this.getAnnotationGripSvg(x2, y2) : "", "\n </svg>");
|
|
455
|
+
};
|
|
456
456
|
return LineAnnotation;
|
|
457
457
|
}(RenderContextAnnotationBase_1.RenderContextAnnotationBase));
|
|
458
458
|
exports.LineAnnotation = LineAnnotation;
|
|
@@ -210,5 +210,5 @@ export declare class NativeTextAnnotation extends RenderContextAnnotationBase {
|
|
|
210
210
|
};
|
|
211
211
|
protected checkIsClickedOnAnnotationInternal(x: number, y: number): boolean;
|
|
212
212
|
protected updateAdornerInner(): void;
|
|
213
|
-
|
|
213
|
+
svgStringAdornerTemplate(x1: number, y1: number, x2: number, y2: number): string;
|
|
214
214
|
}
|