Skip to content

Commit 31ba8de

Browse files
committed
.
1 parent 5e11043 commit 31ba8de

File tree

638 files changed

+378571
-155
lines changed

Some content is hidden

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

638 files changed

+378571
-155
lines changed

.babelrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
"presets": [["@babel/env", { "modules": false }]]
3+
};

.gitignore

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
.idea
22
.vscode
3-
.DS_Store
43
*.swp
54
*.swo
65
bhojpur.iml
76

7+
.rvmrc
8+
.DS_Store
9+
node_modules
10+
npm-debug.log
11+
package-lock.json
12+
dist/index.d.ts
13+
dist/LICENSE.md
14+
dist/package.json
15+
dist/README.md
16+
tmp
817
test/tmp/
918

1019
my save path/

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# Bhojpur Render - Model Processing Engine
22

3-
The Bhojpur Render is a high performance 2D/3D graphic rendering engine applied within the [Bhojpur.NET Platform](https://github.com/bhojpur/platform) for delivery of collaborative and distributed applications or services. It features `client-side` and `server-side` framework for `desktop`, `web`, and `mobile` application development.
3+
The `Bhojpur Render` is a high performance 2D/3D graphic rendering engine applied within the [Bhojpur.NET Platform](https://github.com/bhojpur/platform) for delivery of collaborative and distributed applications or services. It features `client-side` and `server-side` framework for `desktop`, `web`, and `mobile` application development.
44

55
## Key Features
66

77
This rendering framework provides the following capabilities
88

99
- client-side rendering library for desktop applications (e.g., macOS, Linux, Windows)
10-
- server-side rendering library for web-based delivery
10+
- client-side 3D Model Editor for web using a Javascript engine
11+
- server-side rendering library for web-based applications
1112

1213
## Pre-requisites
1314

Taskfile.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,20 @@ tasks:
8383
cmds:
8484
- guiutl release -os ios -appID net.bhojpur.render -appVersion 1.0 -appBuild 1
8585

86-
run-web-server:
87-
desc: Run the web server application from source code
86+
run-web2d-gopher:
87+
desc: Run the web server gopher application from source code
8888
cmds:
89-
- GOFLAGS=-mod=mod go run server.go
89+
- cd pkg/webui/bhojpur; GOFLAGS=-mod=mod go run ../../../server.go wasm
9090

91-
run-web-client:
92-
desc: Run the web client application from source code
91+
run-web2d-wasm:
92+
desc: Run the web server wasm application from source code
9393
cmds:
94-
- GOFLAGS=-mod=mod go run client.go
94+
- cd pkg/webui/wasm; GOFLAGS=-mod=mod go run ../../../server.go wasm
95+
96+
run-web3d-editor:
97+
desc: Run the web server wasm application from source code
98+
cmds:
99+
- cd editor; GOFLAGS=-mod=mod go run ../server.go wasm
95100

96101
run-mobile:
97102
desc: Run the mobile client application on emulator

editor/config.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"version":"0.6",
3+
"server":"fileserver/",
4+
"resources":"fileserver/files/",
5+
"proxy":"@/proxy.php?url=",
6+
"plugins":"js/plugins",
7+
"nocache": false,
8+
"scene_url":"scene.json"
9+
}

editor/css/drive.css

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.drive-info {
2+
font-size: 1.4em;
3+
padding: 20px;
4+
}
5+
6+
.drive-info h2 {
7+
color: white;
8+
}
9+
10+
.drive-info h2 button {
11+
font-size: 1em;
12+
margin-left: 20px;
13+
}
14+
15+
.drive-info .unit-item {
16+
width: 100%;
17+
background-color: #368;
18+
border-radius: 8px;
19+
margin: 10px;
20+
padding: 0.4em;
21+
cursor: pointer;
22+
}
23+
24+
.drive-info .unit-item .title {
25+
color: white;
26+
font-size: 1.4em;
27+
width: 40%;
28+
display: inline-block;
29+
overflow: hidden;
30+
}
31+
32+
.drive-info .unit-item .info {
33+
color: #FEFEFE;
34+
background-color: #222;
35+
padding: 2px 10px ;
36+
margin-left: 10px;
37+
border-radius: 4px;
38+
}
39+
40+
ul.file-list li.file-item span.progress {
41+
position: absolute;
42+
top: 20px;
43+
left: 0;
44+
width: 100%;
45+
height: 0%;
46+
background-color: #AEF;
47+
display: block;
48+
}
49+
50+
.resources-panel .unit {
51+
font-size: 1.3em;
52+
background-color: #1d1d1d;
53+
color: #93b3bd !important;
54+
border-top: 2px solid black;
55+
}
56+
57+
.resources-panel .selected .unit {
58+
background-color: #2d2d2d;
59+
}
+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
/*
2+
* CSS Styles that are needed by jScrollPane for it to operate correctly.
3+
*
4+
* Include this stylesheet in your site or copy and paste the styles below into your stylesheet - jScrollPane
5+
* may not operate correctly without them.
6+
*/
7+
8+
.jspContainer
9+
{
10+
overflow: hidden;
11+
position: relative;
12+
}
13+
14+
.jspPane
15+
{
16+
position: absolute;
17+
}
18+
19+
.jspVerticalBar
20+
{
21+
position: absolute;
22+
top: 0;
23+
right: 0;
24+
width: 16px;
25+
height: 100%;
26+
/*background: red;*/
27+
}
28+
29+
.jspHorizontalBar
30+
{
31+
position: absolute;
32+
bottom: 0;
33+
left: 0;
34+
width: 100%;
35+
height: 16px;
36+
/*background: red;*/
37+
}
38+
39+
.jspVerticalBar *,
40+
.jspHorizontalBar *
41+
{
42+
margin: 0;
43+
padding: 0;
44+
}
45+
46+
.jspCap
47+
{
48+
display: none;
49+
}
50+
51+
.jspHorizontalBar .jspCap
52+
{
53+
float: left;
54+
}
55+
56+
.jspTrack
57+
{
58+
background: #333;
59+
position: relative;
60+
}
61+
62+
.jspDrag
63+
{
64+
background: #89A;
65+
position: relative;
66+
top: 0;
67+
left: 0;
68+
cursor: pointer;
69+
margin-left: 2px;
70+
margin-right: 2px;
71+
}
72+
73+
.jspHorizontalBar .jspTrack,
74+
.jspHorizontalBar .jspDrag
75+
{
76+
float: left;
77+
height: 100%;
78+
}
79+
80+
.jspArrow
81+
{
82+
background: #50506d;
83+
text-indent: -20000px;
84+
display: block;
85+
cursor: pointer;
86+
}
87+
88+
.jspArrow.jspDisabled
89+
{
90+
cursor: default;
91+
background: #80808d;
92+
}
93+
94+
.jspVerticalBar .jspArrow
95+
{
96+
height: 16px;
97+
}
98+
99+
.jspHorizontalBar .jspArrow
100+
{
101+
width: 16px;
102+
float: left;
103+
height: 100%;
104+
}
105+
106+
.jspVerticalBar .jspArrow:focus
107+
{
108+
outline: none;
109+
}
110+
111+
.jspCorner
112+
{
113+
background: #eeeef4;
114+
float: left;
115+
height: 100%;
116+
}
117+
118+
/* Yuk! CSS Hack for IE6 3 pixel bug :( */
119+
* html .jspCorner
120+
{
121+
margin: 0 -3px 0 0;
122+
}

0 commit comments

Comments
 (0)