Skip to content

Commit 0acff8b

Browse files
authored
Merge pull request #3 from sascha245/feature/core_rewrite
Feature/core rewrite
2 parents a521b93 + 637d65e commit 0acff8b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1512
-2017
lines changed

README.md

Lines changed: 82 additions & 205 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-threejs-composer",
3-
"version": "0.5.0",
3+
"version": "1.0.0",
44
"main": "build/src/index.js",
55
"typings": "build/src/index.d.ts",
66
"repository": "https://github.com/sascha245/vue-threejs-composer",
-23 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-97.9 KB
Binary file not shown.

samples/views/HoverBehaviour.ts renamed to samples/components/behaviours/HoverBehaviour.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { Component, Mixins, Prop } from "vue-property-decorator";
22

3-
import { Behaviour } from "../../src";
3+
import { BehaviourComponent } from "../../../src";
44

55
@Component
6-
export class HoverBehaviour extends Mixins(Behaviour) {
6+
export class HoverBehaviour extends Mixins(BehaviourComponent) {
77
@Prop({ required: true, type: Object })
88
public position!: { y: number };
99

samples/views/MyBehaviour.ts renamed to samples/components/behaviours/OrbitBehaviour.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as THREE from "three";
22
import { Component, Mixins, Prop } from "vue-property-decorator";
33

4-
import { Behaviour } from "../../src";
4+
import { BehaviourComponent } from "../../../src";
55
import { OrbitControls } from "./OrbitControls";
66

77
interface Vec3 {
@@ -11,7 +11,7 @@ interface Vec3 {
1111
}
1212

1313
@Component
14-
export class MyBehaviour extends Mixins(Behaviour) {
14+
export class OrbitBehaviour extends Mixins(BehaviourComponent) {
1515
@Prop()
1616
public data!: {
1717
position: Vec3;
@@ -23,7 +23,7 @@ export class MyBehaviour extends Mixins(Behaviour) {
2323

2424
public created() {
2525
if (!this.data) {
26-
throw new Error("Could not initialize MyBehaviour: data is missing");
26+
throw new Error("Could not initialize OrbitBehaviour: data is missing");
2727
}
2828
this.camera = new THREE.PerspectiveCamera();
2929
this.controls = new OrbitControls(this.camera);

0 commit comments

Comments
 (0)