@praxisui/charts 10.0.0-rc.66 → 10.0.0-rc.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-11-27T07:08:08.775Z",
3
+ "generatedAt": "2026-11-27T10:56:19.853Z",
4
4
  "packageName": "@praxisui/charts",
5
- "packageVersion": "10.0.0-rc.66",
5
+ "packageVersion": "10.0.0-rc.67",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 13,
@@ -9833,7 +9833,7 @@ class PraxisChartComponent {
9833
9833
  this.hasRenderedOnce.set(false);
9834
9834
  this.pendingResizeOnReady = false;
9835
9835
  this.destroyResizeObserver();
9836
- this.engine.destroy();
9836
+ this.ngZone.runOutsideAngular(() => this.engine.destroy());
9837
9837
  }
9838
9838
  this.previousRemoteSignature = nextSignature;
9839
9839
  this.previousRemoteIdentitySignature = nextIdentitySignature;
@@ -9957,7 +9957,7 @@ class PraxisChartComponent {
9957
9957
  this.hasRenderedOnce.set(false);
9958
9958
  this.pendingResizeOnReady = false;
9959
9959
  this.destroyResizeObserver();
9960
- this.engine.destroy();
9960
+ this.ngZone.runOutsideAngular(() => this.engine.destroy());
9961
9961
  }
9962
9962
  return;
9963
9963
  }
@@ -9975,23 +9975,28 @@ class PraxisChartComponent {
9975
9975
  this.deferredRenderAttempts = 0;
9976
9976
  const hierarchyRootPath = this.activeHierarchyPath();
9977
9977
  const renderCfg = this.renderConfig();
9978
- this.engine.render(host, {
9979
- config: renderCfg,
9980
- data: this.resolvedData(),
9981
- hierarchyRootPath,
9982
- dataAlternativeMode: this.dataAlternativeMode(),
9983
- externalDataAlternativeLabel: this.externalDataAlternativeLabel(),
9984
- onPointClick: (event) => this.ngZone.run(() => this.handlePointClick(event)),
9985
- onPointHoverEnter: (event) => this.ngZone.run(() => this.handlePointHoverEnter(host, event)),
9986
- onPointHoverLeave: () => this.ngZone.run(() => this.handlePointHoverLeave()),
9987
- onBrushSelected: (indices) => this.ngZone.run(() => this.handleBrushSelected(indices)),
9988
- onTimelineChanged: (stepIndex) => this.ngZone.run(() => this.handleTimelineChanged(stepIndex)),
9978
+ const resolvedData = this.resolvedData();
9979
+ const dataAlternativeMode = this.dataAlternativeMode();
9980
+ const externalDataAlternativeLabel = this.externalDataAlternativeLabel();
9981
+ this.ngZone.runOutsideAngular(() => {
9982
+ this.engine.render(host, {
9983
+ config: renderCfg,
9984
+ data: resolvedData,
9985
+ hierarchyRootPath,
9986
+ dataAlternativeMode,
9987
+ externalDataAlternativeLabel,
9988
+ onPointClick: (event) => this.ngZone.run(() => this.handlePointClick(event)),
9989
+ onPointHoverEnter: (event) => this.ngZone.run(() => this.handlePointHoverEnter(host, event)),
9990
+ onPointHoverLeave: () => this.ngZone.run(() => this.handlePointHoverLeave()),
9991
+ onBrushSelected: (indices) => this.ngZone.run(() => this.handleBrushSelected(indices)),
9992
+ onTimelineChanged: (stepIndex) => this.ngZone.run(() => this.handleTimelineChanged(stepIndex)),
9993
+ });
9994
+ this.engine.setSyncGroup?.(renderCfg.syncGroup ?? null);
9989
9995
  });
9990
- this.engine.setSyncGroup?.(renderCfg.syncGroup ?? null);
9991
9996
  if (this.pendingResizeOnReady) {
9992
9997
  this.pendingResizeOnReady = false;
9993
9998
  this.dismissActiveQuickView('anchor-invalid');
9994
- this.engine.resize();
9999
+ this.ngZone.runOutsideAngular(() => this.engine.resize());
9995
10000
  }
9996
10001
  if (!untracked(() => this.hasRenderedOnce())) {
9997
10002
  this.hasRenderedOnce.set(true);
@@ -10006,7 +10011,7 @@ class PraxisChartComponent {
10006
10011
  this.themeObserver()?.disconnect();
10007
10012
  this.cancelScheduledResize();
10008
10013
  this.cancelScheduledRender();
10009
- this.engine.destroy();
10014
+ this.ngZone.runOutsideAngular(() => this.engine.destroy());
10010
10015
  });
10011
10016
  }
10012
10017
  resolveDataDiagnosticDescription(diagnostic) {
@@ -10319,7 +10324,9 @@ class PraxisChartComponent {
10319
10324
  }
10320
10325
  clearBrushSelection() {
10321
10326
  this.brushSelectionState.set(null);
10322
- this.engine.dispatchAction?.({ type: 'brush', areas: [] });
10327
+ this.ngZone.runOutsideAngular(() => {
10328
+ this.engine.dispatchAction?.({ type: 'brush', areas: [] });
10329
+ });
10323
10330
  }
10324
10331
  handleBrushSelected(selectedDataIndices) {
10325
10332
  const config = this.renderConfig();
@@ -11073,14 +11080,17 @@ class PraxisChartComponent {
11073
11080
  return;
11074
11081
  }
11075
11082
  this.destroyResizeObserver();
11076
- const observer = new ResizeObserver(() => {
11077
- this.scheduleChartRender();
11078
- this.scheduleEngineResize();
11083
+ const observer = this.ngZone.runOutsideAngular(() => {
11084
+ const nextObserver = new ResizeObserver(() => {
11085
+ this.scheduleChartRender();
11086
+ this.scheduleEngineResize();
11087
+ });
11088
+ nextObserver.observe(host);
11089
+ if (host.parentElement) {
11090
+ nextObserver.observe(host.parentElement);
11091
+ }
11092
+ return nextObserver;
11079
11093
  });
11080
- observer.observe(host);
11081
- if (host.parentElement) {
11082
- observer.observe(host.parentElement);
11083
- }
11084
11094
  this.resizeObserverHost = host;
11085
11095
  this.resizeObserver.set(observer);
11086
11096
  }
@@ -11297,13 +11307,13 @@ class PraxisChartComponent {
11297
11307
  if (typeof requestAnimationFrame !== 'function') {
11298
11308
  this.pendingResizeOnReady = false;
11299
11309
  this.dismissActiveQuickView('anchor-invalid');
11300
- this.engine.resize();
11310
+ this.ngZone.runOutsideAngular(() => this.engine.resize());
11301
11311
  return;
11302
11312
  }
11303
11313
  if (this.resizeFrameId !== null) {
11304
11314
  return;
11305
11315
  }
11306
- this.resizeFrameId = requestAnimationFrame(() => {
11316
+ this.resizeFrameId = this.ngZone.runOutsideAngular(() => requestAnimationFrame(() => {
11307
11317
  this.resizeFrameId = null;
11308
11318
  if (this.loadState() !== 'ready') {
11309
11319
  if (this.hasRenderedOnce()) {
@@ -11312,9 +11322,11 @@ class PraxisChartComponent {
11312
11322
  return;
11313
11323
  }
11314
11324
  this.pendingResizeOnReady = false;
11315
- this.dismissActiveQuickView('anchor-invalid');
11316
- this.engine.resize();
11317
- });
11325
+ if (this.activeQuickViewAnchor && this.quickView) {
11326
+ this.ngZone.run(() => this.dismissActiveQuickView('anchor-invalid'));
11327
+ }
11328
+ this.ngZone.runOutsideAngular(() => this.engine.resize());
11329
+ }));
11318
11330
  }
11319
11331
  scheduleChartRender() {
11320
11332
  if (this.renderFrameId !== null) {
@@ -11328,11 +11340,20 @@ class PraxisChartComponent {
11328
11340
  this.renderAttempt.update((value) => value + 1);
11329
11341
  return;
11330
11342
  }
11331
- this.renderFrameId = requestAnimationFrame(() => {
11343
+ this.renderFrameId = this.ngZone.runOutsideAngular(() => requestAnimationFrame(() => {
11332
11344
  this.renderFrameId = null;
11333
11345
  this.deferredRenderAttempts += 1;
11334
- this.renderAttempt.update((value) => value + 1);
11335
- });
11346
+ const host = this.chartHost()?.nativeElement;
11347
+ if (!host || this.hasRenderableSize(host)) {
11348
+ this.ngZone.run(() => {
11349
+ this.renderAttempt.update((value) => value + 1);
11350
+ });
11351
+ return;
11352
+ }
11353
+ if (this.loadState() === 'ready') {
11354
+ this.scheduleChartRender();
11355
+ }
11356
+ }));
11336
11357
  }
11337
11358
  cancelScheduledRender() {
11338
11359
  if (this.renderFrameId === null) {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@praxisui/charts",
3
- "version": "10.0.0-rc.66",
3
+ "version": "10.0.0-rc.67",
4
4
  "description": "Metadata-driven charts library for Praxis UI Angular with engine adapters and Apache ECharts as the initial renderer.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
- "@praxisui/core": "^10.0.0-rc.66",
8
+ "@praxisui/core": "^10.0.0-rc.67",
9
9
  "@angular/forms": "^21.0.0",
10
10
  "@angular/material": "^21.0.0",
11
- "@praxisui/table": "^10.0.0-rc.66",
11
+ "@praxisui/table": "^10.0.0-rc.67",
12
12
  "rxjs": "~7.8.0"
13
13
  },
14
14
  "dependencies": {