profiles/profiles.svelte#

Classes#

ProfilesState#

Defined in: editor/src/profiles/profiles.svelte.ts:30

The viewer’s type profiles and the catalogue they extend, as Svelte state.

Constructors#

Constructor#

new ProfilesState(key): ProfilesState

Defined in: editor/src/profiles/profiles.svelte.ts:41

The profiles stored under key; none without a key, and storage is then never touched.

Parameters#
key#

string | null

Returns#

ProfilesState

Properties#

catalogue#

readonly catalogue: Catalogue

Defined in: editor/src/profiles/profiles.svelte.ts:37

The catalogue the Metadata tab offers: the shipped one with these profiles (withProfiles), made again only when they change.

profiles#

profiles: Profiles

Defined in: editor/src/profiles/profiles.svelte.ts:32

The profiles and services in force; replaced whole, never mutated.

Methods#

set()#

set(profiles): void

Defined in: editor/src/profiles/profiles.svelte.ts:47

Make profiles the profiles in force, remembered under the key where storage allows.

Parameters#
profiles#

Profiles

Returns#

void

Variables#

profilesOf#

profilesOf: () => ProfilesState

Defined in: editor/src/profiles/profiles.svelte.ts:59

Returns#

ProfilesState


provideProfiles#

provideProfiles: (context) => ProfilesState

Defined in: editor/src/profiles/profiles.svelte.ts:59

Parameters#

context#

ProfilesState

Returns#

ProfilesState