« first day (4494 days earlier)      last day (439 days later) » 

12:16 AM
how do you handle running from vscode a tyescript project? I know how to do that on the terminal (linux) using npm, npx, etc but don't know how to do it as easily as for Python in vscode (eg: for this repo github.com/zsviczian/obsidian-excalidraw-plugin)
already installed the Typescript extension
 
 
1 hour later…
1:21 AM
thanks @1.21 gigawatts for sharing
 
2:07 AM
 
 
7 hours later…
8:52 AM
@NordineLotfi well, it shouldn't be too hard to implement. getBoundingClientRect should do the trick just fine. The only thing you'll have to deal with is deciding what counts as "being in the rectangle": being fully contained (x of the link is GTE x of the rect, y of the link is GTE y of the rect, width of the link is LTE width of the rect, and height of the link is LTE height of the rect) or just intersecting (which is, admittedly, easier)
 
9:22 AM
@OlegValteriswithUkraine :o thanks for those details
didn't know about getBoundingClientRect
 
@NordineLotfi NP - getBoundingClientRect is a common way to determine if something intersects / is contained within a certain boundary (we have intersection observers now too, but they require a common ancestor)
 
that's nice
do you have some recommendation for what I said here? Not asking for a specific advice, but mostly general one if possible
I'm used to just play around with github repo when it comes to Python, and I wish I could do the same with Typescript. The deps and whatnot makes it confusing though (eg: installing using npm/yarn/etc often throw an error regarding the wrong version installed, etc)
I'm guessing I have to delete the offending version and install the right one? or is there a good workflow for this?
 
 
4 hours later…
1:14 PM
Hi guys was wondering if anyone could help me debug this code as I am new to front-end. stackoverflow.com/questions/75345260/…
 
@Just_CODING Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
1 hour later…
2:22 PM
@NordineLotfi frankly, I am unsure what are you even talking about there - I've only ever "run" TS projects as you'd normally do: install dependencies, build it if it needs to be built, then run whatever starts it. All via the terminal
 
 
6 hours later…
8:33 PM
ah, I'll try to ponder more about this and come up with a proper detailed question
 

« first day (4494 days earlier)      last day (439 days later) »