squarified 0.4.1 → 0.4.2

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,3 +1,10 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
2
+ type Any = any
3
+
4
+ type AnyObject = Record<keyof Any, Any>
5
+
6
+ type NonNull = NonNullable<unknown>
7
+
1
8
  interface MatrixLoc {
2
9
  a: number;
3
10
  b: number;
@@ -507,6 +514,7 @@ declare function createTreemap<const P extends readonly Plugin[]>(options?: Crea
507
514
  } & {
508
515
  off: () => (evt: string, handler?: ((this: unknown, ...args: any[]) => any) | undefined) => void;
509
516
  } & Record<string, never>) & BasicTreemapInstance & ExposedEventMethods & PluginMixins<P>;
517
+ type TreemapInstance<P extends readonly Plugin[]> = BasicTreemapInstance & ExposedEventMethods & PluginMixins<P>;
510
518
 
511
- export { isScrollWheelOrRightButtonOnMouseupAndDown as $, noop as A, createRoundBlock as F, createTitleText as H, raf as I, createCanvasElement as J, applyCanvasTransform as K, mixin as Q, mixinWithParams as U, prettyStrJoin as V, isMacOS as W, typedForIn as X, stackMatrixTransform as Y, stackMatrixTransformWithGraphAndLayer as Z, smoothFrame as _, DefaultMap as a0, DOMEvent as b, createTreemap as d, c2m as e, findRelativeNode as f, findRelativeNodeById as g, flatten as h, getNodeDepth as i, definePlugin as l, isClickEvent as p, isContextMenuEvent as q, isMouseEvent as r, sortChildrenByKey as s, isWheelEvent as t, visit as v, hashCode as y, perferNumeric as z };
512
- export type { BasicTreemapInstance as B, ColorMappings as C, DOMEventType as D, ExposedEventCallback as E, GraphicLayout as G, LayoutModule as L, Module as M, NativeModule as N, InheritedCollections as O, PluginContext as P, InheritedCollectionsWithParamter as R, Series as S, TreemapOptions as T, DOMEventMetadata as a, CreateTreemapOptions as c, Plugin as j, PluginHooks as k, ExposedEventDefinition as m, ExposedEventMethods as n, PrimitiveEventMetadata as o, GraphicFont as u, GraphicConfig as w, TreemapInstanceAPI as x };
519
+ export { smoothFrame as $, perferNumeric as A, noop as F, createRoundBlock as H, createTitleText as I, raf as J, createCanvasElement as K, applyCanvasTransform as O, mixin as R, mixinWithParams as V, prettyStrJoin as W, isMacOS as X, typedForIn as Y, stackMatrixTransform as Z, stackMatrixTransformWithGraphAndLayer as _, isScrollWheelOrRightButtonOnMouseupAndDown as a0, DefaultMap as a1, DOMEvent as b, createTreemap as d, c2m as f, findRelativeNode as g, findRelativeNodeById as h, flatten as i, getNodeDepth as j, definePlugin as m, isClickEvent as q, isContextMenuEvent as r, sortChildrenByKey as s, isMouseEvent as t, isWheelEvent as u, visit as v, hashCode as z };
520
+ export type { BasicTreemapInstance as B, ColorMappings as C, DOMEventType as D, ExposedEventCallback as E, GraphicLayout as G, LayoutModule as L, Module as M, NativeModule as N, PluginContext as P, InheritedCollections as Q, Series as S, TreemapOptions as T, InheritedCollectionsWithParamter as U, DOMEventMetadata as a, CreateTreemapOptions as c, TreemapInstance as e, Plugin as k, PluginHooks as l, ExposedEventDefinition as n, ExposedEventMethods as o, PrimitiveEventMetadata as p, GraphicFont as w, GraphicConfig as x, TreemapInstanceAPI as y };
package/dist/index.d.mts CHANGED
@@ -1 +1 @@
1
- export { B as BasicTreemapInstance, c as CreateTreemapOptions, D as DOMEventType, a0 as DefaultMap, E as ExposedEventCallback, m as ExposedEventDefinition, n as ExposedEventMethods, w as GraphicConfig, u as GraphicFont, G as GraphicLayout, O as InheritedCollections, R as InheritedCollectionsWithParamter, L as LayoutModule, M as Module, N as NativeModule, j as Plugin, P as PluginContext, k as PluginHooks, o as PrimitiveEventMetadata, S as Series, x as TreemapInstanceAPI, T as TreemapOptions, K as applyCanvasTransform, e as c2m, J as createCanvasElement, F as createRoundBlock, H as createTitleText, d as createTreemap, l as definePlugin, f as findRelativeNode, g as findRelativeNodeById, h as flattenModule, i as getNodeDepth, y as hashCode, p as isClickEvent, q as isContextMenuEvent, W as isMacOS, r as isMouseEvent, $ as isScrollWheelOrRightButtonOnMouseupAndDown, t as isWheelEvent, Q as mixin, U as mixinWithParams, A as noop, z as perferNumeric, V as prettyStrJoin, I as raf, _ as smoothFrame, s as sortChildrenByKey, Y as stackMatrixTransform, Z as stackMatrixTransformWithGraphAndLayer, X as typedForIn, v as visit } from './index-DcZTC3Az.js';
1
+ export { B as BasicTreemapInstance, c as CreateTreemapOptions, D as DOMEventType, a1 as DefaultMap, E as ExposedEventCallback, n as ExposedEventDefinition, o as ExposedEventMethods, x as GraphicConfig, w as GraphicFont, G as GraphicLayout, Q as InheritedCollections, U as InheritedCollectionsWithParamter, L as LayoutModule, M as Module, N as NativeModule, k as Plugin, P as PluginContext, l as PluginHooks, p as PrimitiveEventMetadata, S as Series, e as TreemapInstance, y as TreemapInstanceAPI, T as TreemapOptions, O as applyCanvasTransform, f as c2m, K as createCanvasElement, H as createRoundBlock, I as createTitleText, d as createTreemap, m as definePlugin, g as findRelativeNode, h as findRelativeNodeById, i as flattenModule, j as getNodeDepth, z as hashCode, q as isClickEvent, r as isContextMenuEvent, X as isMacOS, t as isMouseEvent, a0 as isScrollWheelOrRightButtonOnMouseupAndDown, u as isWheelEvent, R as mixin, V as mixinWithParams, F as noop, A as perferNumeric, W as prettyStrJoin, J as raf, $ as smoothFrame, s as sortChildrenByKey, Z as stackMatrixTransform, _ as stackMatrixTransformWithGraphAndLayer, Y as typedForIn, v as visit } from './index-BoUEaWVv.js';
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export { B as BasicTreemapInstance, c as CreateTreemapOptions, D as DOMEventType, a0 as DefaultMap, E as ExposedEventCallback, m as ExposedEventDefinition, n as ExposedEventMethods, w as GraphicConfig, u as GraphicFont, G as GraphicLayout, O as InheritedCollections, R as InheritedCollectionsWithParamter, L as LayoutModule, M as Module, N as NativeModule, j as Plugin, P as PluginContext, k as PluginHooks, o as PrimitiveEventMetadata, S as Series, x as TreemapInstanceAPI, T as TreemapOptions, K as applyCanvasTransform, e as c2m, J as createCanvasElement, F as createRoundBlock, H as createTitleText, d as createTreemap, l as definePlugin, f as findRelativeNode, g as findRelativeNodeById, h as flattenModule, i as getNodeDepth, y as hashCode, p as isClickEvent, q as isContextMenuEvent, W as isMacOS, r as isMouseEvent, $ as isScrollWheelOrRightButtonOnMouseupAndDown, t as isWheelEvent, Q as mixin, U as mixinWithParams, A as noop, z as perferNumeric, V as prettyStrJoin, I as raf, _ as smoothFrame, s as sortChildrenByKey, Y as stackMatrixTransform, Z as stackMatrixTransformWithGraphAndLayer, X as typedForIn, v as visit } from './index-DcZTC3Az.js';
1
+ export { B as BasicTreemapInstance, c as CreateTreemapOptions, D as DOMEventType, a1 as DefaultMap, E as ExposedEventCallback, n as ExposedEventDefinition, o as ExposedEventMethods, x as GraphicConfig, w as GraphicFont, G as GraphicLayout, Q as InheritedCollections, U as InheritedCollectionsWithParamter, L as LayoutModule, M as Module, N as NativeModule, k as Plugin, P as PluginContext, l as PluginHooks, p as PrimitiveEventMetadata, S as Series, e as TreemapInstance, y as TreemapInstanceAPI, T as TreemapOptions, O as applyCanvasTransform, f as c2m, K as createCanvasElement, H as createRoundBlock, I as createTitleText, d as createTreemap, m as definePlugin, g as findRelativeNode, h as findRelativeNodeById, i as flattenModule, j as getNodeDepth, z as hashCode, q as isClickEvent, r as isContextMenuEvent, X as isMacOS, t as isMouseEvent, a0 as isScrollWheelOrRightButtonOnMouseupAndDown, u as isWheelEvent, R as mixin, V as mixinWithParams, F as noop, A as perferNumeric, W as prettyStrJoin, J as raf, $ as smoothFrame, s as sortChildrenByKey, Z as stackMatrixTransform, _ as stackMatrixTransformWithGraphAndLayer, Y as typedForIn, v as visit } from './index-BoUEaWVv.js';
package/dist/plugin.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, D as DOMEventType, a as DOMEventMetadata, L as LayoutModule, b as DOMEvent, C as ColorMappings, B as BasicTreemapInstance } from './index-DcZTC3Az.js';
1
+ import { P as PluginContext, D as DOMEventType, a as DOMEventMetadata, L as LayoutModule, b as DOMEvent, C as ColorMappings, B as BasicTreemapInstance } from './index-BoUEaWVv.js';
2
2
 
3
3
  declare const presetHighlightPlugin: {
4
4
  name: "treemap:preset-highlight";
package/dist/plugin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as PluginContext, D as DOMEventType, a as DOMEventMetadata, L as LayoutModule, b as DOMEvent, C as ColorMappings, B as BasicTreemapInstance } from './index-DcZTC3Az.js';
1
+ import { P as PluginContext, D as DOMEventType, a as DOMEventMetadata, L as LayoutModule, b as DOMEvent, C as ColorMappings, B as BasicTreemapInstance } from './index-BoUEaWVv.js';
2
2
 
3
3
  declare const presetHighlightPlugin: {
4
4
  name: "treemap:preset-highlight";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarified",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "squarified tree map",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",