/**
 * Highcharts Gantt JS v12.6.0 (2026-04-13)
 * @module highcharts/modules/static-scale
 * @requires highcharts
 *
 * StaticScale
 *
 * (c) 2016-2026 Highsoft AS
 * Author: Torstein Hønsi, Lars A. V. Cabrera
 *
 * A commercial license may be required depending on use.
 * See www.highcharts.com/license
 */import*as t from"../highcharts.js";var e={};e.n=t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},e.d=(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let i=t.default;var r=e.n(i);let{doc:a,win:s}=r();function o(t,e,i,a={}){let s="function"==typeof t&&t.prototype||t;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let n=s.hcEvents;r().Point&&t instanceof r().Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);let l=t.addEventListener;l&&l.call(t,e,i,!!r().supportsPassiveEvents&&{passive:void 0===a.passive?-1!==e.indexOf("touch"):a.passive,capture:!1}),n[e]||(n[e]=[]);let c={fn:i,order:"number"==typeof a.order?a.order:1/0};return n[e].push(c),n[e].sort((t,e)=>t.order-e.order),function(){!function(t,e,i){function r(e,i){let r=t.removeEventListener;r&&r.call(t,e,i,!1)}function a(i){let a,s;if(t.nodeName){e?(a={})[e]=!0:a=i;var o=a,n=function(t,e){if(i[e])for(s=i[e].length;s--;)r(e,i[e][s].fn)};for(let t in o)Object.hasOwnProperty.call(o,t)&&n.call(o[t],o[t],t,o)}}let s="function"==typeof t&&t.prototype||t;if(Object.hasOwnProperty.call(s,"hcEvents")){let t=s.hcEvents;if(e){let s=t[e]||[];i?(t[e]=s.filter(function(t){return i!==t.fn}),r(e,i)):(a(t),t[e]=[])}else a(t),delete s.hcEvents}}(t,e,i)}}function n(){var t;let e=this.chart.userOptions.chart;!this.horiz&&"number"==typeof(t=this.options.staticScale)&&!isNaN(t)&&t<1/0&&t>-1/0&&(!e?.height||e.scrollablePlotArea?.minHeight)&&(this.staticScale=this.options.staticScale)}function l(){if("adjustHeight"!==this.redrawTrigger){for(let t of this.axes||[]){let e=t.chart,i=t.options.staticScale;if(t.staticScale&&i&&null!=t.min&&null!=t.max){let r=(t.brokenAxis?.unitLength??t.max+t.tickInterval-t.min)*i,a=(r=Math.max(r,i))-e.plotHeight;!e.scrollablePixelsY&&Math.abs(a)>=1&&(e.plotHeight=r,e.redrawTrigger="adjustHeight",e.setSize(void 0,e.chartHeight+a,!!e.initiatedScale&&void 0)),t.series.forEach(function(t){let i=t.sharedClipKey&&e.sharedClips[t.sharedClipKey];i&&i.attr(e.inverted?{width:e.plotHeight}:{height:e.plotHeight})})}}this.initiatedScale=!0}this.redrawTrigger=void 0}Array.prototype.find;let c=r();({compose:function(t,e){let i=e.prototype;i.adjustHeight||(o(t,"afterSetOptions",n),i.adjustHeight=l,o(e,"render",i.adjustHeight))}}).compose(c.Axis,c.Chart);let h=r();export{h as default};