Type Alias ParseWorkOptions

ParseWorkOptions: {
    baseURL?: string;
    jsonp?: boolean;
    shortPath?: boolean;
    transform?: THREE.Matrix4 | number[];
    traverseResource?: ((resource: {
        absolute: string;
        origin: string;
        relative: string;
        type: "panorama" | "texture" | "model";
    }) => void);
    workCode?: string | ((input: any) => string);
}

Type declaration

  • OptionalbaseURL?: string

    重写资源前缀

  • Optionaljsonp?: boolean

    资源使用 jsonp 方式发布

  • OptionalshortPath?: boolean

    资源地址使用短地址

  • Optionaltransform?: THREE.Matrix4 | number[]

    位姿

  • OptionaltraverseResource?: ((resource: {
        absolute: string;
        origin: string;
        relative: string;
        type: "panorama" | "texture" | "model";
    }) => void)
      • (resource): void
      • Parameters

        • resource: {
              absolute: string;
              origin: string;
              relative: string;
              type: "panorama" | "texture" | "model";
          }
          • absolute: string
          • origin: string
          • relative: string
          • type: "panorama" | "texture" | "model"

        Returns void

  • OptionalworkCode?: string | ((input: any) => string)

    重置 WorkCode