Comments (6)
Ah yes, this is a great idea! I tried to do it but it was tricky because of the sizing logic, but if you have a PR that makes this work, I'd love to see it!
from qx82.
I haven't thought specifically about the sizing logic, actually. What I did in my demo was to use simple CSS to give the desired width and height. Is there something specific to that logic I should care of, in your opinion?
from qx82.
I think this issue is duplicate of #4 right? When I created #9 I didn't notice there was another issue regarding using a custom element, sorry.
Should we close this one maybe?
from qx82.
True, it's a duplicate of #4! Will close it.
from qx82.
Duplicate of #4
from qx82.
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.
Related Issues (9)
- Removing ThreeJS HOT 7
- The same sound played in multiple succession on Safari can break sometimes
- Define your own characters HOT 2
- Issues rendering on first initial load in Firefox HOT 1
- Render canvas on provided container HOT 6
- 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
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.