Skip to content

Omissions in the type.d.ts file in the Two.Path module? #634

@dickinson0718

Description

@dickinson0718

I'm updating from 0.7.13 to 0.8.7 for my typescript application and I think that there are possibly some omissions in the type.d.ts file in the Two.Path module.

  1. The first issue is that I'm getting the error "Property 'closed' does not exist on type 'Path'" seen here

Screen Shot 2022-05-27 at 2 04 06 PM

this worked in 0.7.13 and I think that the current error stems from the fact that the file type.d.ts in the Path module

Screen Shot 2022-05-27 at 2 05 00 PM

doesn't include the closed property (like it does for beginning, ending, fill, stroke, etc).

  1. I'm trying to use a RadialGradient for a fill of a Path (just like I did in 0.7.13) and I get the error of

Screen Shot 2022-05-27 at 2 50 53 PM

Again I think that the type for Path.fill should be more than just string in the type.d.ts file in the Path module

Screen Shot 2022-05-27 at 2 51 55 PM

Shouldn't the type for Path.fill be string or gradient or texture?

  1. I'm trying to scale a layer in a non-uniform way so I would like to assign newLayer as a vector (like I did in 0.7.13) and the following tooltip seems to indicate is possible.

Screen Shot 2022-05-27 at 3 59 56 PM

So shouldn't the type of Shape.scale be number or vector?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions