WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 92335d2

Browse files
authored
Merge pull request #5766 from ag-grid/AG-16099/initialState
AG-16099 Emit 'initialState' source on chart creation
2 parents 1442792 + 7561b4b commit 92335d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/ag-charts-community/src/chart/interaction/zoomManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export class ZoomManager extends BaseManager {
296296
const changes = this.toCoreZoomState(zoom);
297297
this.lastRestoredState = deepFreeze(deepClone(changes));
298298
this.updateChanges({
299-
source: 'user-interaction',
299+
source: 'initialState',
300300
sourceDetail: 'internal-restoreMemento',
301301
changes,
302302
isReset: false,

packages/ag-charts-types/src/chart/eventOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export interface AgAnnotationsEvent<TContext = ContextDefault> {
6464
context?: TContext;
6565
}
6666

67-
export type AgZoomEventSource = 'user-interaction' | 'chart-update' | 'data-update' | 'sync';
67+
export type AgZoomEventSource = 'user-interaction' | 'chart-update' | 'data-update' | 'sync' | 'initialState';
6868

6969
export interface AgZoomEvent<TContext = ContextDefault> {
7070
type: 'zoom';

0 commit comments

Comments
 (0)