# React Resize HOC Components
Based on React implementation of the SVG component library that can be move(dragged) and scaled, the component library core two components: `ResizeSvg` and `ResizeSvgHOC`.
# example image

# Document
## ResizeSvg & ResizeSvgHOC
### Resize SVG Box Model Analysis
`ResizeSvg` is shown in the following picture, divided into two parts: the outside area (`ResizeWidth * ResizeHeight`) and the content area (`ContentWidth * ContentHeight`). Where `padding` is also the diameter of the operable point (the dot of the four corners) (emphasis: diameter), default value: `8`

### Attribute API
| Attribute Name | type |Description |
|--|--|--|
|padding|number| padding default value:`8`|
|width|number| The width must be a number. Unit: px. But does not support: `100px` mode setting|
|height|number| The height must be a number. Unit: px. But does not support: `100px` mode setting|
### Style API
|ClassName Attribute|Description|
|--|--|
|svgContainerStyle|svg tag style|
|showLineStyle|show line style (default dasharray)|
|showCircleStyle|show circle style |
|triggerLineStyle|trigger line style |
|triggerCircleStyle|trigger circle style|
|triggerMoveRectStyle| trigger move rect style|
### Inject Props
Wrapped components by `ResizeSvgHOC` will auto inject Props
|Prop Name|type|Description|
|--|--|--|
|padding|number| padding|
|width|number| Actual width|
|height|number|Actual height|
|contentWidth|number| content width|
|contentWidth|number| content height|
### Use
- npm install
```
npm install react-resize-svg
```
- Custom SVG Component
Develop a custom svg component based on `ResizeSvgHOC`. E.g:
```JSX
import React, { Component } from "react";
import ResizeSvgHOC from "./ResizeSvgHOC";
class EllipseSvg extends Component {
render() {
let { padding, contentWidth, contentHeight } = this.props;
return (