60 lines
982 B
JavaScript
60 lines
982 B
JavaScript
|
/* *
|
||
|
*
|
||
|
* (c) 2010-2024 Torstein Honsi
|
||
|
*
|
||
|
* License: www.highcharts.com/license
|
||
|
*
|
||
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
||
|
*
|
||
|
* */
|
||
|
'use strict';
|
||
|
/* *
|
||
|
*
|
||
|
* Variables
|
||
|
*
|
||
|
* */
|
||
|
let symbols;
|
||
|
/* *
|
||
|
*
|
||
|
* Functions
|
||
|
*
|
||
|
* */
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
function bottomButton(x, y, w, h, options) {
|
||
|
if (options) {
|
||
|
const r = options?.r || 0;
|
||
|
options.brBoxY = y - r;
|
||
|
options.brBoxHeight = h + r;
|
||
|
}
|
||
|
return symbols.roundedRect(x, y, w, h, options);
|
||
|
}
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
function compose(SVGRendererClass) {
|
||
|
symbols = SVGRendererClass.prototype.symbols;
|
||
|
symbols.bottombutton = bottomButton;
|
||
|
symbols.topbutton = topButton;
|
||
|
}
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
function topButton(x, y, w, h, options) {
|
||
|
if (options) {
|
||
|
const r = options?.r || 0;
|
||
|
options.brBoxHeight = h + r;
|
||
|
}
|
||
|
return symbols.roundedRect(x, y, w, h, options);
|
||
|
}
|
||
|
/* *
|
||
|
*
|
||
|
* Default Export
|
||
|
*
|
||
|
* */
|
||
|
const MapSymbols = {
|
||
|
compose
|
||
|
};
|
||
|
export default MapSymbols;
|