A common interface for Export sub fixtures.

Export

ExportSubFixture

Hierarchy

Implements

Constructors

Properties

The instance of RampMap API scoped to a single Vue R4MP application.

Memberof

APIScope

id: string

ID of this fixture.

Memberof

FixtureInstance

Accessors

  • get $element(): App<Element>
  • Returns App<Element>

  • get $vApp(): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
  • The instance of Vue R4MP application controlled by this InstanceAPI. This is just a shorthand for this.$iApi.$vApp.

    Memberof

    APIScope

    Returns ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>

  • get config(): any
  • Returns the fixture config section (JSON) taken from the global config.

    Memberof

    FixtureInstance

    Returns any

Methods

  • Private

    Creates layer entry symbology based on the provided symbology stack.

    Memberof

    ExportLegendFixture

    Parameters

    Returns Promise<Group>[]

  • Private

    Breaks up legend layers into columns

    Memberof

    ExportLegendFixture

    Parameters

    • items: Group[]
    • columnWidth: number
    • columns: number

    Returns Group

  • Private

    Creates segment chunks based on the provided layer and layer entry id.

    Used for layers that support sublayers (e.g. MapImageLayers)

    Memberof

    ExportLegendFixture

    Parameters

    Returns Promise<SegmentChunk>[]

  • Private

    Create segments of the export image based on the provided layers and layer configs.

    Memberof

    ExportLegendFixture

    Parameters

    Returns Promise<Segment>[]

  • A helper function to create a "subclass" of the base Vue constructor

    Memberof

    FixtureInstance

    Parameters

    • vueComponent: Record<string, any>
    • Optional options: ComponentOptions<{}, any, any, any, any, any, any, any, any> = {}

    Returns any

  • Creates an export image and returns it.

    Memberof

    ExportSubFixture

    Parameters

    • options: any

      fixture config options or any other options that a sub fixture accepts

    Returns Promise<Group>

  • Helper with programatically creating a component in Vue 3 (replaces the deprecated Vue.extend)

    Memberof

    FixtureInstance

    Parameters

    • component: Component<any, any, any, ComputedOptions, MethodOptions>
    • __namedParameters: any = {}

    Returns {
        destroy: (() => void);
        el: any;
        vNode: any;
    }

    • destroy: (() => void)
        • (): void
        • Returns void

    • el: any
    • vNode: any
  • Adds 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 🤷‍♂️.

    Static

    Memberof

    FixtureInstance

    Parameters

    Returns FixtureInstance

Generated using TypeDoc