You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the points are manipulated after input by the user. An end point the same as the first point is added and in some cases connection types are added.
The consequences are that if a variable called points are use to create a shape then the Shape.points will not be equal to the input points.
This limits the reuse of points across components.
A simple test was created that currently fails.
deftest_reuse_points(self):
"""Checks that points can be reused between shapes"""points= [
(100, 0),
(200, 0),
(250, 50),
(200, 100),
]
test_shape=paramak.Shape(
points=points
)
asserttest_shape.points== [
(100, 0),
(200, 0),
(250, 50),
(200, 100),
]
The input points should not be changed and the a second processed_points can be used internally
The text was updated successfully, but these errors were encountered:
Currently the points are manipulated after input by the user. An end point the same as the first point is added and in some cases connection types are added.
The consequences are that if a variable called
points
are use to create a shape then the Shape.points will not be equal to the input points.This limits the reuse of points across components.
A simple test was created that currently fails.
The input points should not be changed and the a second
processed_points
can be used internallyThe text was updated successfully, but these errors were encountered: