Skip to content

Mapper

class

Back to Helios Web API

Kind
class
Source
src/pipeline/Mapper.js:841

Description

Low-level mapper for one node or edge visual mode.

Signature

export class Mapper {

Parameters

NameTypeAttributesDefaultDescription
optionsObjectoptionalMapper mode (node or edge), network, and optional bookkeeping dependencies.

Returns

Mapper with an initially empty channel set.

Type Mapper

Notes

Most applications should use MapperCollection or MappersBehavior. Direct mapper access is still public for custom pipelines that need to build visual attributes programmatically.

Configuration

General configuration setters and compatibility helpers.

setChannel(name, config) → {this}

Source: src/pipeline/Mapper.js:853

Set the channel setting.

Parameters

NameTypeAttributesDefaultDescription
namestringAttribute or API identifier.
configValue passed to setChannel.

Returns

This instance.

Type this

getChannel(name)

Source: src/pipeline/Mapper.js:865

Returns the current channel value or state.

Parameters

NameTypeAttributesDefaultDescription
namestringAttribute or API identifier.

Utilities

Additional public helpers that do not belong to a narrower API area.

channel(name)

Source: src/pipeline/Mapper.js:849

Configures or reads channel.

Parameters

NameTypeAttributesDefaultDescription
namestringAttribute or API identifier.

mapItem(item, context = {})

Source: src/pipeline/Mapper.js:869

Configures or reads map item.

Parameters

NameTypeAttributesDefaultDescription
itemValue passed to mapItem.
contextoptional{}Value passed to mapItem.

mapItems(items, context = {})

Source: src/pipeline/Mapper.js:878

Configures or reads map items.

Parameters

NameTypeAttributesDefaultDescription
itemsValue passed to mapItems.
contextoptional{}Value passed to mapItems.

ensurePercentileLookup(config)

Source: src/pipeline/Mapper.js:882

Configures or reads ensure percentile lookup.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to ensurePercentileLookup.

ensureBuffersForChannel(config)

Source: src/pipeline/Mapper.js:891

Configures or reads ensure buffers for channel.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to ensureBuffersForChannel.

shouldEnsureChannelBuffer(config, def)

Source: src/pipeline/Mapper.js:942

Configures or reads should ensure channel buffer.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to shouldEnsureChannelBuffer.
defValue passed to shouldEnsureChannelBuffer.

isNodePassthroughChannel(config, def)

Source: src/pipeline/Mapper.js:950

Returns the current node passthrough channel value or state.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to isNodePassthroughChannel.
defValue passed to isNodePassthroughChannel.

resolveNodeSourceAttribute(config, def)

Source: src/pipeline/Mapper.js:958

Configures or reads resolve node source attribute.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to resolveNodeSourceAttribute.
defValue passed to resolveNodeSourceAttribute.

resolveNodeSourceDimension(sourceAttribute, def)

Source: src/pipeline/Mapper.js:970

Configures or reads resolve node source dimension.

Parameters

NameTypeAttributesDefaultDescription
sourceAttributeValue passed to resolveNodeSourceDimension.
defValue passed to resolveNodeSourceDimension.

resolvePassthroughConfig(config, def, sourceDimension, expectedDimension)

Source: src/pipeline/Mapper.js:987

Configures or reads resolve passthrough config.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to resolvePassthroughConfig.
defValue passed to resolvePassthroughConfig.
sourceDimensionValue passed to resolvePassthroughConfig.
expectedDimensionValue passed to resolvePassthroughConfig.

ensureNodeSourceAttribute(sourceAttribute, type, sourceDimension, channelName)

Source: src/pipeline/Mapper.js:1024

Configures or reads ensure node source attribute.

Parameters

NameTypeAttributesDefaultDescription
sourceAttributeValue passed to ensureNodeSourceAttribute.
typestringAttribute value type.
sourceDimensionValue passed to ensureNodeSourceAttribute.
channelNameValue passed to ensureNodeSourceAttribute.

removeEdgeAttribute(name)

Source: src/pipeline/Mapper.js:1112

Manages edge attribute for the current instance.

Parameters

NameTypeAttributesDefaultDescription
namestringAttribute or API identifier.

unregisterNodeToEdge(attribute)

Source: src/pipeline/Mapper.js:1125

Configures or reads unregister node to edge.

Parameters

NameTypeAttributesDefaultDescription
attributeValue passed to unregisterNodeToEdge.

unregisterChannel(config)

Source: src/pipeline/Mapper.js:1138

Configures or reads unregister channel.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to unregisterChannel.