Skip to content

Commit

Permalink
Version 5.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
martynasma committed Jan 5, 2024
1 parent d927afe commit dfbc80e
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@amcharts/amcharts5",
"version": "5.7.5",
"version": "5.7.6",
"author": "amCharts <[email protected]> (https://www.amcharts.com/)",
"description": "amCharts 5",
"homepage": "https://www.amcharts.com/",
Expand Down
8 changes: 8 additions & 0 deletions packages/shared/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
Please note, that this project, while following numbering syntax, it DOES NOT
adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html) rules.

## [5.7.6] - 2024-01-05

### Fixed
- One of the underlying series was not being removed when disposing MACross indicator.
- Some of the newer indicators were not being restored.
- `autoSave: true` set on `DataSaveControl` was not working.


## [5.7.5] - 2024-01-04

### Added
Expand Down
5 changes: 5 additions & 0 deletions src/.internal/charts/stock/indicators/MACross.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ export class MACross extends Indicator {
super._prepareChildren();
}

protected _dispose() {
this.fastSeries.dispose();
super._dispose();
}

protected _afterNew() {
super._afterNew();

Expand Down
5 changes: 4 additions & 1 deletion src/.internal/charts/stock/toolbar/DataSaveControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export class DataSaveControl extends DropdownListControl {
if (ev.item.id == "autosave") {
const autoSave = !ev.item.checked;
this.set("autoSave", autoSave);
if (autoSave) {
this.saveData();
}
}
});

Expand Down Expand Up @@ -138,7 +141,7 @@ export class DataSaveControl extends DropdownListControl {
const autoSave = this.get("autoSave", false);
if (autoSave) {
localStorage.setItem(this._getStorageId("autosave"), "1");
this.saveData();
//this.saveData();
}
else {
localStorage.removeItem(this._getStorageId("autosave"));
Expand Down
12 changes: 6 additions & 6 deletions src/.internal/core/Classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* DO NOT MANUALLY EDIT IT OR YOUR CHANGES WILL BE LOST!
*/

import type { AccelerationBands } from "./../charts/stock/indicators/AccelerationBands.js";
import type { AccumulationDistribution } from "./../charts/stock/indicators/AccumulationDistribution.js";
import type { AccumulativeSwingIndex } from "./../charts/stock/indicators/AccumulativeSwingIndex.js";
import type { Annotator } from "./../plugins/exporting/Annotator.js";
Expand All @@ -24,10 +25,9 @@ import type { AxisRendererY } from "./../charts/xy/axes/AxisRendererY.js";
import type { AxisTick } from "./../charts/xy/axes/AxisTick.js";
import type { BaseColumnSeries } from "./../charts/xy/series/BaseColumnSeries.js";
import type { BollingerBands } from "./../charts/stock/indicators/BollingerBands.js";
import type { AccelerationBands } from "./../charts/stock/indicators/AccelerationBands.js";
import type { BreadcrumbBar } from "./../charts/hierarchy/BreadcrumbBar.js";
import type { Bullet } from "./render/Bullet.js";
import type { BullBearPower } from "./../charts/stock/indicators/BullBearPower.js";
import type { Bullet } from "./render/Bullet.js";
import type { Button } from "./render/Button.js";
import type { CalloutSeries } from "./../charts/stock/drawing/CalloutSeries.js";
import type { Candlestick } from "./../charts/xy/series/Candlestick.js";
Expand Down Expand Up @@ -133,6 +133,7 @@ import type { OHLC } from "./../charts/xy/series/OHLC.js";
import type { OHLCSeries } from "./../charts/xy/series/OHLCSeries.js";
import type { OnBalanceVolume } from "./../charts/stock/indicators/OnBalanceVolume.js";
import type { OverboughtOversold } from "./../charts/stock/indicators/OverboughtOversold.js";
import type { PVT } from "./../charts/stock/indicators/PVT.js";
import type { Pack } from "./../charts/hierarchy/Pack.js";
import type { PanelControls } from "./../charts/stock/PanelControls.js";
import type { ParallelChannelSeries } from "./../charts/stock/drawing/ParallelChannelSeries.js";
Expand All @@ -151,7 +152,6 @@ import type { PointedRectangle } from "./render/PointedRectangle.js";
import type { Polygon } from "./render/Polygon.js";
import type { PolylineSeries } from "./../charts/stock/drawing/PolylineSeries.js";
import type { PyramidSeries } from "./../charts/funnel/PyramidSeries.js";
import type { PVT } from "./../charts/stock/indicators/PVT.js";
import type { QuadrantLineSeries } from "./../charts/stock/drawing/QuadrantLineSeries.js";
import type { RadarChart } from "./../charts/radar/RadarChart.js";
import type { RadarColumnSeries } from "./../charts/radar/RadarColumnSeries.js";
Expand Down Expand Up @@ -226,6 +226,7 @@ import type { ZigZag } from "./../charts/stock/indicators/ZigZag.js";
import type { ZoomControl } from "./../charts/map/ZoomControl.js";

export interface IClasses {
"AccelerationBands": AccelerationBands;
"AccumulationDistribution": AccumulationDistribution;
"AccumulativeSwingIndex": AccumulativeSwingIndex;
"Annotator": Annotator;
Expand All @@ -247,9 +248,8 @@ export interface IClasses {
"AxisTick": AxisTick;
"BaseColumnSeries": BaseColumnSeries;
"BollingerBands": BollingerBands;
"BullBearPower": BullBearPower;
"AccelerationBands": AccelerationBands;
"BreadcrumbBar": BreadcrumbBar;
"BullBearPower": BullBearPower;
"Bullet": Bullet;
"Button": Button;
"CalloutSeries": CalloutSeries;
Expand Down Expand Up @@ -356,6 +356,7 @@ export interface IClasses {
"OHLCSeries": OHLCSeries;
"OnBalanceVolume": OnBalanceVolume;
"OverboughtOversold": OverboughtOversold;
"PVT": PVT;
"Pack": Pack;
"PanelControls": PanelControls;
"ParallelChannelSeries": ParallelChannelSeries;
Expand All @@ -374,7 +375,6 @@ export interface IClasses {
"Polygon": Polygon;
"PolylineSeries": PolylineSeries;
"PyramidSeries": PyramidSeries;
"PVT": PVT;
"QuadrantLineSeries": QuadrantLineSeries;
"RadarChart": RadarChart;
"RadarColumnSeries": RadarColumnSeries;
Expand Down
2 changes: 1 addition & 1 deletion src/.internal/core/Registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class Registry {
/**
* Currently running version of amCharts.
*/
readonly version: string = "5.7.5";
readonly version: string = "5.7.6";

/**
* List of applied licenses.
Expand Down
12 changes: 12 additions & 0 deletions src/.internal/plugins/json/Classes-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* DO NOT MANUALLY EDIT IT OR YOUR CHANGES WILL BE LOST!
*/

import type { AccelerationBands } from "./../../../stock";
import type { AccumulationDistribution } from "./../../../stock";
import type { AccumulativeSwingIndex } from "./../../../stock";
import type { Annotator } from "./../../../plugins/exporting";
Expand All @@ -25,6 +26,7 @@ import type { AxisTick } from "./../../../xy";
import type { BaseColumnSeries } from "./../../../xy";
import type { BollingerBands } from "./../../../stock";
import type { BreadcrumbBar } from "./../../../hierarchy";
import type { BullBearPower } from "./../../../stock";
import type { Bullet } from "./../../../index";
import type { Button } from "./../../../index";
import type { CalloutSeries } from "./../../../stock";
Expand Down Expand Up @@ -112,6 +114,7 @@ import type { LinearGradient } from "./../../../index";
import type { LinkedHierarchy } from "./../../../hierarchy";
import type { LinkedHierarchyNode } from "./../../../hierarchy";
import type { MACD } from "./../../../stock";
import type { MACross } from "./../../../stock";
import type { MapChart } from "./../../../map";
import type { MapLine } from "./../../../map";
import type { MapLineSeries } from "./../../../map";
Expand All @@ -130,6 +133,7 @@ import type { OHLC } from "./../../../xy";
import type { OHLCSeries } from "./../../../xy";
import type { OnBalanceVolume } from "./../../../stock";
import type { OverboughtOversold } from "./../../../stock";
import type { PVT } from "./../../../stock";
import type { Pack } from "./../../../hierarchy";
import type { PanelControls } from "./../../../stock";
import type { ParallelChannelSeries } from "./../../../stock";
Expand Down Expand Up @@ -222,6 +226,7 @@ import type { ZigZag } from "./../../../stock";
import type { ZoomControl } from "./../../../map";

export interface IClasses {
"AccelerationBands": () => Promise<typeof AccelerationBands>;
"AccumulationDistribution": () => Promise<typeof AccumulationDistribution>;
"AccumulativeSwingIndex": () => Promise<typeof AccumulativeSwingIndex>;
"Annotator": () => Promise<typeof Annotator>;
Expand All @@ -244,6 +249,7 @@ export interface IClasses {
"BaseColumnSeries": () => Promise<typeof BaseColumnSeries>;
"BollingerBands": () => Promise<typeof BollingerBands>;
"BreadcrumbBar": () => Promise<typeof BreadcrumbBar>;
"BullBearPower": () => Promise<typeof BullBearPower>;
"Bullet": () => Promise<typeof Bullet>;
"Button": () => Promise<typeof Button>;
"CalloutSeries": () => Promise<typeof CalloutSeries>;
Expand Down Expand Up @@ -331,6 +337,7 @@ export interface IClasses {
"LinkedHierarchy": () => Promise<typeof LinkedHierarchy>;
"LinkedHierarchyNode": () => Promise<typeof LinkedHierarchyNode>;
"MACD": () => Promise<typeof MACD>;
"MACross": () => Promise<typeof MACross>;
"MapChart": () => Promise<typeof MapChart>;
"MapLine": () => Promise<typeof MapLine>;
"MapLineSeries": () => Promise<typeof MapLineSeries>;
Expand All @@ -349,6 +356,7 @@ export interface IClasses {
"OHLCSeries": () => Promise<typeof OHLCSeries>;
"OnBalanceVolume": () => Promise<typeof OnBalanceVolume>;
"OverboughtOversold": () => Promise<typeof OverboughtOversold>;
"PVT": () => Promise<typeof PVT>;
"Pack": () => Promise<typeof Pack>;
"PanelControls": () => Promise<typeof PanelControls>;
"ParallelChannelSeries": () => Promise<typeof ParallelChannelSeries>;
Expand Down Expand Up @@ -442,6 +450,7 @@ export interface IClasses {
}

const classes: IClasses = {
"AccelerationBands": () => import(/* webpackExports: "AccelerationBands", webpackMode: "weak" */ "./../../../stock").then((m) => m.AccelerationBands),
"AccumulationDistribution": () => import(/* webpackExports: "AccumulationDistribution", webpackMode: "weak" */ "./../../../stock").then((m) => m.AccumulationDistribution),
"AccumulativeSwingIndex": () => import(/* webpackExports: "AccumulativeSwingIndex", webpackMode: "weak" */ "./../../../stock").then((m) => m.AccumulativeSwingIndex),
"Annotator": () => import(/* webpackExports: "Annotator", webpackMode: "weak" */ "./../../../plugins/exporting").then((m) => m.Annotator),
Expand All @@ -464,6 +473,7 @@ const classes: IClasses = {
"BaseColumnSeries": () => import(/* webpackExports: "BaseColumnSeries", webpackMode: "weak" */ "./../../../xy").then((m) => m.BaseColumnSeries),
"BollingerBands": () => import(/* webpackExports: "BollingerBands", webpackMode: "weak" */ "./../../../stock").then((m) => m.BollingerBands),
"BreadcrumbBar": () => import(/* webpackExports: "BreadcrumbBar", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.BreadcrumbBar),
"BullBearPower": () => import(/* webpackExports: "BullBearPower", webpackMode: "weak" */ "./../../../stock").then((m) => m.BullBearPower),
"Bullet": () => import(/* webpackExports: "Bullet", webpackMode: "weak" */ "./../../../index").then((m) => m.Bullet),
"Button": () => import(/* webpackExports: "Button", webpackMode: "weak" */ "./../../../index").then((m) => m.Button),
"CalloutSeries": () => import(/* webpackExports: "CalloutSeries", webpackMode: "weak" */ "./../../../stock").then((m) => m.CalloutSeries),
Expand Down Expand Up @@ -551,6 +561,7 @@ const classes: IClasses = {
"LinkedHierarchy": () => import(/* webpackExports: "LinkedHierarchy", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.LinkedHierarchy),
"LinkedHierarchyNode": () => import(/* webpackExports: "LinkedHierarchyNode", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.LinkedHierarchyNode),
"MACD": () => import(/* webpackExports: "MACD", webpackMode: "weak" */ "./../../../stock").then((m) => m.MACD),
"MACross": () => import(/* webpackExports: "MACross", webpackMode: "weak" */ "./../../../stock").then((m) => m.MACross),
"MapChart": () => import(/* webpackExports: "MapChart", webpackMode: "weak" */ "./../../../map").then((m) => m.MapChart),
"MapLine": () => import(/* webpackExports: "MapLine", webpackMode: "weak" */ "./../../../map").then((m) => m.MapLine),
"MapLineSeries": () => import(/* webpackExports: "MapLineSeries", webpackMode: "weak" */ "./../../../map").then((m) => m.MapLineSeries),
Expand All @@ -569,6 +580,7 @@ const classes: IClasses = {
"OHLCSeries": () => import(/* webpackExports: "OHLCSeries", webpackMode: "weak" */ "./../../../xy").then((m) => m.OHLCSeries),
"OnBalanceVolume": () => import(/* webpackExports: "OnBalanceVolume", webpackMode: "weak" */ "./../../../stock").then((m) => m.OnBalanceVolume),
"OverboughtOversold": () => import(/* webpackExports: "OverboughtOversold", webpackMode: "weak" */ "./../../../stock").then((m) => m.OverboughtOversold),
"PVT": () => import(/* webpackExports: "PVT", webpackMode: "weak" */ "./../../../stock").then((m) => m.PVT),
"Pack": () => import(/* webpackExports: "Pack", webpackMode: "weak" */ "./../../../hierarchy").then((m) => m.Pack),
"PanelControls": () => import(/* webpackExports: "PanelControls", webpackMode: "weak" */ "./../../../stock").then((m) => m.PanelControls),
"ParallelChannelSeries": () => import(/* webpackExports: "ParallelChannelSeries", webpackMode: "weak" */ "./../../../stock").then((m) => m.ParallelChannelSeries),
Expand Down
12 changes: 12 additions & 0 deletions src/.internal/plugins/json/Classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* DO NOT MANUALLY EDIT IT OR YOUR CHANGES WILL BE LOST!
*/

import type { AccelerationBands } from "./../../../stock";
import type { AccumulationDistribution } from "./../../../stock";
import type { AccumulativeSwingIndex } from "./../../../stock";
import type { Annotator } from "./../../../plugins/exporting";
Expand All @@ -25,6 +26,7 @@ import type { AxisTick } from "./../../../xy";
import type { BaseColumnSeries } from "./../../../xy";
import type { BollingerBands } from "./../../../stock";
import type { BreadcrumbBar } from "./../../../hierarchy";
import type { BullBearPower } from "./../../../stock";
import type { Bullet } from "./../../../index";
import type { Button } from "./../../../index";
import type { CalloutSeries } from "./../../../stock";
Expand Down Expand Up @@ -112,6 +114,7 @@ import type { LinearGradient } from "./../../../index";
import type { LinkedHierarchy } from "./../../../hierarchy";
import type { LinkedHierarchyNode } from "./../../../hierarchy";
import type { MACD } from "./../../../stock";
import type { MACross } from "./../../../stock";
import type { MapChart } from "./../../../map";
import type { MapLine } from "./../../../map";
import type { MapLineSeries } from "./../../../map";
Expand All @@ -130,6 +133,7 @@ import type { OHLC } from "./../../../xy";
import type { OHLCSeries } from "./../../../xy";
import type { OnBalanceVolume } from "./../../../stock";
import type { OverboughtOversold } from "./../../../stock";
import type { PVT } from "./../../../stock";
import type { Pack } from "./../../../hierarchy";
import type { PanelControls } from "./../../../stock";
import type { ParallelChannelSeries } from "./../../../stock";
Expand Down Expand Up @@ -222,6 +226,7 @@ import type { ZigZag } from "./../../../stock";
import type { ZoomControl } from "./../../../map";

export interface IClasses {
"AccelerationBands": () => Promise<typeof AccelerationBands>;
"AccumulationDistribution": () => Promise<typeof AccumulationDistribution>;
"AccumulativeSwingIndex": () => Promise<typeof AccumulativeSwingIndex>;
"Annotator": () => Promise<typeof Annotator>;
Expand All @@ -244,6 +249,7 @@ export interface IClasses {
"BaseColumnSeries": () => Promise<typeof BaseColumnSeries>;
"BollingerBands": () => Promise<typeof BollingerBands>;
"BreadcrumbBar": () => Promise<typeof BreadcrumbBar>;
"BullBearPower": () => Promise<typeof BullBearPower>;
"Bullet": () => Promise<typeof Bullet>;
"Button": () => Promise<typeof Button>;
"CalloutSeries": () => Promise<typeof CalloutSeries>;
Expand Down Expand Up @@ -331,6 +337,7 @@ export interface IClasses {
"LinkedHierarchy": () => Promise<typeof LinkedHierarchy>;
"LinkedHierarchyNode": () => Promise<typeof LinkedHierarchyNode>;
"MACD": () => Promise<typeof MACD>;
"MACross": () => Promise<typeof MACross>;
"MapChart": () => Promise<typeof MapChart>;
"MapLine": () => Promise<typeof MapLine>;
"MapLineSeries": () => Promise<typeof MapLineSeries>;
Expand All @@ -349,6 +356,7 @@ export interface IClasses {
"OHLCSeries": () => Promise<typeof OHLCSeries>;
"OnBalanceVolume": () => Promise<typeof OnBalanceVolume>;
"OverboughtOversold": () => Promise<typeof OverboughtOversold>;
"PVT": () => Promise<typeof PVT>;
"Pack": () => Promise<typeof Pack>;
"PanelControls": () => Promise<typeof PanelControls>;
"ParallelChannelSeries": () => Promise<typeof ParallelChannelSeries>;
Expand Down Expand Up @@ -442,6 +450,7 @@ export interface IClasses {
}

const classes: IClasses = {
"AccelerationBands": () => import(/* webpackExports: "AccelerationBands", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.AccelerationBands),
"AccumulationDistribution": () => import(/* webpackExports: "AccumulationDistribution", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.AccumulationDistribution),
"AccumulativeSwingIndex": () => import(/* webpackExports: "AccumulativeSwingIndex", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.AccumulativeSwingIndex),
"Annotator": () => import(/* webpackExports: "Annotator", webpackChunkName: "json_plugins_exporting" */ "./../../../plugins/exporting").then((m) => m.Annotator),
Expand All @@ -464,6 +473,7 @@ const classes: IClasses = {
"BaseColumnSeries": () => import(/* webpackExports: "BaseColumnSeries", webpackChunkName: "json_xy" */ "./../../../xy").then((m) => m.BaseColumnSeries),
"BollingerBands": () => import(/* webpackExports: "BollingerBands", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.BollingerBands),
"BreadcrumbBar": () => import(/* webpackExports: "BreadcrumbBar", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.BreadcrumbBar),
"BullBearPower": () => import(/* webpackExports: "BullBearPower", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.BullBearPower),
"Bullet": () => import(/* webpackExports: "Bullet", webpackChunkName: "json_index" */ "./../../../index").then((m) => m.Bullet),
"Button": () => import(/* webpackExports: "Button", webpackChunkName: "json_index" */ "./../../../index").then((m) => m.Button),
"CalloutSeries": () => import(/* webpackExports: "CalloutSeries", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.CalloutSeries),
Expand Down Expand Up @@ -551,6 +561,7 @@ const classes: IClasses = {
"LinkedHierarchy": () => import(/* webpackExports: "LinkedHierarchy", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.LinkedHierarchy),
"LinkedHierarchyNode": () => import(/* webpackExports: "LinkedHierarchyNode", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.LinkedHierarchyNode),
"MACD": () => import(/* webpackExports: "MACD", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.MACD),
"MACross": () => import(/* webpackExports: "MACross", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.MACross),
"MapChart": () => import(/* webpackExports: "MapChart", webpackChunkName: "json_map" */ "./../../../map").then((m) => m.MapChart),
"MapLine": () => import(/* webpackExports: "MapLine", webpackChunkName: "json_map" */ "./../../../map").then((m) => m.MapLine),
"MapLineSeries": () => import(/* webpackExports: "MapLineSeries", webpackChunkName: "json_map" */ "./../../../map").then((m) => m.MapLineSeries),
Expand All @@ -569,6 +580,7 @@ const classes: IClasses = {
"OHLCSeries": () => import(/* webpackExports: "OHLCSeries", webpackChunkName: "json_xy" */ "./../../../xy").then((m) => m.OHLCSeries),
"OnBalanceVolume": () => import(/* webpackExports: "OnBalanceVolume", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.OnBalanceVolume),
"OverboughtOversold": () => import(/* webpackExports: "OverboughtOversold", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.OverboughtOversold),
"PVT": () => import(/* webpackExports: "PVT", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.PVT),
"Pack": () => import(/* webpackExports: "Pack", webpackChunkName: "json_hierarchy" */ "./../../../hierarchy").then((m) => m.Pack),
"PanelControls": () => import(/* webpackExports: "PanelControls", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.PanelControls),
"ParallelChannelSeries": () => import(/* webpackExports: "ParallelChannelSeries", webpackChunkName: "json_stock" */ "./../../../stock").then((m) => m.ParallelChannelSeries),
Expand Down
Loading

0 comments on commit dfbc80e

Please sign in to comment.