UNPKG

@wdp-api/wim-api

Version:

51WORLD WIM Api is a JavaScript plugin for WdpApi, It provides a set of APIs for developers to integrate WIM into their own applications.

68 lines (67 loc) 1.95 kB
import { EntityEidType, BasicInfoAtomType } from './data-type'; export interface ICustomColorCardAtom { colorCardName: string; t2dWidth: number; t2dHeight: number; colorCardPoints: Array<any>; } export interface ICustomColorCardAtomType extends EntityEidType, Partial<BasicInfoAtomType> { customColorCardStyle?: Partial<ICustomColorCardAtom>; } export interface IGenerate { CustomColorCardAtom?: Partial<ICustomColorCardAtom>; BasicInfoAtom?: Partial<BasicInfoAtomType>; } export interface ICreateCard { name?: string; customId?: string; color?: Array<string>; anchor?: Array<string | number>; } export interface IUpdateCard extends Omit<ICreateCard, 'customId'> { object: Record<string, any>; } export interface IUpdateCardParams extends Omit<ICreateCard, 'customId'> { eid: string | null; } export interface IAddCardPointBasic { name: string; position: number; weight: number; color: Array<number>; } export interface IAddCardPoint extends IAddCardPointBasic { object: Record<string, any>; } export interface IAddCardPointParam extends IAddCardPointBasic { eid: string | null; } export interface IGetCardBasic { reverse?: boolean; pictureFormatExtension?: string; } export interface IGetCard extends IGetCardBasic { object: Record<string, any>; } export interface IGetCardParam extends IGetCardBasic { eid: string | null; } export interface IGetLengendBasic { reverse?: boolean; size: Array<number>; } export interface IGetLengend extends IGetLengendBasic { object: Record<string, any>; } export interface IGetLengendParam extends IGetLengendBasic { eid: string | null; } export interface IGetColorValuesBasic { percentArray: Array<any>; } export interface IGetColorValues extends IGetColorValuesBasic { object: Record<string, any>; } export interface IGetColorValuesParam extends IGetColorValuesBasic { eid: string | null; }