-
Couldn't load subscription status.
- Fork 597
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
现在已经有控制线条颜色的配置项了,希望再提供下能控制粗细的。
目前暂时可以通过 CSS 来控制:
.flow-lines-container {
stroke-width: 2px;
}也许可以在初始化时提供一个新的常量值?
editorProps = {
...other,
constants: {
[ConstantKeys.BASE_COLOR]: "red",
[ConstantKeys.BASE_ACTIVATED_COLOR]: "blue",
[ConstantKeys.LINE_WIDTH]: "2px" // <-- here
}
}This text is auto-translated:
Now there are configuration items to control the color of the line, and I hope to provide ones that can control the thickness.Currently, it can be controlled through CSS:
.flow-lines-container { stroke-width: 2px; }Maybe it is possible to provide a new constant value at initialization?
editorProps = { ...other, constants: { [ConstantKeys.BASE_COLOR]: "red", [ConstantKeys.BASE_ACTIVATED_COLOR]: "blue", [ConstantKeys.LINE_WIDTH]: "2px" // <-- here } }
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed