简体   繁体   中英

Can i make autolayout js work on canvas / pixijs

I am new to javascript/HTML5

I found that there is a layout library for js called here

it works perfectly on the DOM elements, and the examples provided by the documentation are also for DOM.

Does anyone know if it also work on canvas and how. If it is not , is there any replacement?

Well if you can create views using autolayout then it's just a matter of creating a helper class or function that will render out the objects onto the canvas. Providing you know what the elements 'should' be doing on the canvas then it's just a matter of feeding in the values from autolayout.

I could code an example of this but your question is really broad, though I hope this kind of helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM