AlexandreBonaventure/vue-zdog

ZCylinder not rendering properly

Opened this issue · 0 comments

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>