groupLookOf

Returns what a mark's groups give it: the hue of the first that has one, and the stroke of the first that pins one.

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

A mark's own colour or stroke beats its group's: the environment gives the mark what this returns only where the mark has not written its own (isAuthored).

#Signature

(groups: readonly GroupLook[], names: readonly string[]): GroupPin

#Parameters

groups
The environment's groups, from groupLooks.
names
The groups the mark names, in the order written.

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

Last updated