@vyr/three-browser 0.0.33 → 0.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/common/provider.ts +3 -5
- package/src/common/validate.ts +2 -4
- package/src/fragment/GeoMapFragment.vue +2 -2
- package/src/fragment/InstancedMeshFragment.vue +4 -4
- package/src/fragment/MeshFragment.vue +4 -4
- package/src/fragment/ModelFragment.vue +2 -2
- package/src/fragment/NodeFragment.vue +2 -2
- package/src/fragment/ParticleFragment.vue +2 -2
- package/src/fragment/PointsFragment.vue +2 -2
- package/src/fragment/SpriteFragment.vue +2 -2
- package/src/fragment/{TextFragment.vue → Text3DFragment.vue} +8 -8
- package/src/fragment/animation/AnimationActionFragment.vue +3 -3
- package/src/fragment/geometry/BoxGeometryFragment.vue +2 -2
- package/src/fragment/geometry/BufferGeometryFragment.vue +2 -2
- package/src/fragment/geometry/CircleGeometryFragment.vue +2 -2
- package/src/fragment/geometry/CylinderGeometryFragment.vue +2 -2
- package/src/fragment/geometry/ExtrudeGeometryFragment.vue +2 -2
- package/src/fragment/geometry/PlaneGeometryFragment.vue +2 -2
- package/src/fragment/geometry/RingGeometryFragment.vue +2 -2
- package/src/fragment/geometry/SphereGeometryFragment.vue +2 -2
- package/src/fragment/geometry/SurfaceGeometryFragment.vue +2 -2
- package/src/fragment/geometry/TubeGeometryFragment.vue +2 -2
- package/src/fragment/light/AmbientLightFragment.vue +2 -2
- package/src/fragment/light/DirectionalLightFragment.vue +2 -2
- package/src/fragment/light/HemisphereLightFragment.vue +2 -2
- package/src/fragment/light/PointLightFragment.vue +2 -2
- package/src/fragment/light/RectAreaLightFragment.vue +2 -2
- package/src/fragment/light/SpotLightFragment.vue +2 -2
- package/src/fragment/material/MaterialFragment.vue +4 -4
- package/src/fragment/material/MeshBasicMaterialFragment.vue +4 -4
- package/src/fragment/material/MeshPhongMaterialFragment.vue +4 -4
- package/src/fragment/material/MeshStandardMaterialFragment.vue +4 -4
- package/src/fragment/material/PointsMaterialFragment.vue +4 -4
- package/src/fragment/material/ShaderMaterialFragment.vue +2 -2
- package/src/fragment/material/ShadowMaterialFragment.vue +4 -4
- package/src/fragment/material/SpriteMaterialFragment.vue +4 -4
- package/src/fragment/texture/TextureFragment.vue +10 -10
- package/src/locale/Language.ts +1 -5
- package/src/locale/LanguageProvider.ts +28 -33
- package/src/option/Animation.ts +3 -8
- package/src/option/Geometry.ts +4 -10
- package/src/option/Material.ts +6 -14
- package/src/option/Mesh.ts +2 -6
- package/src/option/Shadow.ts +3 -8
- package/src/option/Texture.ts +6 -14
- package/src/service/footer/action/geometry/index.ts +15 -20
- package/src/service/footer/action/material/index.ts +12 -17
- package/src/service/footer/action/texture/index.ts +6 -11
- package/src/service/global/index.ts +0 -1
- package/src/service/index.ts +20 -47
- package/src/service/inspector/GeoMapViewer.vue +3 -3
- package/src/service/inspector/HTMLConvertViewer.vue +3 -3
- package/src/service/inspector/InstanceMeshViewer.vue +3 -3
- package/src/service/inspector/MeshViewer.vue +3 -3
- package/src/service/inspector/ModelViewer.vue +3 -3
- package/src/service/inspector/NodeViewer.vue +3 -3
- package/src/service/inspector/ParticleViewer.vue +3 -3
- package/src/service/inspector/PerspectiveCameraViewer.vue +3 -3
- package/src/service/inspector/PointsViewer.vue +3 -3
- package/src/service/inspector/ServiceViewer.vue +10 -42
- package/src/service/inspector/SpriteViewer.vue +3 -3
- package/src/service/inspector/{TextViewer.vue → Text3DViewer.vue} +6 -6
- package/src/service/inspector/animation/AnimationActionViewer.vue +3 -3
- package/src/service/inspector/geometry/BoxGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/BufferGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/CircleGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/CylinderGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/ExtrudeGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/PlaneGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/RingGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/SphereGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/SurfaceGeometryViewer.vue +3 -3
- package/src/service/inspector/geometry/TubeGeometryViewer.vue +3 -3
- package/src/service/inspector/index.ts +46 -46
- package/src/service/inspector/light/AmbientLightViewer.vue +3 -3
- package/src/service/inspector/light/DirectionalLightViewer.vue +3 -3
- package/src/service/inspector/light/HemisphereLightViewer.vue +3 -3
- package/src/service/inspector/light/PointLightViewer.vue +3 -3
- package/src/service/inspector/light/RectAreaLightViewer.vue +3 -3
- package/src/service/inspector/light/SpotLightViewer.vue +3 -3
- package/src/service/inspector/material/MeshBasicMaterialViewer.vue +3 -3
- package/src/service/inspector/material/MeshPhongMaterialViewer.vue +3 -3
- package/src/service/inspector/material/MeshStandardMaterialViewer.vue +3 -3
- package/src/service/inspector/material/PointsMaterialViewer.vue +3 -3
- package/src/service/inspector/material/ShaderMaterialViewer.vue +3 -3
- package/src/service/inspector/material/ShadowMaterialViewer.vue +3 -3
- package/src/service/inspector/material/SpriteMaterialViewer.vue +3 -3
- package/src/service/inspector/texture/TextureViewer.vue +3 -3
- package/src/service/sidebar/asset/action/AddAnimationAction.ts +14 -25
- package/src/service/sidebar/asset/action/AddLightAction.ts +17 -26
- package/src/service/global/scripts/index.ts +0 -22
- package/src/service/sidebar/scene/action/AddAnimationAction.ts +0 -65
- package/src/service/sidebar/scene/action/AddLightAction.ts +0 -67
- package/src/service/sidebar/scene/action/index.ts +0 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<vyr-card v-if="descriptor" :title="language.get('descriptor.type.
|
|
2
|
+
<vyr-card v-if="descriptor" :title="language.get('descriptor.type.Text3D')" :scroll="true">
|
|
3
3
|
<base-fragment :raw="raw"></base-fragment>
|
|
4
4
|
<node-fragment></node-fragment>
|
|
5
|
-
<
|
|
5
|
+
<text3-d-fragment></text3-d-fragment>
|
|
6
6
|
</vyr-card>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { Text3D } from '@vyr/three';
|
|
14
14
|
import { VyrCard } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../locale'
|
|
17
17
|
import { providerDescriptor } from '../../common';
|
|
18
18
|
import NodeFragment from '../../fragment/NodeFragment.vue';
|
|
19
|
-
import
|
|
19
|
+
import Text3DFragment from '../../fragment/Text3DFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
22
|
|
|
23
|
-
const descriptor = ref(null) as Ref<
|
|
23
|
+
const descriptor = ref(null) as Ref<Text3D | null>
|
|
24
24
|
const watchEditItem = (cur: string) => {
|
|
25
25
|
if (!cur) return descriptor.value = null
|
|
26
|
-
descriptor.value = Descriptor.get<
|
|
26
|
+
descriptor.value = Descriptor.get<Text3D>(cur)
|
|
27
27
|
}
|
|
28
28
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
29
29
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
|
-
import {
|
|
12
|
+
import { AnimationAction } from '@vyr/three';
|
|
13
13
|
import { VyrCard } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -17,10 +17,10 @@ import { providerDescriptor } from '../../../common';
|
|
|
17
17
|
import AnimationActionFragment from '../../../fragment/animation/AnimationActionFragment.vue';
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
|
-
const descriptor = ref(null) as Ref<
|
|
20
|
+
const descriptor = ref(null) as Ref<AnimationAction | null>
|
|
21
21
|
const watchEditItem = (cur: string) => {
|
|
22
22
|
if (!cur) return descriptor.value = null
|
|
23
|
-
descriptor.value =
|
|
23
|
+
descriptor.value = AnimationAction.get<AnimationAction>(cur)
|
|
24
24
|
}
|
|
25
25
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
26
26
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { BoxGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import BoxGeometryFragment from '../../../fragment/geometry/BoxGeometryFragment.
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<BoxGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<BoxGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { BufferGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import BufferGeometryFragment from '../../../fragment/geometry/BufferGeometryFra
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<BufferGeometry | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<BufferGeometry>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { CircleGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import CircleGeometryFragment from '../../../fragment/geometry/CircleGeometryFra
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<CircleGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<CircleGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { CylinderGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import CylinderGeometryFragment from '../../../fragment/geometry/CylinderGeometr
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<CylinderGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<CylinderGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { ExtrudeGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import ExtrudeGeometryFragment from '../../../fragment/geometry/ExtrudeGeometryF
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<ExtrudeGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<ExtrudeGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { PlaneGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import PlaneGeometryFragment from '../../../fragment/geometry/PlaneGeometryFragm
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<PlaneGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<PlaneGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { RingGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import RingGeometryFragment from '../../../fragment/geometry/RingGeometryFragmen
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<RingGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<RingGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { SphereGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import SphereGeometryFragment from '../../../fragment/geometry/SphereGeometryFra
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<SphereGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<SphereGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { SurfaceGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import SurfaceGeometryFragment from '../../../fragment/geometry/SurfaceGeometryF
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<SurfaceGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<SurfaceGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { TubeGeometry } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -18,10 +18,10 @@ import TubeGeometryFragment from '../../../fragment/geometry/TubeGeometryFragmen
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
20
20
|
|
|
21
|
-
const descriptor = ref(null) as Ref<
|
|
21
|
+
const descriptor = ref(null) as Ref<TubeGeometry | null>
|
|
22
22
|
const watchEditItem = (cur: string) => {
|
|
23
23
|
if (!cur) return descriptor.value = null
|
|
24
|
-
descriptor.value = Descriptor.get<
|
|
24
|
+
descriptor.value = Descriptor.get<TubeGeometry>(cur)
|
|
25
25
|
}
|
|
26
26
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
27
27
|
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Node } from '@vyr/engine';
|
|
2
|
+
import { AmbientLight, AnimationAction, BoxGeometry, BufferGeometry, CircleGeometry, CylinderGeometry, DirectionalLight, ExtrudeGeometry, GeoMap, HemisphereLight, HTMLConvert, InstancedMesh, MeshBasicMaterial, Mesh, MeshPhongMaterial, MeshStandardMaterial, Model, Particle, PerspectiveCamera, PlaneGeometry, PointLight, Points, PointsMaterial, RectAreaLight, RingGeometry, Scene3DService, ShaderMaterial, ShadowMaterial, SphereGeometry, SpotLight, Sprite, SpriteMaterial, SurfaceGeometry, Text3D, Texture, TubeGeometry } from '@vyr/three';
|
|
3
3
|
|
|
4
4
|
export default [
|
|
5
|
-
{ type:
|
|
6
|
-
{ type:
|
|
7
|
-
{ type:
|
|
8
|
-
{ type:
|
|
9
|
-
{ type:
|
|
10
|
-
{ type:
|
|
11
|
-
{ type:
|
|
12
|
-
|
|
13
|
-
{ type:
|
|
14
|
-
{ type:
|
|
15
|
-
{ type:
|
|
16
|
-
{ type:
|
|
17
|
-
{ type:
|
|
18
|
-
{ type:
|
|
19
|
-
{ type:
|
|
20
|
-
{ type:
|
|
21
|
-
{ type:
|
|
22
|
-
{ type:
|
|
23
|
-
|
|
24
|
-
{ type:
|
|
25
|
-
|
|
26
|
-
{ type:
|
|
27
|
-
|
|
28
|
-
{ type:
|
|
29
|
-
|
|
30
|
-
{ type:
|
|
31
|
-
// { type:
|
|
32
|
-
{ type:
|
|
33
|
-
{ type:
|
|
34
|
-
{ type:
|
|
35
|
-
{ type:
|
|
36
|
-
{ type:
|
|
37
|
-
{ type:
|
|
38
|
-
{ type:
|
|
39
|
-
{ type:
|
|
40
|
-
{ type:
|
|
41
|
-
{ type:
|
|
42
|
-
|
|
43
|
-
{ type:
|
|
44
|
-
{ type:
|
|
45
|
-
{ type:
|
|
46
|
-
{ type:
|
|
47
|
-
{ type:
|
|
48
|
-
{ type:
|
|
5
|
+
{ type: MeshBasicMaterial.type, import: () => import('./material/MeshBasicMaterialViewer.vue') },
|
|
6
|
+
{ type: MeshPhongMaterial.type, import: () => import('./material/MeshPhongMaterialViewer.vue') },
|
|
7
|
+
{ type: MeshStandardMaterial.type, import: () => import('./material/MeshStandardMaterialViewer.vue') },
|
|
8
|
+
{ type: PointsMaterial.type, import: () => import('./material/PointsMaterialViewer.vue') },
|
|
9
|
+
{ type: SpriteMaterial.type, import: () => import('./material/SpriteMaterialViewer.vue') },
|
|
10
|
+
{ type: ShadowMaterial.type, import: () => import('./material/ShadowMaterialViewer.vue') },
|
|
11
|
+
{ type: ShaderMaterial.type, import: () => import('./material/ShaderMaterialViewer.vue') },
|
|
12
|
+
|
|
13
|
+
{ type: BoxGeometry.type, import: () => import('./geometry/BoxGeometryViewer.vue') },
|
|
14
|
+
{ type: CircleGeometry.type, import: () => import('./geometry/CircleGeometryViewer.vue') },
|
|
15
|
+
{ type: CylinderGeometry.type, import: () => import('./geometry/CylinderGeometryViewer.vue') },
|
|
16
|
+
{ type: PlaneGeometry.type, import: () => import('./geometry/PlaneGeometryViewer.vue') },
|
|
17
|
+
{ type: RingGeometry.type, import: () => import('./geometry/RingGeometryViewer.vue') },
|
|
18
|
+
{ type: SphereGeometry.type, import: () => import('./geometry/SphereGeometryViewer.vue') },
|
|
19
|
+
{ type: ExtrudeGeometry.type, import: () => import('./geometry/ExtrudeGeometryViewer.vue') },
|
|
20
|
+
{ type: SurfaceGeometry.type, import: () => import('./geometry/SurfaceGeometryViewer.vue') },
|
|
21
|
+
{ type: TubeGeometry.type, import: () => import('./geometry/TubeGeometryViewer.vue') },
|
|
22
|
+
{ type: BufferGeometry.type, import: () => import('./geometry/BufferGeometryViewer.vue') },
|
|
23
|
+
|
|
24
|
+
{ type: Texture.type, import: () => import('./texture/TextureViewer.vue') },
|
|
25
|
+
|
|
26
|
+
{ type: AnimationAction.type, import: () => import('./animation/AnimationActionViewer.vue') },
|
|
27
|
+
|
|
28
|
+
{ type: PerspectiveCamera.type, import: () => import('./PerspectiveCameraViewer.vue') },
|
|
29
|
+
|
|
30
|
+
{ type: Scene3DService.type, import: () => import('./ServiceViewer.vue') },
|
|
31
|
+
// { type: ComposerService.type, import: () => import('./ServiceViewer.vue') },
|
|
32
|
+
{ type: Node.type, import: () => import('./NodeViewer.vue') },
|
|
33
|
+
{ type: Mesh.type, import: () => import('./MeshViewer.vue') },
|
|
34
|
+
{ type: Text3D.type, import: () => import('./Text3DViewer.vue') },
|
|
35
|
+
{ type: Points.type, import: () => import('./PointsViewer.vue') },
|
|
36
|
+
{ type: Particle.type, import: () => import('./ParticleViewer.vue') },
|
|
37
|
+
{ type: Sprite.type, import: () => import('./SpriteViewer.vue') },
|
|
38
|
+
{ type: Model.type, import: () => import('./ModelViewer.vue') },
|
|
39
|
+
{ type: GeoMap.type, import: () => import('./GeoMapViewer.vue') },
|
|
40
|
+
{ type: HTMLConvert.type, import: () => import('./HTMLConvertViewer.vue') },
|
|
41
|
+
{ type: InstancedMesh.type, import: () => import('./InstanceMeshViewer.vue') },
|
|
42
|
+
|
|
43
|
+
{ type: AmbientLight.type, import: () => import('./light/AmbientLightViewer.vue') },
|
|
44
|
+
{ type: DirectionalLight.type, import: () => import('./light/DirectionalLightViewer.vue') },
|
|
45
|
+
{ type: HemisphereLight.type, import: () => import('./light/HemisphereLightViewer.vue') },
|
|
46
|
+
{ type: PointLight.type, import: () => import('./light/PointLightViewer.vue') },
|
|
47
|
+
{ type: RectAreaLight.type, import: () => import('./light/RectAreaLightViewer.vue') },
|
|
48
|
+
{ type: SpotLight.type, import: () => import('./light/SpotLightViewer.vue') },
|
|
49
49
|
|
|
50
50
|
]
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { AmbientLight } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import NodeFragment from '../../../fragment/NodeFragment.vue';
|
|
|
19
19
|
import AmbientLightFragment from '../../../fragment/light/AmbientLightFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<AmbientLight | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<AmbientLight>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { DirectionalLight } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import NodeFragment from '../../../fragment/NodeFragment.vue';
|
|
|
19
19
|
import DirectionalLightFragment from '../../../fragment/light/DirectionalLightFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<DirectionalLight | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<DirectionalLight>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { HemisphereLight } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import NodeFragment from '../../../fragment/NodeFragment.vue';
|
|
|
19
19
|
import HemisphereLightFragment from '../../../fragment/light/HemisphereLightFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<HemisphereLight | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<HemisphereLight>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { PointLight } from '@vyr/three';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { VyrCard, } from '@vyr/design';
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import NodeFragment from '../../../fragment/NodeFragment.vue';
|
|
|
19
19
|
import PointLightFragment from '../../../fragment/light/PointLightFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<PointLight | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<PointLight>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { RectAreaLight } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import NodeFragment from '../../../fragment/NodeFragment.vue';
|
|
|
19
19
|
import RectAreaLightFragment from '../../../fragment/light/RectAreaLightFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<RectAreaLight | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<RectAreaLight>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { SpotLight } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import NodeFragment from '../../../fragment/NodeFragment.vue';
|
|
|
19
19
|
import SpotLightFragment from '../../../fragment/light/SpotLightFragment.vue';
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<SpotLight | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<SpotLight>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { MeshBasicMaterial } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -20,10 +20,10 @@ import MeshBasicMaterialFragment from '../../../fragment/material/MeshBasicMater
|
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
22
|
|
|
23
|
-
const descriptor = ref(null) as Ref<
|
|
23
|
+
const descriptor = ref(null) as Ref<MeshBasicMaterial | null>
|
|
24
24
|
const watchEditItem = (cur: string) => {
|
|
25
25
|
if (!cur) return descriptor.value = null
|
|
26
|
-
descriptor.value = Descriptor.get<
|
|
26
|
+
descriptor.value = Descriptor.get<MeshBasicMaterial>(cur)
|
|
27
27
|
}
|
|
28
28
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
29
29
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { MeshPhongMaterial } from '@vyr/three';
|
|
14
14
|
import { VyrCard } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -20,10 +20,10 @@ import MeshPhongMaterialFragment from '../../../fragment/material/MeshPhongMater
|
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
22
|
|
|
23
|
-
const descriptor = ref(null) as Ref<
|
|
23
|
+
const descriptor = ref(null) as Ref<MeshPhongMaterial | null>
|
|
24
24
|
const watchEditItem = (cur: string) => {
|
|
25
25
|
if (!cur) return descriptor.value = null
|
|
26
|
-
descriptor.value = Descriptor.get<
|
|
26
|
+
descriptor.value = Descriptor.get<MeshPhongMaterial>(cur)
|
|
27
27
|
}
|
|
28
28
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
29
29
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<script lang="ts" setup>
|
|
11
11
|
import { Ref, ref, watch } from 'vue'
|
|
12
12
|
import { Descriptor } from '@vyr/engine';
|
|
13
|
-
import {
|
|
13
|
+
import { MeshStandardMaterial } from '@vyr/three';
|
|
14
14
|
import { VyrCard, } from '@vyr/design';
|
|
15
15
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
16
16
|
import { language } from '../../../locale'
|
|
@@ -20,10 +20,10 @@ import MeshStandardMaterialFragment from '../../../fragment/material/MeshStandar
|
|
|
20
20
|
|
|
21
21
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
22
22
|
|
|
23
|
-
const descriptor = ref(null) as Ref<
|
|
23
|
+
const descriptor = ref(null) as Ref<MeshStandardMaterial | null>
|
|
24
24
|
const watchEditItem = (cur: string) => {
|
|
25
25
|
if (!cur) return descriptor.value = null
|
|
26
|
-
descriptor.value = Descriptor.get<
|
|
26
|
+
descriptor.value = Descriptor.get<MeshStandardMaterial>(cur)
|
|
27
27
|
}
|
|
28
28
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
29
29
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { Ref, ref, watch } from 'vue'
|
|
11
11
|
import { Descriptor } from '@vyr/engine';
|
|
12
|
-
import {
|
|
12
|
+
import { PointsMaterial } from '@vyr/three';
|
|
13
13
|
import { VyrCard, } from '@vyr/design';
|
|
14
14
|
import { BaseFragment, providerDescriptor as builtinProviderDescriptor } from '@vyr/builtin'
|
|
15
15
|
import { language } from '../../../locale'
|
|
@@ -19,10 +19,10 @@ import PointsMaterialFragment from '../../../fragment/material/PointsMaterialFra
|
|
|
19
19
|
|
|
20
20
|
const props = defineProps<{ raw: string, uuid: string }>()
|
|
21
21
|
|
|
22
|
-
const descriptor = ref(null) as Ref<
|
|
22
|
+
const descriptor = ref(null) as Ref<PointsMaterial | null>
|
|
23
23
|
const watchEditItem = (cur: string) => {
|
|
24
24
|
if (!cur) return descriptor.value = null
|
|
25
|
-
descriptor.value = Descriptor.get<
|
|
25
|
+
descriptor.value = Descriptor.get<PointsMaterial>(cur)
|
|
26
26
|
}
|
|
27
27
|
watch(() => props.uuid, watchEditItem, { immediate: true })
|
|
28
28
|
|