1
0
This commit is contained in:
syui 2024-10-02 15:06:50 +09:00
parent fb0812032b
commit 3640ceecb5
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -86,7 +86,7 @@ title = "3Dホログラムを作った"
} }
``` ```
```tsx:src/pages/time.tsx ```ts:src/pages/time.tsx
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
//function reverseString(str: string): string { //function reverseString(str: string): string {
@ -126,7 +126,7 @@ const ScreenTimeCanvas: React.FC = () => {
export default ScreenTimeCanvas; export default ScreenTimeCanvas;
``` ```
```tsx:src/pages/vrm.tsx ```ts:src/pages/vrm.tsx
import * as THREE from 'three' import * as THREE from 'three'
import React, { useState, useEffect, useRef } from 'react'; import React, { useState, useEffect, useRef } from 'react';
import { OrbitControls } from '@react-three/drei' import { OrbitControls } from '@react-three/drei'
@ -205,7 +205,7 @@ export const VRMModelCanvas = () => {
export default VRMModelCanvas; export default VRMModelCanvas;
``` ```
```tsx:src/App.tsx ```ts:src/App.tsx
import React from 'react' import React from 'react'
import VRMModelCanvas from './pages/vrm' import VRMModelCanvas from './pages/vrm'
import ScreenTimeCanvas from './pages/time' import ScreenTimeCanvas from './pages/time'