abstract-image
Advanced tools
Comparing version 2.2.6 to 3.0.0
@@ -139,9 +139,9 @@ "use strict"; | ||
var tags = []; | ||
for (var _i = 0, split_1 = split; _i < split_1.length; _i++) { | ||
var text_1 = split_1[_i]; | ||
for (var i = 0; i < split.length; ++i) { | ||
var splitText = split[i]; | ||
if (inside) { | ||
tags.push(React.createElement("tspan", { baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, text_1)); | ||
tags.push(React.createElement("tspan", { key: i, baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, splitText)); | ||
} | ||
else { | ||
tags.push(React.createElement("tspan", null, text_1)); | ||
tags.push(React.createElement("tspan", { key: i }, splitText)); | ||
} | ||
@@ -148,0 +148,0 @@ inside = !inside; |
@@ -136,9 +136,9 @@ import * as R from "ramda"; | ||
var tags = []; | ||
for (var _i = 0, split_1 = split; _i < split_1.length; _i++) { | ||
var text_1 = split_1[_i]; | ||
for (var i = 0; i < split.length; ++i) { | ||
var splitText = split[i]; | ||
if (inside) { | ||
tags.push(React.createElement("tspan", { baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, text_1)); | ||
tags.push(React.createElement("tspan", { key: i, baselineShift: "sub", style: { fontSize: (fontSize * 0.8).toString() + "px" } }, splitText)); | ||
} | ||
else { | ||
tags.push(React.createElement("tspan", null, text_1)); | ||
tags.push(React.createElement("tspan", { key: i }, splitText)); | ||
} | ||
@@ -145,0 +145,0 @@ inside = !inside; |
{ | ||
"name": "abstract-image", | ||
"version": "2.2.6", | ||
"version": "3.0.0", | ||
"description": "Dynamically create images using code or JSX and render to any format", | ||
@@ -20,4 +20,4 @@ "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image", | ||
"dependencies": { | ||
"react": "^15.6.1", | ||
"react-dom": "^15.4.2" | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
210309
3604
+ Addedreact@16.14.0(transitive)
+ Addedreact-dom@16.14.0(transitive)
+ Addedscheduler@0.19.1(transitive)
- Removedasap@2.0.6(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcreate-react-class@15.7.0(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpromise@7.3.1(transitive)
- Removedreact@15.7.0(transitive)
- Removedreact-dom@15.7.0(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedua-parser-js@0.7.38(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)
Updatedreact@^16.13.1
Updatedreact-dom@^16.13.1