@visx/text
Advanced tools
Comparing version 1.7.0 to 1.10.0
@@ -20,2 +20,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
innerRef = props.innerRef, | ||
innerTextRef = props.innerTextRef, | ||
verticalAnchor = props.verticalAnchor, | ||
@@ -29,3 +30,3 @@ angle = props.angle, | ||
width = props.width, | ||
textProps = _objectWithoutPropertiesLoose(props, ["dx", "dy", "textAnchor", "innerRef", "verticalAnchor", "angle", "lineHeight", "scaleToFit", "capHeight", "width"]); | ||
textProps = _objectWithoutPropertiesLoose(props, ["dx", "dy", "textAnchor", "innerRef", "innerTextRef", "verticalAnchor", "angle", "lineHeight", "scaleToFit", "capHeight", "width"]); | ||
@@ -48,2 +49,3 @@ var _textProps$x = textProps.x, | ||
}, wordsByLines.length > 0 ? /*#__PURE__*/React.createElement("text", _extends({ | ||
ref: innerTextRef, | ||
transform: transform | ||
@@ -50,0 +52,0 @@ }, textProps, { |
@@ -32,2 +32,3 @@ "use strict"; | ||
innerRef = props.innerRef, | ||
innerTextRef = props.innerTextRef, | ||
verticalAnchor = props.verticalAnchor, | ||
@@ -41,3 +42,3 @@ angle = props.angle, | ||
width = props.width, | ||
textProps = _objectWithoutPropertiesLoose(props, ["dx", "dy", "textAnchor", "innerRef", "verticalAnchor", "angle", "lineHeight", "scaleToFit", "capHeight", "width"]); | ||
textProps = _objectWithoutPropertiesLoose(props, ["dx", "dy", "textAnchor", "innerRef", "innerTextRef", "verticalAnchor", "angle", "lineHeight", "scaleToFit", "capHeight", "width"]); | ||
@@ -60,2 +61,3 @@ var _textProps$x = textProps.x, | ||
}, wordsByLines.length > 0 ? /*#__PURE__*/_react.default.createElement("text", _extends({ | ||
ref: innerTextRef, | ||
transform: transform | ||
@@ -62,0 +64,0 @@ }, textProps, { |
@@ -19,2 +19,4 @@ /// <reference types="react" /> | ||
innerRef?: React.Ref<SVGSVGElement>; | ||
/** Ref passed to the Text text element */ | ||
innerTextRef?: React.Ref<SVGTextElement>; | ||
/** x position of the text. */ | ||
@@ -21,0 +23,0 @@ x?: string | number; |
{ | ||
"name": "@visx/text", | ||
"version": "1.7.0", | ||
"version": "1.10.0", | ||
"description": "visx text", | ||
@@ -48,3 +48,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "47af75f7de434dcf4d7dc44b1c6677900422ab02" | ||
"gitHead": "742a6446b36788b58d937a1de9a226d2e7d4be3e" | ||
} |
Sorry, the diff of this file is not supported yet
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
28154
478