Replies: 6 comments 3 replies
-
Hello! Having the OvalArc with flat ends seems like a good idea for a new built-in model, perhaps we'd name it ArcWedge - since it would no longer be an oval :) If you're familiar with TypeScript and want to contribute to this repo, you could copy the existing OvalArc code file to start, then rename it and remove the code for arc endcaps and replace with lines. Then add the new file to the tsconfig. Note: this repo uses an older version of TypeScript - haven't updated that in a while 🦥. Then you call Otherwise, you can just feel free to write your own wrapper function in your own project that modifies an existing OvalArc. The built-in models are meant to be malleable for situations like these. Check the docs for modifying models and model trees. |
Beta Was this translation helpful? Give feedback.
-
Hi Dan, thanks for responding. Just to let you know that I spent a bit time on this earlier today and I actually have something working quite nicely. I built it as an extension to the ovalArc function but I now realise that it should be its own function. arcWedge sounds like a perfect name so I'll get working on porting that over tomorrow. There was one little glitch that I might need your help with but I'll get something uploaded and go from there. Can you please tell me where I can get all the files from? I tried npm install makerjs but it didn't download all the .ts files. I'm not familiar with Typescript but do feel it's about time I got my head around it but might need a little hand holding to get going. Is there something other than npm install makerjs that I should be using? |
Beta Was this translation helpful? Give feedback.
-
Glad to see you jumping in @milonic ! There's a few things to learn but it's a common & popular workflow. Here's a nice document I found that seems to describe the process neatly: https://github.com/firstcontributions/first-contributions/blob/main/README.md One quick note: |
Beta Was this translation helpful? Give feedback.
-
So, trying to build makerjs for testing. After lots of dependency installs, I finally ran into the following errors:
This happens to me every time I try to build something using Typescript and one of the reasons I usually quit and just get back to my day job. I've searched for an answer but nothing seems to help. So, wondering if you know where I went wrong and how to fix this? |
Beta Was this translation helpful? Give feedback.
-
Well this is weird, I just ran "npm test" and it appears to have built makerjs even though I changed nothing. Latest error is now:
|
Beta Was this translation helpful? Give feedback.
-
Managed to get makerjs to build so properly, so I now have a fully functioning arcWedge model tested and ready to go. What's the best way of committing it? Also, the above error is still there but only for playgound. Be nice to get that up and running because I'd like to create demos for arcWedge |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been looking at ovalArc and it's perfect for an upcoming project I am working on.
The only trouble is that I'd like to change the end caps from the current semi circle to something else, say fully right angle or maybe even an inner semi circle.
I had a little look at the source code and it's not as trivial as I'd hoped. Is this something that can be added?
I'd be happy to look at building this myself. Is there way somebody that can give me some pointers so I can work on this myself? Just an idea of the basic concepts I'd need to be looking at and I'll see if can achieve something.
Beta Was this translation helpful? Give feedback.
All reactions