@deck.gl/core
Version:
deck.gl core library
26 lines (22 loc) • 1.21 kB
text/typescript
// deck.gl
// SPDX-License-Identifier: MIT
// Copyright (c) vis.gl contributors
export const LIFECYCLE = {
NO_STATE: 'Awaiting state',
MATCHED: 'Matched. State transferred from previous layer',
INITIALIZED: 'Initialized',
AWAITING_GC: 'Discarded. Awaiting garbage collection',
AWAITING_FINALIZATION: 'No longer matched. Awaiting garbage collection',
FINALIZED: 'Finalized! Awaiting garbage collection'
} as const;
export type Lifecycle = (typeof LIFECYCLE)[keyof typeof LIFECYCLE];
/* Secret props keys */
// Symbols are non-enumerable by default, does not show in for...in or Object.keys
// but are copied with Object.assign ¯\_(ツ)_/¯
// Supported everywhere except IE11, can be polyfilled with core-js
export const COMPONENT_SYMBOL: unique symbol = Symbol.for('component');
export const PROP_TYPES_SYMBOL: unique symbol = Symbol.for('propTypes');
export const DEPRECATED_PROPS_SYMBOL: unique symbol = Symbol.for('deprecatedProps');
export const ASYNC_DEFAULTS_SYMBOL: unique symbol = Symbol.for('asyncPropDefaults');
export const ASYNC_ORIGINAL_SYMBOL: unique symbol = Symbol.for('asyncPropOriginal');
export const ASYNC_RESOLVED_SYMBOL: unique symbol = Symbol.for('asyncPropResolved');