katucharts.js 0.2.19 → 0.2.21

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.
@@ -4,13 +4,12 @@
4
4
  * Validation is hybrid:
5
5
  * - Offline: Ed25519 signature check, synchronous and instant. The bundle
6
6
  * carries only the public key, so it can verify keys but never sign them.
7
- * This alone governs behaviour when no verifyUrl is configured.
8
- * - Online (opt-in via configureLicensing): a background POST to the issuing
9
- * backend confirms the key is genuine, the subscription is active, and the
10
- * current host is within the key's seat limit. Results are cached with an
11
- * offline grace window. In 'strict' mode, once the grace window lapses a
12
- * successful online check becomes mandatory; in 'lenient' mode an unreachable
13
- * backend falls back to the offline signature.
7
+ * - Online: a background POST to the issuing backend confirms the key is
8
+ * genuine, the subscription is active, and the current host is within the
9
+ * key's seat limit. Results are cached with an offline grace window. In
10
+ * 'strict' mode, once the grace window lapses a successful online check
11
+ * becomes mandatory; in 'lenient' mode an unreachable backend falls back to
12
+ * the offline signature.
14
13
  */
15
14
  export interface LicensePayload {
16
15
  customer: string;
@@ -4,6 +4,27 @@ import type { InternalSeriesConfig } from '../../types/options';
4
4
  export declare class PieChart extends BaseSeries {
5
5
  private selectedIndices;
6
6
  constructor(config: InternalSeriesConfig);
7
+ /**
8
+ * Value-bearing points eligible for the legend — one entry per slice, in data
9
+ * order. Mirrors the renderer's filter so palette colours line up with slices.
10
+ */
11
+ private legendPoints;
12
+ /**
13
+ * One legend entry per slice (name + slice colour), so a pie can show a
14
+ * per-slice legend instead of a single series item. Hidden slices report
15
+ * `visible: false` so the legend can strike them through.
16
+ */
17
+ getMultiLegendItems(): {
18
+ label: string;
19
+ color: string;
20
+ visible?: boolean;
21
+ }[] | null;
22
+ /**
23
+ * Toggles the slice at `position`, redraws, and returns its new visible state
24
+ * so the legend can update the item. Reuses the `point.visible` convention the
25
+ * renderer already honours to drop hidden slices.
26
+ */
27
+ toggleLegendItem(position: number): boolean | null;
7
28
  /**
8
29
  * Returns the enabled data-label configs in array form. The API allows a
9
30
  * pie point to carry several label sets (e.g. the name outside the slice plus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "katucharts.js",
3
- "version": "0.2.19",
3
+ "version": "0.2.21",
4
4
  "description": "D3.js charting library with a simple declarative interface",
5
5
  "type": "module",
6
6
  "main": "./dist/katucharts.umd.js",