Posts by Joao Scheuermann • 299 points
10 posts
-
1
votes0
answers55
viewsQ: Passing "this" to classes initialized within another class in Typescript
INTRO: I’m relatively new to Typescript (a few weeks of practice), I’m slowly learning superset and using it in conjunction with Electron. I was making a extend class Browserwindow to create extra…
-
1
votes1
answer71
viewsQ: Using ES6 Proxies with ES6 Maps
I’m about a day and a half researching about Maps and Proxies to go deeper into the issue of looking at arrays, objects and so on. But I came across a problem, I can’t use the Proxy in the Map. When…
-
0
votes1
answer126
viewsA: Alternating states of a js application
REPLY: After some effort, I arrived at a definitive answer, now I also know that there are many other ways to get this result and ways to modify my code to work in other ways, with Hooks for each…
-
4
votes1
answer126
viewsQ: Alternating states of a js application
INTRODUCTION I’m developing an app using Electron and google maps, I need to control the state of one of the windows, for example: the user clicks the button and from this moment on all click on the…
-
3
votes1
answer178
viewsQ: How to use . toggle() to exchange animations
I’m trying to alternate the animation of a div using .toggle(), but this div, which is the first gray ball, simply disappears after I click the button (orange ball), instead of returning to its…
-
-1
votes1
answer100
viewsQ: jquery . Animate() does not animate my div
Well, I’m trying to do something supposedly basic using the . Jquery’s Animate() but I can’t get it to anime div, even if I correctly select the html element with "$()". Here is the JSFIDDLE:…
-
0
votes2
answers289
viewsQ: Use of callback parameter in JS functions
I’m trying to use a parameter callback (I don’t know if it’s the correct term here) inside my constructor, which calls a function I defined, but every time I try to execute the code it presents me…
-
4
votes1
answer1027
viewsQ: Javascript canvas button builder
I have a question when creating a button builder for Canvas in JS, I can already detect the click in the button area, but I would like to simplify the code with a constructor, to speed up my content…
-
3
votes1
answer493
viewsQ: Creating a State Machine without libraries in Javascript
I was looking for how to program a state machine on google and came to various results that led me to libraries targeted to such, but I would like to understand the way it is processed and how to…
-
2
votes1
answer54
viewsQ: Problems animating sprites with javas canvas
I’m trying to animate some Sprites Sheets, but I’m having a problem regarding a certain "shadow" that is after the canvas runs the animation frame, it would be the previous frame, I can’t fix it.…