devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
93 lines (91 loc) • 3.57 kB
JavaScript
/**
* DevExtreme (cjs/__internal/viz/series/points/range_bar_point.js)
* Version: 25.2.5
* Build date: Fri Feb 20 2026
*
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _common = require("../../../../core/utils/common");
var _extend2 = require("../../../../core/utils/extend");
var _bar_point = _interopRequireDefault(require("../../../viz/series/points/bar_point"));
var _range_symbol_point = _interopRequireDefault(require("../../../viz/series/points/range_symbol_point"));
function _interopRequireDefault(e) {
return e && e.__esModule ? e : {
default: e
}
}
const _extend = _extend2.extend;
var _default = exports.default = _extend({}, _bar_point.default, {
deleteLabel: _range_symbol_point.default.deleteLabel,
_getFormatObject: _range_symbol_point.default._getFormatObject,
clearVisibility() {
const graphic = this.graphic;
if (graphic && graphic.attr("visibility")) {
graphic.attr({
visibility: null
})
}
},
setInvisibility() {
const graphic = this.graphic;
if (graphic && "hidden" !== graphic.attr("visibility")) {
graphic.attr({
visibility: "hidden"
})
}
this._topLabel.draw(false);
this._bottomLabel.draw(false)
},
getTooltipParams(location) {
const that = this;
const edgeLocation = "edge" === location;
let x;
let y;
if (that._options.rotated) {
x = edgeLocation ? that.x + that.width : that.x + that.width / 2;
y = that.y + that.height / 2
} else {
x = that.x + that.width / 2;
y = edgeLocation ? that.y : that.y + that.height / 2
}
return {
x: x,
y: y,
offset: 0
}
},
_translate() {
const that = this;
const barMethods = _bar_point.default;
barMethods._translate.call(that);
if (that._options.rotated) {
that.width = that.width || 1
} else {
that.height = that.height || 1
}
},
hasCoords: _range_symbol_point.default.hasCoords,
_updateData: _range_symbol_point.default._updateData,
_getLabelPosition: _range_symbol_point.default._getLabelPosition,
_getLabelMinFormatObject: _range_symbol_point.default._getLabelMinFormatObject,
_updateLabelData: _range_symbol_point.default._updateLabelData,
_updateLabelOptions: _range_symbol_point.default._updateLabelOptions,
getCrosshairData: _range_symbol_point.default.getCrosshairData,
_createLabel: _range_symbol_point.default._createLabel,
_checkOverlay: _range_symbol_point.default._checkOverlay,
_checkLabelsOverlay: _range_symbol_point.default._checkLabelsOverlay,
_getOverlayCorrections: _range_symbol_point.default._getOverlayCorrections,
_drawLabel: _range_symbol_point.default._drawLabel,
_getLabelCoords: _range_symbol_point.default._getLabelCoords,
getLabel: _range_symbol_point.default.getLabel,
getLabels: _range_symbol_point.default.getLabels,
getBoundingRect: _common.noop,
getMinValue: _range_symbol_point.default.getMinValue,
getMaxValue: _range_symbol_point.default.getMaxValue
});