We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 541cba7 commit 0c34b56Copy full SHA for 0c34b56
mathics/formatter/json.py
@@ -60,17 +60,15 @@ def point_3d_box(self):
60
face_color = RGBColor(components=(0, 0, 0, face_color.to_rgba()[3]))
61
62
point_size, _ = self.style.get_style(PointSize, face_element=False)
63
- if point_size is None:
64
- point_size = PointSize(self.graphics, value=0.005)
65
- absolute_point_size = point_size.get_size()
+ relative_point_size = 0.01 if point_size is None else point_size.value
66
67
for line in self.lines:
68
data.append(
69
{
70
"type": "point",
71
"coords": [coords.pos() for coords in line],
72
"color": face_color.to_rgba(),
73
- "pointSize": absolute_point_size,
+ "pointSize": relative_point_size,
74
}
75
)
76
# print("### json Point3DBox", data)
0 commit comments