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

d3plus-text

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3plus-text - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

9

es/src/rtl.js
import { select } from "d3-selection";
var elemRTL = function elemRTL(e) {
return select(e).attr("dir") === "rtl" || select(e).style("direction") === "rtl";
return select(e).size() && (select(e).attr("dir") === "rtl" || select(e).style("direction") === "rtl");
};

@@ -12,5 +12,8 @@

export default (function () {
var elem = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
while (elem !== document.body && !elemRTL(elem)) elem = elem.parentNode;
var elem = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "body";
elem = select(elem).node();
while (elem && elem.parentNode && elem !== document.body && !elemRTL(elem)) {
elem = elem.parentNode;
}
return elemRTL(elem) || elemRTL("html");
});
{
"name": "d3plus-text",
"version": "1.2.2",
"version": "1.2.3",
"description": "A smart SVG text box with line wrapping and automatic font size scaling.",

@@ -5,0 +5,0 @@ "main": "es/index.js",

@@ -644,2 +644,2 @@ # d3plus-text

###### <sub>Documentation generated on Tue, 07 Mar 2023 17:11:32 GMT</sub>
###### <sub>Documentation generated on Tue, 07 Mar 2023 17:29:23 GMT</sub>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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