Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cs_vsofpm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
cs_vsofpm
Commits
b567a849
Commit
b567a849
authored
Dec 07, 2023
by
wuhao
🎯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sader
parent
9fac0152
Pipeline
#6250
passed with stages
in 3 minutes and 38 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
202 additions
and
96 deletions
+202
-96
model.glb
public/model.glb
+0
-0
index.jsx
src/components/PointViewer/index.jsx
+35
-0
index.less
src/components/PointViewer/index.less
+34
-0
index.jsx
src/pages/checkhomework/index.jsx
+133
-96
No files found.
public/model.glb
0 → 100644
View file @
b567a849
File added
src/components/PointViewer/index.jsx
0 → 100644
View file @
b567a849
/*
* @Author: wuhao930406 1148547900@qq.com
* @Date: 2023-08-03 11:31:00
* @LastEditors: wuhao930406 1148547900@qq.com
* @LastEditTime: 2023-08-24 14:27:24
* @FilePath: /editor-plus/src/pages/components/GlftBlock/index.jsx
* @Description:
*
* Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
*/
import
{
Gltf
,
OrbitControls
}
from
"@react-three/drei"
;
import
{
Canvas
}
from
"@react-three/fiber"
;
import
"./index.less"
;
function
PointViewer
({
url
})
{
return
(
<
div
className=
"bar-block-component"
>
<
Canvas
style=
{
{
height
:
"600px"
,
width
:
"100%"
}
}
id=
{
"sada"
}
>
<
color
attach=
"background"
args=
{
[
"#333"
]
}
/>
<
ambientLight
intensity=
{
1
}
/>
<
OrbitControls
></
OrbitControls
>
<
pointLight
position=
{
[
10
,
10
,
10
]
}
intensity=
{
1
}
/>
<
Gltf
src=
{
"./model.glb"
}
receiveShadow
castShadow
position=
{
[
0
,
0
,
0
]
}
/>
</
Canvas
>
</
div
>
);
}
export
default
PointViewer
;
src/components/PointViewer/index.less
0 → 100644
View file @
b567a849
.foo-block-element {
border-radius: 5px;
color: #fff;
background-color: #08a9fe;
box-shadow: 0 5px 20px rgba(8,169,254,.1);
}
.bar-block-component {
position: relative;
background-color: #f0f0f0;
box-shadow: 0 5px 20px rgba(192,57,43,.1);
}
.bar-block-component, .foo-block-element {
margin: 10px;
border-radius: 5px;
color: #fff;
}
.bar-block-component .button-remove {
position: absolute;
top: 50%;
right: 0px;
width: 30px;
height: 30px;
padding: 0;
background-color: transparent;
border: none;
transform: translateY(-50%);
color: red;
font-size: 20px;
line-height: 30px;
text-align: center;
}
.bf-content{
height: 80vh !important;
}
\ No newline at end of file
src/pages/checkhomework/index.jsx
View file @
b567a849
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment