Skip to content

Commit 7f564e5

Browse files
committed
v8.1.2
1 parent a20f9d6 commit 7f564e5

File tree

439 files changed

+7669
-5478
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

439 files changed

+7669
-5478
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "highcharts",
3-
"version": "8.1.1",
3+
"version": "8.1.2",
44
"main": "highcharts.js",
55
"license": "https://www.highcharts.com/license",
66
"types": "highcharts.d.ts"

es-modules/annotations/annotations.src.js

-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ var Annotation = /** @class */ (function () {
7777
* Constructors
7878
*
7979
* */
80-
/**
81-
* @private
82-
*/
8380
function Annotation(chart, userOptions) {
8481
/* *
8582
*

es-modules/annotations/eventEmitterMixin.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var eventEmitterMixin = {
2424
*/
2525
addEvents: function () {
2626
var emitter = this, addMouseDownEvent = function (element) {
27-
addEvent(element, Highcharts.isTouchDevice ? 'touchstart' : 'mousedown', function (e) {
27+
addEvent(element, H.isTouchDevice ? 'touchstart' : 'mousedown', function (e) {
2828
emitter.onMouseDown(e);
2929
});
3030
};
@@ -49,7 +49,7 @@ var eventEmitterMixin = {
4949
}
5050
});
5151
if (emitter.options.draggable) {
52-
addEvent(emitter, Highcharts.isTouchDevice ? 'touchmove' : 'drag', emitter.onDrag);
52+
addEvent(emitter, H.isTouchDevice ? 'touchmove' : 'drag', emitter.onDrag);
5353
if (!emitter.graphic.renderer.styledMode) {
5454
var cssPointer_1 = {
5555
cursor: {
@@ -98,7 +98,7 @@ var eventEmitterMixin = {
9898
prevChartY = e.chartY;
9999
emitter.cancelClick = false;
100100
emitter.chart.hasDraggedAnnotation = true;
101-
emitter.removeDrag = addEvent(H.doc, Highcharts.isTouchDevice ? 'touchmove' : 'mousemove', function (e) {
101+
emitter.removeDrag = addEvent(H.doc, H.isTouchDevice ? 'touchmove' : 'mousemove', function (e) {
102102
emitter.hasDragged = true;
103103
e = pointer.normalize(e);
104104
e.prevChartX = prevChartX;
@@ -107,7 +107,7 @@ var eventEmitterMixin = {
107107
prevChartX = e.chartX;
108108
prevChartY = e.chartY;
109109
});
110-
emitter.removeMouseUp = addEvent(H.doc, Highcharts.isTouchDevice ? 'touchend' : 'mouseup', function (e) {
110+
emitter.removeMouseUp = addEvent(H.doc, H.isTouchDevice ? 'touchend' : 'mouseup', function (e) {
111111
emitter.cancelClick = emitter.hasDragged;
112112
emitter.hasDragged = false;
113113
emitter.chart.hasDraggedAnnotation = false;

es-modules/annotations/navigationBindings.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ var NavigationBindings = /** @class */ (function () {
182182
navigation.bindingsChartClick(this, e);
183183
}
184184
}));
185-
navigation.eventsToUnbind.push(addEvent(chart.container, Highcharts.isTouchDevice ? 'touchmove' : 'mousemove', function (e) {
185+
navigation.eventsToUnbind.push(addEvent(chart.container, H.isTouchDevice ? 'touchmove' : 'mousemove', function (e) {
186186
navigation.bindingsContainerMouseMove(this, e);
187187
}));
188188
};
@@ -676,7 +676,7 @@ function selectableAnnotation(annotationType) {
676676
function selectAndshowPopup(event) {
677677
var annotation = this, navigation = annotation.chart.navigationBindings, prevAnnotation = navigation.activeAnnotation;
678678
if (originalClick) {
679-
originalClick.click.call(annotation, event);
679+
originalClick.call(annotation, event);
680680
}
681681
if (prevAnnotation !== annotation) {
682682
// Select current:
@@ -972,7 +972,7 @@ setOptions({
972972
* from a different server.
973973
*
974974
* @type {string}
975-
* @default https://code.highcharts.com/8.1.1/gfx/stock-icons/
975+
* @default https://code.highcharts.com/8.1.2/gfx/stock-icons/
976976
* @since 7.1.3
977977
* @apioption navigation.iconsURL
978978
*/

es-modules/annotations/popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ addEvent(NavigationBindings, 'showPopup', function (config) {
722722
this.popup = new H.Popup(this.chart.container, (this.chart.options.navigation.iconsURL ||
723723
(this.chart.options.stockTools &&
724724
this.chart.options.stockTools.gui.iconsURL) ||
725-
'https://code.highcharts.com/8.1.1/gfx/stock-icons/'));
725+
'https://code.highcharts.com/8.1.2/gfx/stock-icons/'));
726726
}
727727
this.popup.showForm(config.formType, this.chart, config.options, config.onSubmit);
728728
});

es-modules/annotations/types/BasicAnnotation.js

+49-16
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,54 @@
44
*
55
* */
66
'use strict';
7+
var __extends = (this && this.__extends) || (function () {
8+
var extendStatics = function (d, b) {
9+
extendStatics = Object.setPrototypeOf ||
10+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12+
return extendStatics(d, b);
13+
};
14+
return function (d, b) {
15+
extendStatics(d, b);
16+
function __() { this.constructor = d; }
17+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18+
};
19+
})();
720
import Annotation from '../annotations.src.js';
8-
import H from '../../parts/Globals.js';
921
import MockPoint from '../MockPoint.js';
22+
import U from '../../parts/Utilities.js';
23+
var merge = U.merge;
1024
/* eslint-disable no-invalid-this */
11-
var BasicAnnotation = function () {
12-
Annotation.apply(this, arguments);
13-
};
14-
H.extendAnnotation(BasicAnnotation, null, {
15-
basicControlPoints: {
25+
var BasicAnnotation = /** @class */ (function (_super) {
26+
__extends(BasicAnnotation, _super);
27+
/* *
28+
*
29+
* Constructors
30+
*
31+
* */
32+
function BasicAnnotation(chart, options) {
33+
return _super.call(this, chart, options) || this;
34+
}
35+
/* *
36+
*
37+
* Functions
38+
*
39+
* */
40+
BasicAnnotation.prototype.addControlPoints = function () {
41+
var options = this.options, controlPoints = BasicAnnotation.basicControlPoints, langKey = options.langKey, optionsGroup = options.labels || options.shapes;
42+
optionsGroup.forEach(function (group) {
43+
if (langKey) {
44+
// @todo langKey === 'label' / 'circle' / 'rectangle' ???
45+
group.controlPoints = controlPoints[langKey];
46+
}
47+
});
48+
};
49+
/* *
50+
*
51+
* Static Properties
52+
*
53+
* */
54+
BasicAnnotation.basicControlPoints = {
1655
label: [{
1756
symbol: 'triangle-down',
1857
positioner: function (target) {
@@ -117,15 +156,9 @@ H.extendAnnotation(BasicAnnotation, null, {
117156
}
118157
}
119158
}]
120-
},
121-
addControlPoints: function () {
122-
var options = this.options, controlPoints = this.basicControlPoints, langKey = options.langKey, optionsGroup = options.labels || options.shapes;
123-
optionsGroup.forEach(function (group) {
124-
if (langKey) {
125-
group.controlPoints = controlPoints[langKey];
126-
}
127-
});
128-
}
129-
});
159+
};
160+
return BasicAnnotation;
161+
}(Annotation));
162+
BasicAnnotation.prototype.defaultOptions = merge(Annotation.prototype.defaultOptions, {});
130163
Annotation.types.basicAnnotation = BasicAnnotation;
131164
export default BasicAnnotation;

es-modules/annotations/types/CrookedLine.js

+42-17
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,67 @@
44
*
55
* */
66
'use strict';
7+
var __extends = (this && this.__extends) || (function () {
8+
var extendStatics = function (d, b) {
9+
extendStatics = Object.setPrototypeOf ||
10+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12+
return extendStatics(d, b);
13+
};
14+
return function (d, b) {
15+
extendStatics(d, b);
16+
function __() { this.constructor = d; }
17+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18+
};
19+
})();
720
import Annotation from '../annotations.src.js';
821
import ControlPoint from '../ControlPoint.js';
9-
import H from '../../parts/Globals.js';
1022
import MockPoint from '../MockPoint.js';
1123
import U from '../../parts/Utilities.js';
1224
var merge = U.merge;
1325
/* eslint-disable no-invalid-this, valid-jsdoc */
14-
var CrookedLine = function () {
15-
Annotation.apply(this, arguments);
16-
};
17-
H.extendAnnotation(CrookedLine, null, {
26+
var CrookedLine = /** @class */ (function (_super) {
27+
__extends(CrookedLine, _super);
28+
/* *
29+
*
30+
* Constructors
31+
*
32+
* */
33+
function CrookedLine(chart, options) {
34+
return _super.call(this, chart, options) || this;
35+
}
36+
/* *
37+
*
38+
* Functions
39+
*
40+
* */
1841
/**
1942
* Overrides default setter to get axes from typeOptions.
2043
* @private
2144
*/
22-
setClipAxes: function () {
45+
CrookedLine.prototype.setClipAxes = function () {
2346
this.clipXAxis = this.chart.xAxis[this.options.typeOptions.xAxis];
2447
this.clipYAxis = this.chart.yAxis[this.options.typeOptions.yAxis];
25-
},
26-
getPointsOptions: function () {
48+
};
49+
CrookedLine.prototype.getPointsOptions = function () {
2750
var typeOptions = this.options.typeOptions;
28-
return typeOptions.points.map(function (pointOptions) {
51+
return (typeOptions.points || []).map(function (pointOptions) {
2952
pointOptions.xAxis = typeOptions.xAxis;
3053
pointOptions.yAxis = typeOptions.yAxis;
3154
return pointOptions;
3255
});
33-
},
34-
getControlPointsOptions: function () {
56+
};
57+
CrookedLine.prototype.getControlPointsOptions = function () {
3558
return this.getPointsOptions();
36-
},
37-
addControlPoints: function () {
59+
};
60+
CrookedLine.prototype.addControlPoints = function () {
3861
this.getControlPointsOptions().forEach(function (pointOptions, i) {
3962
var controlPoint = new ControlPoint(this.chart, this, merge(this.options.controlPointOptions, pointOptions.controlPoint), i);
4063
this.controlPoints.push(controlPoint);
4164
pointOptions.controlPoint = controlPoint.options;
4265
}, this);
43-
},
44-
addShapes: function () {
66+
};
67+
CrookedLine.prototype.addShapes = function () {
4568
var typeOptions = this.options.typeOptions, shape = this.initShape(merge(typeOptions.line, {
4669
type: 'path',
4770
points: this.points.map(function (_point, i) {
@@ -51,8 +74,10 @@ H.extendAnnotation(CrookedLine, null, {
5174
})
5275
}), false);
5376
typeOptions.line = shape.options;
54-
}
55-
},
77+
};
78+
return CrookedLine;
79+
}(Annotation));
80+
CrookedLine.prototype.defaultOptions = merge(Annotation.prototype.defaultOptions,
5681
/**
5782
* A crooked line annotation.
5883
*

es-modules/annotations/types/ElliottWave.js

+31-11
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,48 @@
44
*
55
* */
66
'use strict';
7+
var __extends = (this && this.__extends) || (function () {
8+
var extendStatics = function (d, b) {
9+
extendStatics = Object.setPrototypeOf ||
10+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12+
return extendStatics(d, b);
13+
};
14+
return function (d, b) {
15+
extendStatics(d, b);
16+
function __() { this.constructor = d; }
17+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18+
};
19+
})();
720
import Annotation from '../annotations.src.js';
8-
import H from '../../parts/Globals.js';
21+
import CrookedLine from './CrookedLine.js';
922
import U from '../../parts/Utilities.js';
1023
var merge = U.merge;
11-
var CrookedLine = Annotation.types.crookedLine;
1224
/* eslint-disable no-invalid-this, valid-jsdoc */
13-
var ElliottWave = function () {
14-
CrookedLine.apply(this, arguments);
15-
};
16-
H.extendAnnotation(ElliottWave, CrookedLine, {
17-
addLabels: function () {
25+
var ElliottWave = /** @class */ (function (_super) {
26+
__extends(ElliottWave, _super);
27+
function ElliottWave(chart, options) {
28+
return _super.call(this, chart, options) || this;
29+
}
30+
/* *
31+
*
32+
* Functions
33+
*
34+
* */
35+
ElliottWave.prototype.addLabels = function () {
1836
this.getPointsOptions().forEach(function (point, i) {
19-
var label = this.initLabel(merge(point.label, {
20-
text: this.options.typeOptions.labels[i],
37+
var typeOptions = this.options.typeOptions, label = this.initLabel(merge(point.label, {
38+
text: typeOptions.labels[i],
2139
point: function (target) {
2240
return target.annotation.points[i];
2341
}
2442
}), false);
2543
point.label = label.options;
2644
}, this);
27-
}
28-
},
45+
};
46+
return ElliottWave;
47+
}(CrookedLine));
48+
ElliottWave.prototype.defaultOptions = merge(CrookedLine.prototype.defaultOptions,
2949
/**
3050
* An elliott wave annotation.
3151
*

0 commit comments

Comments
 (0)