UNPKG

plot-plan-designer

Version:

Design Editor Tools with React.js + ant.design + fabric.js

59 lines (58 loc) 1.87 kB
export default AceEditor; declare class AceEditor extends React.Component<any, any, any> { static propTypes: { isHTML: PropTypes.Requireable<boolean>; isCSS: PropTypes.Requireable<boolean>; isJS: PropTypes.Requireable<boolean>; isPreview: PropTypes.Requireable<boolean>; html: PropTypes.Requireable<string>; css: PropTypes.Requireable<string>; js: PropTypes.Requireable<string>; onChangeJS: PropTypes.Requireable<(...args: any[]) => any>; onChangeCSS: PropTypes.Requireable<(...args: any[]) => any>; onChangeHTML: PropTypes.Requireable<(...args: any[]) => any>; }; static defaultProps: { isHTML: boolean; isCSS: boolean; isJS: boolean; isPreview: boolean; html: string; css: string; js: string; }; constructor(props: any); constructor(props: any, context: any); handlers: { onChangeHTML: import("lodash").DebouncedFunc<(value: any) => void>; onChangeCSS: import("lodash").DebouncedFunc<(value: any) => void>; onChangeJS: import("lodash").DebouncedFunc<(value: any) => void>; onValidateHTML: (annotations: any) => void; getAnnotations: () => { htmlAnnotations: any[]; cssAnnotations: any[]; jsAnnotations: any[]; }; getCodes: () => { html: any; css: any; js: any; }; }; state: { html: any; css: any; js: any; htmlAnnotations: any[]; cssAnnotations: any[]; jsAnnotations: any[]; }; componentWillUnmount(): void; render(): JSX.Element; htmlRef: ReactAce; cssRef: ReactAce; jsRef: ReactAce; } import React from 'react'; import ReactAce from 'react-ace'; import PropTypes from 'prop-types';