abstract-image
Advanced tools
Comparing version 8.0.1 to 8.1.0
@@ -5,2 +5,8 @@ # Change Log | ||
## [8.1.0] - 2024-05-22 | ||
### Added | ||
- Support for id on text components | ||
## [8.0.0] - 2024-05-19 | ||
@@ -7,0 +13,0 @@ |
@@ -91,3 +91,3 @@ "use strict"; | ||
component.strokeThickness > 0 && component.strokeColor && (React.createElement("text", { style: Object.assign(Object.assign({}, baseStyle), { stroke: colorToRgb(component.strokeColor), strokeWidth: component.strokeThickness }), transform: transform }, tSpans)), | ||
React.createElement("text", { style: Object.assign(Object.assign({}, baseStyle), { fill: colorToRgb(component.textColor) }), transform: transform }, tSpans))); | ||
React.createElement("text", { style: Object.assign(Object.assign({}, baseStyle), { fill: colorToRgb(component.textColor) }), transform: transform, id: makeIdAttr(component.id) }, tSpans))); | ||
} | ||
@@ -94,0 +94,0 @@ case "ellipse": |
@@ -98,4 +98,5 @@ import * as Point from "./point"; | ||
readonly italic: boolean; | ||
readonly id: string | undefined; | ||
} | ||
export declare function createText(position: Point.Point, text: string, fontFamily: string, fontSize: number, textColor: Color.Color, fontWeight: AbstractFontWeight, clockwiseRotationDegrees: number, textAlignment: TextAlignment, horizontalGrowthDirection: GrowthDirection, verticalGrowthDirection: GrowthDirection, strokeThickness: number, strokeColor: Color.Color, italic: boolean): Text; | ||
export declare function createText(position: Point.Point, text: string, fontFamily: string, fontSize: number, textColor: Color.Color, fontWeight: AbstractFontWeight, clockwiseRotationDegrees: number, textAlignment: TextAlignment, horizontalGrowthDirection: GrowthDirection, verticalGrowthDirection: GrowthDirection, strokeThickness: number, strokeColor: Color.Color, italic: boolean, id?: string): Text; | ||
export interface SubImage { | ||
@@ -102,0 +103,0 @@ readonly type: "subimage"; |
@@ -112,3 +112,3 @@ "use strict"; | ||
exports.corners = corners; | ||
function createText(position, text, fontFamily, fontSize, textColor, fontWeight, clockwiseRotationDegrees, textAlignment, horizontalGrowthDirection, verticalGrowthDirection, strokeThickness, strokeColor, italic) { | ||
function createText(position, text, fontFamily, fontSize, textColor, fontWeight, clockwiseRotationDegrees, textAlignment, horizontalGrowthDirection, verticalGrowthDirection, strokeThickness, strokeColor, italic, id) { | ||
return { | ||
@@ -129,2 +129,3 @@ type: "text", | ||
italic, | ||
id, | ||
}; | ||
@@ -131,0 +132,0 @@ } |
{ | ||
"name": "abstract-image", | ||
"version": "8.0.1", | ||
"version": "8.1.0", | ||
"description": "Dynamically create images using code or JSX and render to any format", | ||
@@ -27,3 +27,3 @@ "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image", | ||
}, | ||
"gitHead": "518941b55b7762251b4cd25f15a468109a9b4869" | ||
"gitHead": "a2c10bbed277d727b355a712935c67a3ab84e2c6" | ||
} |
@@ -228,2 +228,3 @@ import * as Point from "./point"; | ||
readonly italic: boolean; | ||
readonly id: string | undefined; | ||
} | ||
@@ -244,3 +245,4 @@ | ||
strokeColor: Color.Color, | ||
italic: boolean | ||
italic: boolean, | ||
id?: string | ||
): Text { | ||
@@ -262,2 +264,3 @@ return { | ||
italic, | ||
id, | ||
}; | ||
@@ -264,0 +267,0 @@ } |
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 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
831852
11566