Skip to content

Mapper

class

Back to Helios Web API

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

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:854

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:866

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:850

Configures or reads channel.

Parameters

NameTypeAttributesDefaultDescription
namestringAttribute or API identifier.

mapItem(item, context = {})

Source: src/pipeline/Mapper.js:870

Configures or reads map item.

Parameters

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

mapItems(items, context = {})

Source: src/pipeline/Mapper.js:879

Configures or reads map items.

Parameters

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

ensurePercentileLookup(config)

Source: src/pipeline/Mapper.js:883

Configures or reads ensure percentile lookup.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to ensurePercentileLookup.

ensureBuffersForChannel(config)

Source: src/pipeline/Mapper.js:892

Configures or reads ensure buffers for channel.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to ensureBuffersForChannel.

shouldEnsureChannelBuffer(config, def)

Source: src/pipeline/Mapper.js:943

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:951

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:959

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:971

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:988

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:1025

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:1113

Manages edge attribute for the current instance.

Parameters

NameTypeAttributesDefaultDescription
namestringAttribute or API identifier.

unregisterNodeToEdge(attribute)

Source: src/pipeline/Mapper.js:1126

Configures or reads unregister node to edge.

Parameters

NameTypeAttributesDefaultDescription
attributeValue passed to unregisterNodeToEdge.

unregisterChannel(config)

Source: src/pipeline/Mapper.js:1139

Configures or reads unregister channel.

Parameters

NameTypeAttributesDefaultDescription
configValue passed to unregisterChannel.