William Ngan

Results 63 comments of William Ngan

Hi @cakir-enes -- Can you provide a simple example so that I can reproduce the bug? The source code seems reasonable but maybe there's something it misses. https://github.com/williamngan/pts/blob/master/src/Space.ts#L318

Hi Chris, sorry I don't think I understand fully. What are the events you want to pass to other elements? Do you mean using a custom event? For example: https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events...

Thanks @chrisui - let me take a look into this.

One quick idea @chrisui -- if you hack it by extending the CanvasSpace class and hardcode your container div like this, I wonder if it would work? ```javascript class AnotherSpace...

Agreed. Will think about how to support this in the API.

Thanks for the feedback @tcper -- there might be some ways to simplify. I'll look into this.

Following up on this. As a starting point, I've updated the documentations so it's clearer what these types mean. Not sure if I can simplify it further. Needed the Iterable...

Thank you @albizures -- this is a bug. Will fix it in the next patch. As a quick fix for now, you can try `Group.fromPtArray(side).scale(1.5)`.

Hi @cdaein - yes, the css styles and width/height attributes differ to support different pixel density screens automatically. Eg, if you're using a 2x retina screen, the canvas' actual size...

Thanks for the report! I will take a look soon. This is a common enough use case, so maybe we should create a `CustomCanvasSpace` or something similar for this type...