@datalith/util
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -38,7 +38,8 @@ var __extends = (this && this.__extends) || (function () { | ||
var size = _a.size; | ||
return (React.createElement("div", { style: { width: '100%', height: '100%' } }, | ||
React.createElement(Component, __assign({}, _this.props, { style: __assign({}, size, _this.props.style), size: { | ||
width: (_this.props.style && _this.props.style.width) || size.width, | ||
height: (_this.props.style && _this.props.style.height) || size.height, | ||
} })))); | ||
return (React.createElement("div", { style: { position: 'relative', height: '100%' } }, | ||
React.createElement("div", { style: { position: 'absolute', width: '100%', height: '100%' } }, | ||
React.createElement(Component, __assign({}, _this.props, { style: __assign({}, size, _this.props.style), size: { | ||
width: (_this.props.style && _this.props.style.width) || size.width, | ||
height: (_this.props.style && _this.props.style.height) || size.height, | ||
} }))))); | ||
})); | ||
@@ -45,0 +46,0 @@ }; |
@@ -11,8 +11,8 @@ /// <reference types="react" /> | ||
export interface CommonProps { | ||
/** Custom css classes to apply to the SVG element */ | ||
/** Custom css classes to apply to the SVG */ | ||
className?: string; | ||
/** Custom style object to apply to the SVG */ | ||
style?: React.CSSProperties; | ||
/** Optional <defs /> element to include in the SVG */ | ||
defs?: JSX.Element; | ||
/** Optional elements to add to the SVG */ | ||
additionalElements?: JSX.Element; | ||
/** Data array */ | ||
@@ -19,0 +19,0 @@ data: Datum[]; |
{ | ||
"name": "@datalith/util", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "datalith util", | ||
@@ -48,3 +48,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "8bc3b1c6da2f4e255806d43d0102623d2c329d33" | ||
"gitHead": "cd7052522b6a4c73f8d0434ddaf0385d18e55880" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9751
128