Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZCylinder not rendering properly #7

Open
chastain1337 opened this issue Jul 2, 2020 · 0 comments
Open

ZCylinder not rendering properly #7

chastain1337 opened this issue Jul 2, 2020 · 0 comments

Comments

@chastain1337
Copy link

ZCylinder does not render anything except, it seems, some very small strokes.

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <script src="https://unpkg.com/vue"></script>
    <script src="https://unpkg.com/zdog/dist/zdog.dist.min.js"></script>
    <script src="https://unpkg.com/vue-zdog@0.0.3"></script>
</head>

<body>
    <div id="app"></div>

    <script type="text/javascript">
        const { ZIllustration, ZCylinder } = VueZDog;
        new Vue({
            components: {
                ZIllustration,
                ZCylinder
            },
            render(h) {
                const cyl = h(ZCylinder,{ props: {diameter: 500, length: 200, color: "#000", stroke: true}})
                return h(ZIllustration, {
                    props: {
                        resize: 'fullscreen',
                        dragRotate: true
                    },
                }, [cyl])
            }
        }).$mount('#app')
    </script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant