You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@nivo/text

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/text - npm Package Compare versions

Comparing version
0.92.1
to
0.93.0
+3
-3
package.json
{
"name": "@nivo/text",
"version": "0.92.1",
"version": "0.93.0",
"license": "MIT",

@@ -32,3 +32,3 @@ "author": {

"dependencies": {
"@nivo/theming": "0.92.0",
"@nivo/theming": "0.93.0",
"@react-spring/web": "9.4.5 || ^9.7.2"

@@ -42,3 +42,3 @@ },

},
"gitHead": "50486cdc630eed6680b5b51d2f419f1869c184f5"
"gitHead": "83293c9d3d4c8fd10e92077f6d8e64057e15221d"
}
"use strict";var t=require("@react-spring/web"),e=require("react/jsx-runtime");function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},n.apply(null,arguments)}function i(t,e){if(null==t)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(-1!==e.indexOf(i))continue;n[i]=t[i]}return n}var r=["style","children"],o=["outlineWidth","outlineColor","outlineOpacity"];exports.Text=function(l){var a=l.style,s=l.children,u=i(l,r),c=a.outlineWidth,f=a.outlineColor,d=a.outlineOpacity,h=i(a,o);return e.jsxs(e.Fragment,{children:[c>0&&e.jsx(t.animated.text,n({},u,{style:n({},h,{strokeWidth:2*c,stroke:f,strokeOpacity:d,strokeLinejoin:"round"}),children:s})),e.jsx(t.animated.text,n({},u,{style:h,children:s}))]})},exports.drawCanvasText=function(t,e,n,i,r){void 0===i&&(i=0),void 0===r&&(r=0),e.outlineWidth>0&&(t.strokeStyle=e.outlineColor,t.lineWidth=2*e.outlineWidth,t.lineJoin="round",t.strokeText(n,i,r)),t.fillStyle=e.fill,t.fillText(n,i,r)},exports.setCanvasFont=function(t,e){t.font=(e.fontWeight?e.fontWeight+" ":"")+e.fontSize+"px "+e.fontFamily};
//# sourceMappingURL=nivo-text.cjs.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet