Comments (6)
There is now also a way to specify:
- What element the canvas should be added to (CONFIG.CANVAS_SETTINGS.CONTAINER)
- Whether or not QX82 should auto-position and/or auto-size the canvas (CONFIG.CANVAS_SETTINGS.AUTO_POSITION and AUTO_SIZE)
- What ID and CSS classes to assign to the canvas (CONFIG.CANVAS_SETTINGS.CANVAS_ID and CANVAS_CLASSES).
from qx82.
I think the request is just asking to pass an id where the canvas will be appended (it's parent element) as opposed to adding it directly in the body.
I agree there's no point adding a feature to pass in a canvas element to actually use, but a parent makes sense.
from qx82.
Good idea!
from qx82.
Thinking about this, but it's non-trivial because the canvas needs to have a pretty specific configuration in terms of width, height, etc to match the config...
from qx82.
from qx82.
Just a note that I'm currently working on this and expect to have a solution soon-ish.
from qx82.
Related Issues (8)
- Removing ThreeJS HOT 7
- Define your own characters HOT 2
- Issues rendering on first initial load in Firefox HOT 1
- Cursor is broken if 3D effect is on
- Is there a way to modify the project to be able to use APNG or GIF as images? HOT 2
- readLine printed over several lines HOT 4
- Possibility to append the canvas to a custom element HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qx82.