@kanunilabs/pivotgrid 1.6.4 → 1.6.6

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.
package/dist/index.d.cts CHANGED
@@ -8,6 +8,15 @@ export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperat
8
8
  * chooser) that must coexist with transient popups.
9
9
  */
10
10
  declare function createThemedHost(gridRoot: HTMLElement): HTMLElement;
11
+ /**
12
+ * Takes the page's CSS `zoom` back out of an appended host (Tekax B.71). A page
13
+ * that zooms <body> (or the host's parent) paints everything in the host that many
14
+ * times larger: `95vw`, `inset: 0` and the viewport coordinates a menu is placed
15
+ * at come out too big and the window runs off the screen. Painted width over layout
16
+ * width is the zoom; the host zooms by its inverse, so lengths inside it are in
17
+ * viewport pixels again. Call it right after the host is appended.
18
+ */
19
+ declare function fitPortalZoom(host: HTMLElement): void;
11
20
  /**
12
21
  * Where a popup host must be appended so that it is actually PAINTED.
13
22
  *
@@ -343,4 +352,4 @@ declare function icon(name: string, size?: number, color?: string): SVGSVGElemen
343
352
  /** The lucide `fill` prop (filled funnel/star when active). */
344
353
  declare function filledIcon(name: string, size?: number, color?: string): SVGSVGElement;
345
354
 
346
- export { type ChartSeriesDef, type ChartSyncResult, type PivotGridApi, type PivotGridVanillaConfig, type PortalLayer, type ResolvedI18n, type VanillaCellClickEvent, type VanillaCellConfig, type VanillaCellPreparedEvent, type VanillaChartIntegrationOptions, createChartSync, createPivotGrid, createPortalLayer, createThemedHost, createValueFormatter, filledIcon, icon, portalParent, resolveI18n };
355
+ export { type ChartSeriesDef, type ChartSyncResult, type PivotGridApi, type PivotGridVanillaConfig, type PortalLayer, type ResolvedI18n, type VanillaCellClickEvent, type VanillaCellConfig, type VanillaCellPreparedEvent, type VanillaChartIntegrationOptions, createChartSync, createPivotGrid, createPortalLayer, createThemedHost, createValueFormatter, filledIcon, fitPortalZoom, icon, portalParent, resolveI18n };
package/dist/index.d.ts CHANGED
@@ -8,6 +8,15 @@ export { ExportFormat, ExportOptions, FilterCondition, FilterGroup, FilterOperat
8
8
  * chooser) that must coexist with transient popups.
9
9
  */
10
10
  declare function createThemedHost(gridRoot: HTMLElement): HTMLElement;
11
+ /**
12
+ * Takes the page's CSS `zoom` back out of an appended host (Tekax B.71). A page
13
+ * that zooms <body> (or the host's parent) paints everything in the host that many
14
+ * times larger: `95vw`, `inset: 0` and the viewport coordinates a menu is placed
15
+ * at come out too big and the window runs off the screen. Painted width over layout
16
+ * width is the zoom; the host zooms by its inverse, so lengths inside it are in
17
+ * viewport pixels again. Call it right after the host is appended.
18
+ */
19
+ declare function fitPortalZoom(host: HTMLElement): void;
11
20
  /**
12
21
  * Where a popup host must be appended so that it is actually PAINTED.
13
22
  *
@@ -343,4 +352,4 @@ declare function icon(name: string, size?: number, color?: string): SVGSVGElemen
343
352
  /** The lucide `fill` prop (filled funnel/star when active). */
344
353
  declare function filledIcon(name: string, size?: number, color?: string): SVGSVGElement;
345
354
 
346
- export { type ChartSeriesDef, type ChartSyncResult, type PivotGridApi, type PivotGridVanillaConfig, type PortalLayer, type ResolvedI18n, type VanillaCellClickEvent, type VanillaCellConfig, type VanillaCellPreparedEvent, type VanillaChartIntegrationOptions, createChartSync, createPivotGrid, createPortalLayer, createThemedHost, createValueFormatter, filledIcon, icon, portalParent, resolveI18n };
355
+ export { type ChartSeriesDef, type ChartSyncResult, type PivotGridApi, type PivotGridVanillaConfig, type PortalLayer, type ResolvedI18n, type VanillaCellClickEvent, type VanillaCellConfig, type VanillaCellPreparedEvent, type VanillaChartIntegrationOptions, createChartSync, createPivotGrid, createPortalLayer, createThemedHost, createValueFormatter, filledIcon, fitPortalZoom, icon, portalParent, resolveI18n };