修改节点、管道的标签文字颜色为黑色,提高阅读性
This commit is contained in:
@@ -486,7 +486,7 @@ const MapComponent: React.FC<MapComponentProps> = ({ children }) => {
|
|||||||
d[pipeText] ? (d[pipeText] as number).toFixed(3) : "",
|
d[pipeText] ? (d[pipeText] as number).toFixed(3) : "",
|
||||||
getSize: 18,
|
getSize: 18,
|
||||||
fontWeight: "bold",
|
fontWeight: "bold",
|
||||||
getColor: [51, 153, 204],
|
getColor: [0, 0, 0],
|
||||||
getAngle: (d: any) => d.angle || 0,
|
getAngle: (d: any) => d.angle || 0,
|
||||||
getPixelOffset: [0, -8],
|
getPixelOffset: [0, -8],
|
||||||
getTextAnchor: "middle",
|
getTextAnchor: "middle",
|
||||||
|
|||||||
Reference in New Issue
Block a user