groupLooks

Returns every group, in the order first named, with the hue and stroke its environment's key: gives it.

@internote/canvas-sdkFunction
On this page
import { groupLooks } from '@internote/canvas-sdk';

A pinned hue is the key's; every other group is dealt the next of DEALT_HUES, skipping the pinned ones — so a dealt group never wears a hue a pinned one was chosen to mean. A group the key gives only a stroke keeps no hue. Where the key has an otherwise, a group it does not name takes that and is dealt nothing.

#Signature

(key: unknown, names: Iterable<string>): GroupLook[]

#Parameters

key
The environment's refined key: map: each group to a colour, or to { colour?, stroke? }.
names
Every group name the marks write, in written order; repeats are ignored, matched by keyName.

Declared in packages/canvas-sdk/src/footer/keys.ts:156.

Last updated