@univerjs-pro/pivot-cache
v1.0.3
Published
Host-neutral shared pivot cache contracts for Univer Pro.
Readme
@univerjs-pro/pivot-cache
@univerjs-pro/pivot-cache is part of Univer Pro. Host-neutral Pivot Cache references, provider contracts and registry shared by PivotTable and PivotChart.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs-pro/pivot-cache | UniverProPivotCache | No | No | No |
Installation
pnpm add @univerjs-pro/pivot-cache
# or
npm install @univerjs-pro/pivot-cacheKeep all @univerjs/* and @univerjs-pro/* packages on the same version.
Usage
Host packages register a provider with IPivotCacheProviderRegistry. Consumers acquire a disposable cache handle; source changes are published through the handle's changed$ observable. Releasing a handle does not remove another report's cache reference.
Integration Notes
The package has one standard root entry and no Chart, Drawing or host runtime dependency. Unit, Embedded and Resource identify reference formats; only registered providers can resolve them. Declaring a reference kind does not implement its loading or persistence behavior.
The public declarations reuse Pivot and Embed types through peer dependencies and RxJS observable types through the existing RxJS dependency. These type contracts do not load the host or chart runtimes.
