@lottiefiles/relottie-parse
Version:
Parse Lottie JSON format to LAST
25 lines (21 loc) • 652 B
TypeScript
import { ArrayNode, Collection, Element, Attribute } from '@lottiefiles/last';
/**
* Copyright 2023 Design Barn Inc.
*/
interface ParseOptions {
/**
* Optionally provides a phantom node that helps to parse a node
* or fragment whose parent is not an animation root node.
*/
phantomRoot?: ArrayNode | Collection | Element | Attribute;
/**
* Include 'position' prop into nodes (default, true)
*/
position: boolean;
/**
* Include 'valueType' prop into nodes (default, true)
*/
valueType: boolean;
}
declare const DEFAULT_OPTIONS: ParseOptions;
export { DEFAULT_OPTIONS, type ParseOptions };