Javis get_position doesn't work

Feed_Back
Fri, 23 Sep 2022 20:44:07 +0000
General Usage

if i type:

triangle = Object( JPoly(ngon(vertices_square[1], 10, 3, -π / 2, vertices = true); action = :fill, color = "black")))

and use this object inside some functions, ill get this error:( using pos(triangle) )

ERROR: MethodError: no method matching get_position(::Vector{Point})
Closest candidates are:
get_position(::Javis.Layer) at C:\Users\lol.julia\packages\Javis\UaLm7\src\layers.jl:187
get_position(::Point) at C:\Users\lol.julia\packages\Javis\UaLm7\src\object_values.jl:17
get_position(::Transformation) at C:\Users\lol.julia\packages\Javis\UaLm7\src\object_values.jl:18
…
Stacktrace:
[1] get_position(obj::Object)
@ Javis C:\Users\lol.julia\packages\Javis\UaLm7\src\object_values.jl:32

Insted if i use:

JCircle(vertices_square[1], 3; action = :fill, color = "black")

all my program works fine.
how can i fix this?

8 posts - 2 participants