plot-plan-designer
Version:
Design Editor Tools with React.js + ant.design + fabric.js
45 lines (44 loc) • 1.25 kB
TypeScript
export default Animations;
declare class Animations extends React.Component<any, any, any> {
static propTypes: {
animations: PropTypes.Requireable<any[]>;
onChangeAnimations: PropTypes.Requireable<(...args: any[]) => any>;
};
static defaultProps: {
animations: any[];
};
constructor(props: any);
constructor(props: any, context: any);
state: {
animation: {
type: string;
loop: boolean;
autoplay: boolean;
delay: number;
duration: number;
};
visible: boolean;
validateTitle: {
validateStatus: string;
help: string;
};
current: string;
};
handlers: {
onOk: () => void;
onCancel: () => void;
onAdd: () => void;
onEdit: (animation: any, index: any) => void;
onDelete: (index: any) => void;
onClear: () => void;
onChange: (props: any, changedValues: any, allValues: any) => void;
onValid: (value: any) => {
validateStatus: string;
help: string;
};
};
render(): JSX.Element;
modalRef: any;
}
import React from 'react';
import PropTypes from 'prop-types';