Giter VIP home page Giter VIP logo

Comments (2)

bluepuma77 avatar bluepuma77 commented on July 30, 2024 1

@frankieali Thanks! Should I close the issue or leave it open for the swipe? 😃

from dice-box.

frankieali avatar frankieali commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.