MCPcopy
hub / github.com/bokuweb/react-rnd / getMaxSizesFromProps

Method getMaxSizesFromProps

src/index.tsx:264–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 }
263
264 getMaxSizesFromProps(): MaxSize {
265 const maxWidth = typeof this.props.maxWidth === "undefined" ? Number.MAX_SAFE_INTEGER : this.props.maxWidth;
266 const maxHeight = typeof this.props.maxHeight === "undefined" ? Number.MAX_SAFE_INTEGER : this.props.maxHeight;
267 return { maxWidth, maxHeight };
268 }
269
270 getSelfElement(): HTMLElement | null {
271 return this.resizable && this.resizable.resizable;

Callers 2

onResizeStartMethod · 0.95
onResizeStopMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected