-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
4,390 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# vue-components | ||
VUE Components for rendering and compiling JSCAD designs | ||
|
||
## ALPHA ALPHA ALPHA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>My first Vue app</title> | ||
<script src="https://unpkg.com/vue"></script> | ||
<style> | ||
.viewer{ | ||
width: 8cm; | ||
height: 8cm; | ||
margin: 0; | ||
outline: 1px solid black; | ||
background-color: transparent; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<script src="./lib/reglRenderer.js"></script> | ||
<script src="./viewerComponent.js"></script> | ||
<script src="./solids.js"></script> | ||
|
||
<div id="app"> | ||
<div> | ||
<p>{{ message }}</p> | ||
<button v-on:click="reverse">Reverse Message</button> | ||
</div> | ||
<div> | ||
<jscad-viewer></jscad-viewer> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
// global registration of viewer component | ||
Vue.component(viewerComponent.name, viewerComponent.properties) | ||
|
||
const something = [1,2,3,4] | ||
|
||
var app = new Vue({ | ||
el: '#app', | ||
data: { | ||
message: 'Hello Vue!' | ||
}, | ||
methods: { | ||
reverse: function () { | ||
this.message = this.message.split('').reverse().join('') | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.