Skip to content

Charts: convert the BaseWidget into an ES6 class and improve typing - #35302

Merged
EugeniyKiyashko merged 2 commits into
mainfrom
typescript/viz/es6_base_widget
Sep 23, 2026
Merged

EugeniyKiyashko merged 2 commits into
mainfrom
typescript/viz/es6_base_widget

Conversation

@EugeniyKiyashko

@EugeniyKiyashko EugeniyKiyashko commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Closes DevExpress/devextreme-private#5191

@EugeniyKiyashko
EugeniyKiyashko requested a review from a team as a code owner September 22, 2026 21:24
Copilot AI lite review requested due to automatic review settings September 22, 2026 21:24
@EugeniyKiyashko EugeniyKiyashko self-assigned this Sep 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

Broad class migration spans 15 files and warrants final human review.

Review effort: Lite
Findings: None

What changed in this PR

Converts the visualization BaseWidget to an ES6 class while improving typing across related widgets.

Changes:

  • Updates widget inheritance and lifecycle methods.
  • Adds plugin member typings.
  • Updates tests and supporting DOM/options APIs.
File Description
packages/​devextreme/​testing/​tests/​DevExpress.viz.core/​baseWidget.tests.js Updates BaseWidget test setup.
packages/​devextreme/​js/​__internal/​viz/​vector_map/​vector_map.ts Modernizes widget overrides and plugin typing.
packages/​devextreme/​js/​__internal/​viz/​tree_map/​tree_map.base.ts Updates lifecycle methods and data-source typing.
packages/​devextreme/​js/​__internal/​viz/​sparklines/​sparkline.ts Adds data-source plugin typing.
packages/​devextreme/​js/​__internal/​viz/​sparklines/​base_sparkline.ts Updates tooltip handling and typing.
packages/​devextreme/​js/​__internal/​viz/​sankey/​sankey.ts Adds data-source plugin typing.
packages/​devextreme/​js/​__internal/​viz/​range_selector/​range_selector.ts Updates overrides and data-source typing.
packages/​devextreme/​js/​__internal/​viz/​gauges/​base_gauge.ts Updates lifecycle methods and member typing.
packages/​devextreme/​js/​__internal/​viz/​funnel/​funnel.ts Adds data-source plugin typing.
packages/​devextreme/​js/​__internal/​viz/​core/​tooltip.ts Defines tooltip plugin member types.
packages/​devextreme/​js/​__internal/​viz/​core/​data_source.ts Defines data-source plugin member types.
packages/​devextreme/​js/​__internal/​viz/​core/​base_widget.ts Converts the core widget to an ES6 class.
packages/​devextreme/​js/​__internal/​viz/​core/​annotations.ts Defines annotation plugin member types.
packages/​devextreme/​js/​__internal/​core/​widget/​dom_component.ts Makes the element wrapper protected.
packages/​devextreme/​js/​__internal/​core/​options/​m_index.ts Allows optional silent-option arguments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI review requested due to automatic review settings September 22, 2026 21:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The broad class migration and typing changes require final human review.

Review effort: Lite
Findings: None

@EugeniyKiyashko
EugeniyKiyashko added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 66c3f89 Sep 23, 2026
127 checks passed
@EugeniyKiyashko
EugeniyKiyashko deleted the typescript/viz/es6_base_widget branch September 23, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants