Hierarchy

  • IO

Constructors

Properties

FORMAT_TO_TYPE: {
    geojson: string;
    gif: string;
    jpg: string;
    json: string;
    png: string;
    svg: string;
} = ...

Type declaration

  • geojson: string
  • gif: string
  • jpg: string
  • json: string
  • png: string
  • svg: string
_geom: Geom
_oc: any
asset: Asset
cache: {
    [key: string]: Asset;
} = {}

Type declaration

  • [key: string]: Asset
source: string

Methods

  • Parameters

    • asset: Asset

    Returns Promise<{
        content: any;
        fetchError?: string;
        format: string;
        formatType: "data" | "geodata" | "vector" | "bitmap" | "api";
        imported?: any;
        localId: string;
        locationType: "url" | "local";
        source: string;
        url: string;
        valid: boolean;
    }>

  • Parameters

    • asset: Asset

    Returns Promise<{
        content: any;
        fetchError?: string;
        format: string;
        formatType: "data" | "geodata" | "vector" | "bitmap" | "api";
        imported?: any;
        localId: string;
        locationType: "url" | "local";
        source: string;
        url: string;
        valid: boolean;
    }>

  • Parameters

    • source: string

    Returns Promise<any>

  • Parameters

    • svgTree: any
    • svgNodesWithTransform: any[] = []
    • parentTransform: SvgTransform = ...

    Returns any[]

  • Parameters

    • asset: Asset
    • response: any

    Returns Promise<{
        content: any;
        fetchError?: string;
        format: string;
        formatType: "data" | "geodata" | "vector" | "bitmap" | "api";
        imported?: any;
        localId: string;
        locationType: "url" | "local";
        source: string;
        url: string;
        valid: boolean;
    }>

  • Parameters

    • asset: Asset

    Returns void

  • Convert and import fetched asset to Archiyou entity: either some Shape or raw data like a text or json data structure

    Parameters

    • asset: Asset

    Returns any

  • Parameters

    • source: string

    Returns Asset

  • Parameters

    • t: string

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number
  • Parameters

    • source: string
    • forceFetch: boolean = false
    • onlyCache: boolean = false

    Returns Promise<any>

Generated using TypeDoc