1.0.1 • Published 5 months ago

@maherboughdiri/mind-ar-compiler v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

��# mind-ar-compiler

Overview

The mind-ar-compiler package provides functions for compiling image targets and exporting the compiled data for use in augmented reality applications.

Installation

npm install @maherboughdiri/mind-ar-compiler

Usage

Import the compiler:

import compiler from "@maherboughdiri/mind-ar-compiler";

Compile image files:

const files = // array of image File objects
const target = await compiler.compileFiles(files);

The compileFiles() method compiles the image files into target data. It accepts an array of image File objects and returns a Promise resolving to the compiled data.

The method updates the progress element with the compilation percentage progress.

Download the compiled data:

compiler.download(target);

Call the download() method to trigger downloading of the compiled .mind file.

Documentation

See the full documentation for more details on the compiler methods and usage.