Comparing version 0.5.0 to 0.6.0
@@ -137,2 +137,17 @@ import { ReactNode } from 'react'; | ||
/** | ||
* This module is used to calculate the layout of the current sub-tree. | ||
*/ | ||
interface SatoriNode { | ||
left: number; | ||
top: number; | ||
width: number; | ||
height: number; | ||
type: string; | ||
key?: string | number; | ||
props: Record<string, any>; | ||
textContent?: string; | ||
} | ||
declare function init(yoga: Yoga): void; | ||
@@ -154,2 +169,3 @@ | ||
tailwindConfig?: TwConfig; | ||
onNodeDetected?: (node: SatoriNode) => void; | ||
}; | ||
@@ -159,2 +175,2 @@ | ||
export { FontOptions as Font, Style$1 as FontStyle, Weight as FontWeight, Locale, SatoriOptions, satori as default, init }; | ||
export { FontOptions as Font, Style$1 as FontStyle, Weight as FontWeight, Locale, SatoriNode, SatoriOptions, satori as default, init }; |
{ | ||
"name": "satori", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "Enlightened library to convert HTML and CSS to SVG.", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.js", |
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 too big to display
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
Sorry, the diff of this file is too big to display
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
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
3796769
3077