agglomerative-clustering 3.0.0-beta.2 → 3.0.0-beta.4

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
@@ -318,8 +318,9 @@ export interface Swatches {
318
318
  /** The colours in split order, exactly what `getPaletteFromClustering` gives for the same `k`. */
319
319
  palette: Palette;
320
320
  /**
321
- * Pixels per colour: fully transparent pixels count 0 and partly transparent ones in proportion to their opacity, as
322
- * in clustering. They sum to the image's visible weight.
321
+ * Pixels per colour, counted as in clustering: by default fully transparent pixels count 0 and partly transparent ones
322
+ * in proportion to their opacity; with `alpha: 'ignore'` every pixel counts 1; with `transparent`, pixels below the
323
+ * cutoff count 0 and the rest 1. They sum to the image's visible weight.
323
324
  */
324
325
  weights: Float64Array;
325
326
  /** Each colour's share of the visible weight, from 0 to 1. They sum to 1 (they are empty for an image with no visible pixels). */
package/dist/index.d.ts CHANGED
@@ -318,8 +318,9 @@ export interface Swatches {
318
318
  /** The colours in split order, exactly what `getPaletteFromClustering` gives for the same `k`. */
319
319
  palette: Palette;
320
320
  /**
321
- * Pixels per colour: fully transparent pixels count 0 and partly transparent ones in proportion to their opacity, as
322
- * in clustering. They sum to the image's visible weight.
321
+ * Pixels per colour, counted as in clustering: by default fully transparent pixels count 0 and partly transparent ones
322
+ * in proportion to their opacity; with `alpha: 'ignore'` every pixel counts 1; with `transparent`, pixels below the
323
+ * cutoff count 0 and the rest 1. They sum to the image's visible weight.
323
324
  */
324
325
  weights: Float64Array;
325
326
  /** Each colour's share of the visible weight, from 0 to 1. They sum to 1 (they are empty for an image with no visible pixels). */