Cloud

tcmts.share.Cloud · #jkxsr5yp · interface

A cloud of a CloudLayout: a group of definitions, and the namespaces in it (its puffs), as circles.

export interface Cloud {
  label: string;
  /** the namespace it is, grouped by namespace */
  ns?: string;
  /** the definitions in no group of their own: with few references, or none */
  loose?: boolean;
  x: number;
  y: number;
  r: number;
  /** how many definitions it holds */
  n: number;
  puffs: { label: string; ns: string; x: number; y: number; r: number; n: number }[];
}

used by