Skip to content

[codex] fix package build against VChart theme contracts#117

Merged
xuefei1313 merged 1 commit into
developfrom
codex/fix-vchart-component-theme-types
Jun 3, 2026
Merged

[codex] fix package build against VChart theme contracts#117
xuefei1313 merged 1 commit into
developfrom
codex/fix-vchart-component-theme-types

Conversation

@xuefei1313
Copy link
Copy Markdown
Contributor

What changed

  • Use IComponentTheme['tooltip'] for the Aurora tooltip theme so mark and dimension remain typed through the component theme contract.
  • Use IComponentTheme['mapLabel'] for the mobile map-label theme instead of importing a narrow type that VChart no longer exports.
  • Ignore local .omx/ state files.

Why

The release build failed because VChart 2.x does not export IMapLabelTheme, and ITooltipTheme itself does not include mark / dimension. Local VChart source confirms mark and dimension are still accepted functionally through IComponentTheme['tooltip'] and consumed by tooltip runtime logic.

Validation

  • node common/scripts/install-run-rush.js build --only @visactor/vchart-aurora-theme --verbose
  • node ../../common/scripts/install-run-rushx.js compile in packages/vchart-aurora-theme
  • node common/scripts/install-run-rush.js build --only tag:package
  • git diff --check

The full package build completed with SUCCESS WITH WARNINGS: 9 operations; warnings are existing Rollup/Browserslist/sourcemap warnings, not blocking build errors.

VChart 2.x keeps tooltip mark/dimension on the component theme contract.

Use IComponentTheme indexed access types to match the public API without changing theme content.

Constraint: @visactor/vchart@2.0.22 exposes component theme contracts via IComponentTheme

Rejected: Remove tooltip mark/dimension | VChart still consumes them from component.tooltip

Confidence: high

Scope-risk: narrow

Directive: Type tooltip as IComponentTheme['tooltip'] when mark/dimension are present

Tested: node common/scripts/install-run-rush.js build --only tag:package

Tested: git diff --check
@xuefei1313 xuefei1313 marked this pull request as ready for review June 3, 2026 03:43
@xuefei1313 xuefei1313 merged commit 9f0044f into develop Jun 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant