Creates an instance of FixtureInstance.
FixtureInstance
Readonly
$iThe instance of RampMap API scoped to a single Vue R4MP application.
APIScope
Readonly
idID of this fixture.
FixtureInstance
The instance of Vue R4MP application controlled by this InstanceAPI.
This is just a shorthand for this.$iApi.$vApp
.
APIScope
Returns LegendConfig
section of the global config file.
LegendAPI
Private
_deletePrivate
_insertPrivate
_replacePrivate
_searchSearch for first legend item that satisfies the predicate, starting from the given root item.
the root item to start searching from
boolean predicate to test each item
return the first item that satisfies the given predicate. returns undefined if item is not found.
Private
_searchSearch for all legend items that satisfy the predicate, starting from the given root item.
the root item to start searching from
predicate boolean predicate to test each item
return the first item that satisfies the given predicate. returns undefined if item is not found.
Private
_togglePrivate
_treeOptional
extraConfig: objectAdd a legend item given the legend config, or legend item instance
the config for the legend item or a legend item instance
Optional
parent: LegendItemoptional parent item to create this item under
the added legend item
LegendAPI
Add a layer legend item given a layer instance
the layer to create an item for
Optional
parent: LegendItemoptional parent item to create this item under
a promise that resolves with the added layer item
LegendAPI
Optional
addedGet all legend items with the given expanded state.
Not specifying the expanded state will return all items with expanded set to true
Optional
expanded: booleanthe expanded state to check for
the items with the given expanded state
LegendAPI
Get all legend items with the given visibility state.
Not specifying the visibility state will return all items with visibility set to true
Optional
visibility: booleanthe visibility state to check for
the items with the given expanded state
LegendAPI
Get a layer item connected to the layer with the given id/uid or the given layer instance.
the id/uid of the layer or layer instance
return layer item tied to the found layer. returns undefined if no such item is found.
LegendAPI
Optional
initializedHelper with programatically creating a component in Vue 3 (replaces the deprecated Vue.extend)
FixtureInstance
Remove the layer item connected to the layer with the given id/uid or the given layer instance.
the id/uid of the layer or layer instance
returns true if item was removed, false otherwise
LegendAPI
Optional
removedUpdate an existing layer item with data from the given layer Does nothing if the layer item is not found
the layer to update the layer item with
LegendAPI
Static
updateAdds missing functions and properties to the object implementing FixtureBase interface. This is only needed for external fixtures as they can't inherit from FixtureInstance.
TODO: If you know a better way to deep-mixin props/getters/functions from a class into another class instance, please tell me. I honestly don't know 🤷♂️.
FixtureInstance
Generated using TypeDoc
A base class for Fixture subclasses. It provides some utility functions to Fixtures and also gives access to
$iApi
and$vApp
globals.Export
Implements