Skip to content

Commit

Permalink
v8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TorsteinHonsi committed May 6, 2020
1 parent 956cc50 commit a9ed457
Show file tree
Hide file tree
Showing 629 changed files with 89,048 additions and 73,542 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highcharts",
"version": "8.0.4",
"version": "8.1.0",
"main": "highcharts.js",
"license": "https://www.highcharts.com/license",
"types": "highcharts.d.ts"
Expand Down
4 changes: 4 additions & 0 deletions css/highcharts.css
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ g.highcharts-series,
fill: none;
}

.highcharts-data-label-hidden {
pointer-events: none;
}

.highcharts-halo {
fill-opacity: 0.25;
stroke-width: 0;
Expand Down
4 changes: 4 additions & 0 deletions css/highcharts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ g.highcharts-series,
.highcharts-data-label-connector {
fill: none;
}
.highcharts-data-label-hidden {
pointer-events: none;
}
.highcharts-halo {
fill-opacity: 0.25;
stroke-width: 0;
Expand Down Expand Up @@ -823,3 +826,4 @@ text.highcharts-drilldown-data-label,
.highcharts-grid-axis .highcharts-axis-line {
stroke-width: 1px;
}

4 changes: 4 additions & 0 deletions css/themes/dark-unica.css
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ g.highcharts-series,
fill: none;
}

.highcharts-data-label-hidden {
pointer-events: none;
}

.highcharts-halo {
fill-opacity: 0.25;
stroke-width: 0;
Expand Down
4 changes: 4 additions & 0 deletions css/themes/grid-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ g.highcharts-series,
fill: none;
}

.highcharts-data-label-hidden {
pointer-events: none;
}

.highcharts-halo {
fill-opacity: 0.25;
stroke-width: 0;
Expand Down
4 changes: 4 additions & 0 deletions css/themes/sand-signika.css
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ g.highcharts-series,
fill: none;
}

.highcharts-data-label-hidden {
pointer-events: none;
}

.highcharts-halo {
fill-opacity: 0.25;
stroke-width: 0;
Expand Down
180 changes: 101 additions & 79 deletions es-modules/annotations/ControlPoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,84 +38,106 @@ import eventEmitterMixin from './eventEmitterMixin.js';
* @param {number} [index]
* Point index.
*/
var ControlPoint = function (chart, target, options, index) {
this.chart = chart;
this.target = target;
this.options = options;
this.index = pick(options.index, index);
};
extend(ControlPoint.prototype, eventEmitterMixin);
/**
* List of events for `anntation.options.events` that should not be
* added to `annotation.graphic` but to the `annotation`.
* @private
* @name Highcharts.AnnotationControlPoint#nonDOMEvents
* @type {Array<string>}
*/
ControlPoint.prototype.nonDOMEvents = ['drag'];
/**
* Set the visibility of the control point.
*
* @function Highcharts.AnnotationControlPoint#setVisibility
*
* @param {boolean} visible
* Visibility of the control point.
*
* @return {void}
*/
ControlPoint.prototype.setVisibility = function (visible) {
this.graphic.attr('visibility', visible ? 'visible' : 'hidden');
this.options.visible = visible;
};
/**
* Render the control point.
* @private
*/
ControlPoint.prototype.render = function () {
var chart = this.chart, options = this.options;
this.graphic = chart.renderer
.symbol(options.symbol, 0, 0, options.width, options.height)
.add(chart.controlPointsGroup)
.css(options.style);
this.setVisibility(options.visible);
this.addEvents();
};
/**
* Redraw the control point.
* @private
* @param {boolean} [animation]
*/
ControlPoint.prototype.redraw = function (animation) {
this.graphic[animation ? 'animate' : 'attr'](this.options.positioner.call(this, this.target));
};
/**
* Destroy the control point.
* @private
*/
ControlPoint.prototype.destroy = function () {
eventEmitterMixin.destroy.call(this);
if (this.graphic) {
this.graphic = this.graphic.destroy();
var ControlPoint = /** @class */ (function () {
function ControlPoint(chart, target, options, index) {
/**
*
* Properties
*
*/
this.addEvents = eventEmitterMixin.addEvents;
this.graphic = void 0;
this.mouseMoveToRadians = eventEmitterMixin.mouseMoveToRadians;
this.mouseMoveToScale = eventEmitterMixin.mouseMoveToScale;
this.mouseMoveToTranslation = eventEmitterMixin.mouseMoveToTranslation;
this.onDrag = eventEmitterMixin.onDrag;
this.onMouseDown = eventEmitterMixin.onMouseDown;
this.onMouseUp = eventEmitterMixin.onMouseUp;
this.removeDocEvents = eventEmitterMixin.removeDocEvents;
/**
*
* Functions
*
*/
/**
* List of events for `anntation.options.events` that should not be
* added to `annotation.graphic` but to the `annotation`.
* @private
* @name Highcharts.AnnotationControlPoint#nonDOMEvents
* @type {Array<string>}
*/
this.nonDOMEvents = ['drag'];
this.chart = chart;
this.target = target;
this.options = options;
this.index = pick(options.index, index);
}
this.chart = null;
this.target = null;
this.options = null;
};
/**
* Update the control point.
*
* @function Highcharts.AnnotationControlPoint#update
*
* @param {Partial<Highcharts.AnnotationControlPointOptionsObject>} userOptions
* New options for the control point.
*
* @return {void}
*/
ControlPoint.prototype.update = function (userOptions) {
var chart = this.chart, target = this.target, index = this.index, options = merge(true, this.options, userOptions);
this.destroy();
this.constructor(chart, target, options, index);
this.render(chart.controlPointsGroup);
this.redraw();
};
/**
* Set the visibility of the control point.
*
* @function Highcharts.AnnotationControlPoint#setVisibility
*
* @param {boolean} visible
* Visibility of the control point.
*
* @return {void}
*/
ControlPoint.prototype.setVisibility = function (visible) {
this.graphic.attr('visibility', visible ? 'visible' : 'hidden');
this.options.visible = visible;
};
/**
* Render the control point.
* @private
*/
ControlPoint.prototype.render = function () {
var chart = this.chart, options = this.options;
this.graphic = chart.renderer
.symbol(options.symbol, 0, 0, options.width, options.height)
.add(chart.controlPointsGroup)
.css(options.style);
this.setVisibility(options.visible);
// npm test -- --tests "highcharts/annotations-advanced/*"
this.addEvents();
};
/**
* Redraw the control point.
* @private
* @param {boolean} [animation]
*/
ControlPoint.prototype.redraw = function (animation) {
this.graphic[animation ? 'animate' : 'attr'](this.options.positioner.call(this, this.target));
};
/**
* Destroy the control point.
* @private
*/
ControlPoint.prototype.destroy = function () {
eventEmitterMixin.destroy.call(this);
if (this.graphic) {
this.graphic = this.graphic.destroy();
}
this.chart = null;
this.target = null;
this.options = null;
};
/**
* Update the control point.
*
* @function Highcharts.AnnotationControlPoint#update
*
* @param {Partial<Highcharts.AnnotationControlPointOptionsObject>} userOptions
* New options for the control point.
*
* @return {void}
*/
ControlPoint.prototype.update = function (userOptions) {
var chart = this.chart, target = this.target, index = this.index, options = merge(true, this.options, userOptions);
this.destroy();
this.constructor(chart, target, options, index);
this.render(chart.controlPointsGroup);
this.redraw();
};
return ControlPoint;
}());
export default ControlPoint;
Loading

0 comments on commit a9ed457

Please sign in to comment.