This is an automated email from the ASF dual-hosted git repository.
yamer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new d80fa2be288 kie-issues#1718: DMN Editor extension generates SVG with
missing font color (#2816)
d80fa2be288 is described below
commit d80fa2be288d0197096bd7f50cc2ffa3d0e80824
Author: Kusuma04-dev <[email protected]>
AuthorDate: Tue Dec 17 14:12:00 2024 +0530
kie-issues#1718: DMN Editor extension generates SVG with missing font color
(#2816)
Co-authored-by: chinnamatli kusumalatha
<[email protected]>
---
packages/dmn-editor/src/diagram/nodes/NodeStyle.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts
b/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts
index 94a569a66e2..df72162b8b5 100644
--- a/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts
+++ b/packages/dmn-editor/src/diagram/nodes/NodeStyle.ts
@@ -43,6 +43,7 @@ export interface DmnFontStyle {
family?: string;
size?: number;
color: string;
+ fill: string;
}
export interface Color {
@@ -169,6 +170,7 @@ export function getDmnFontStyle(args: {
family: args.isEnabled ? args.dmnStyle?.["@_fontFamily"] : undefined,
size: args.isEnabled ? args.dmnStyle?.["@_fontSize"] : undefined,
color: fontColor,
+ fill: fontColor,
};
}
@@ -189,6 +191,7 @@ export function getFontCssProperties(dmnFontStyle?:
DmnFontStyle): React.CSSProp
textDecoration,
fontSize: dmnFontStyle?.size ?? "16px",
color: dmnFontStyle?.color ?? "black",
+ fill: dmnFontStyle?.fill ?? "black",
lineHeight: "1.5em", // This needs to be em `em` otherwise `@visx/text`
breaks when generating the SVG.
};
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]