import { E as r } from "./am-chart.H2jnOzFc.js";
class c extends r {
  _afterNew() {
    super._afterNewApplyThemes();
  }
  /**
   * @ignore
   */
  getFill(o) {
    return {
      addColorStop: (n, t) => {
      }
    };
  }
  _changed() {
    super._changed();
  }
  /**
   * @ignore
   */
  getBounds(o) {
    const n = this.get("target");
    if (n) {
      let t = n.globalBounds();
      const a = o.toLocal({ x: t.left, y: t.top }), e = o.toLocal({ x: t.right, y: t.top }), s = o.toLocal({ x: t.right, y: t.bottom }), l = o.toLocal({ x: t.left, y: t.bottom });
      return {
        left: Math.min(a.x, e.x, s.x, l.x),
        top: Math.min(a.y, e.y, s.y, l.y),
        right: Math.max(a.x, e.x, s.x, l.x),
        bottom: Math.max(a.y, e.y, s.y, l.y)
      };
    }
    return o._display.getLocalBounds();
  }
}
c.className = "Gradient";
c.classNames = r.classNames.concat([c.className]);
export {
  c as G
};
