Comments (2)
@frankieali Thanks! Should I close the issue or leave it open for the swipe? 😃
from dice-box.
Hey @bluepuma77 . You did discover a documentation issue. The config option id
should be container
. I'll have to update that.
Here is a demo using SvelteKit I just put together on CodeSandbox. The +page.svelte
shows how the box is configured and how to use CDN's to load the assets. This module does not work with SSR so I've turned it off in the +page.ts
file.
I do not ship any CSS with Dice-Box, so it's up to you to size and place the canvas properly. The browsers default canvas size is 300px by 150px I think. Really small.
There is currently no feature to drag or swipe to roll. Sorry. Perhaps in the future.
Let me know if you have any other questions.
from dice-box.
Related Issues (20)
- Mobile support for 3d simulation suspended. HOT 3
- Error after resizing HOT 1
- Dice canvas is small and in the top-left corner HOT 4
- Highlight Crits HOT 1
- d100 rolls (00-99) HOT 12
- 3D models to create themes HOT 1
- Define theme/themeColor for a specific dice. HOT 3
- Typescript support and @types HOT 1
- Simulate a dice tower?
- Unfortunately we couldn't use this for our Ludum Dare. Here's why HOT 1
- Fails to import module jbCGoMdf.js on init
- Multi-colored dice? HOT 2
- wasm streaming compile failed HOT 2
- Occasional colliderFaceMap Errors HOT 1
- Repeated updateConfig causes "velocity" change HOT 8
- Loading assets from the filesystem directly? HOT 3
- Have a d6 with values from 0 to 5 HOT 1
- Missing theme.config.json for default theme HOT 6
- 3d files for smooth dice HOT 1
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 dice-box.