-
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
1 parent
3bfda04
commit f1c4ed0
Showing
10 changed files
with
273 additions
and
139 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,27 @@ | ||
<template> | ||
<div class="f-component f-component-2d"> | ||
<!-- @vue-skip --> | ||
<h4 class="f-component-id">{{ component.constructor.name }} ({{ component.__ID__ }})</h4> | ||
<div class="f-component-property"> | ||
<div class="f-component-property-group"> | ||
<p>Position</p> | ||
<p>x : {{ component.position.x }}</p> | ||
<p>y : {{ component.position.y }}</p> | ||
</div> | ||
<p>r : {{ component.rotation }}</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { PropType } from 'vue' | ||
import { defineProps } from 'vue' | ||
import type { FComponent2d } from '@fibbojs/2d'; | ||
defineProps({ | ||
component: { | ||
type: Object as PropType<FComponent2d>, | ||
required: true | ||
} | ||
}) | ||
</script> |
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,23 @@ | ||
<template> | ||
<div class="f-components"> | ||
<FComponent2dDom | ||
v-for="component in components" | ||
:key="component.__ID__" | ||
:component="component" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { PropType } from 'vue' | ||
import { defineProps } from 'vue' | ||
import type { FComponent2d } from '@fibbojs/2d'; | ||
import FComponent2dDom from './FComponent2d.ce.vue'; | ||
defineProps({ | ||
components: { | ||
type: Array as PropType<FComponent2d[]>, | ||
default: () => [] | ||
} | ||
}) | ||
</script> |
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,33 @@ | ||
<template> | ||
<div class="f-component f-component-3d"> | ||
<!-- @vue-skip --> | ||
<h4 class="f-component-id">{{ component.constructor.name }} ({{ component.__ID__ }})</h4> | ||
<div class="f-component-property"> | ||
<div class="f-component-property-group"> | ||
<p>Position</p> | ||
<p>x : {{ component.position.x }}</p> | ||
<p>y : {{ component.position.y }}</p> | ||
<p>z : {{ component.position.z }}</p> | ||
</div> | ||
<div class="f-component-property-group"> | ||
<p>Rotation</p> | ||
<p>x : {{ component.rotation.x }}</p> | ||
<p>y : {{ component.rotation.y }}</p> | ||
<p>z : {{ component.rotation.z }}</p> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { PropType } from 'vue' | ||
import { defineProps } from 'vue' | ||
import type { FComponent3d } from '@fibbojs/3d'; | ||
defineProps({ | ||
component: { | ||
type: Object as PropType<FComponent3d>, | ||
required: true | ||
} | ||
}) | ||
</script> |
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,23 @@ | ||
<template> | ||
<div class="f-components"> | ||
<FComponent3dDom | ||
v-for="component in components" | ||
:key="component.__ID__" | ||
:component="component" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { PropType } from 'vue' | ||
import { defineProps } from 'vue' | ||
import type { FComponent3d } from '@fibbojs/3d'; | ||
import FComponent3dDom from './FComponent3d.ce.vue'; | ||
defineProps({ | ||
components: { | ||
type: Array as PropType<FComponent3d[]>, | ||
default: () => [] | ||
} | ||
}) | ||
</script> |
Oops, something went wrong.