Showing 2 of 2 total issues
Function render
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { children, isOpen, onRequestClose, modal, overlay } = this.props;
const { scale, opacity, width, height } = this.state;
const commonStyles = {
transform: `scale3d(${scale}, ${scale}, 1)`,
Function renderPath
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderPath() {
if (!this.state.isMount) return null;
const { width, height, top, right, bottom, left } = this.state;
const x0 = width * svgMarginRatio;
const y0 = height * svgMarginRatio;