polotno-node
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "polotno-node", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Polotno workflow from NodeJS", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"parcel-bundler": "^1.12.4", | ||
"polotno": "^1.2.0", | ||
"polotno": "^1.4.0", | ||
"react": "^18.2.0", | ||
@@ -21,0 +21,0 @@ "react-dom": "^18.2.0" |
@@ -53,3 +53,6 @@ # Polotno-node | ||
for (const page of json.pages) { | ||
const url = await instance.jsonToDataURL(json, { pageId: page.id }); | ||
const url = await instance.jsonToDataURL( | ||
{ ...json, pages: [page] }, // for optimization, we can modify JSON to include only one page | ||
{ pageId: page.id } | ||
); | ||
// do something with url | ||
@@ -74,5 +77,6 @@ } | ||
for (const page of json.pages) { | ||
const imageBase64 = await instance.jsonToImageBase64(json, { | ||
pageId: page.id, | ||
}); | ||
const imageBase64 = await instance.jsonToImageBase64( | ||
{ ...json, pages: [page] }, // for optimization, we can modify JSON to include only one page | ||
{ pageId: page.id } | ||
); | ||
// do something with base64 | ||
@@ -79,0 +83,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2820480
13377
161