Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@visx/text

Package Overview
Dependencies
Maintainers
4
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@visx/text - npm Package Compare versions

Comparing version 1.7.0 to 1.10.0

4

esm/Text.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc