any2orca API reference
    Preparing search index...

    Interface ConverterWorker

    interface ConverterWorker {
        diff(
            a: DiffSide,
            b: DiffSide,
            options?: DiffOptions & WorkerReleaseOption,
        ): Promise<SettingsDiff>;
        listProfiles(
            filter?: { nozzleDiameter?: string } & WorkerReleaseOption,
        ): Promise<ProfileListing>;
        open(
            bytes: Uint8Array,
            options?: { transfer?: boolean },
        ): Promise<{ inspection: Inspection; project: WorkerProject }>;
        resolvePreset(
            preset: Preset,
            options?: WorkerReleaseOption,
        ): Promise<ResolvedPreset>;
        terminate(): void;
        unwrapBundle(
            bytes: Uint8Array,
        ): Promise<{ bytes: Uint8Array; name: string }[] | null>;
    }
    Index
    • The profiles for the newest release or the one given, and every release the catalog holds.

      Parameters

      Returns Promise<ProfileListing>

    • Opens a file in the worker. Pass transfer: true to move the bytes instead of copying them (faster for large files, but the caller's buffer becomes unusable).

      Parameters

      • bytes: Uint8Array
      • Optionaloptions: { transfer?: boolean }

      Returns Promise<{ inspection: Inspection; project: WorkerProject }>

    • Checks a saved or imported preset against the current profiles: the profile it converts with, the changes it would apply (with values above stock marked, for a badge) and notes on anything it would leave out.

      Parameters

      Returns Promise<ResolvedPreset>

    • Returns void

    • Each .3mf inside a bundle zip, or null for a plain .3mf.

      Parameters

      • bytes: Uint8Array

      Returns Promise<{ bytes: Uint8Array; name: string }[] | null>