feat: 使用pnpm进行包管理
This commit is contained in:
9
packages/mars3d/src/css/main.css
Normal file
9
packages/mars3d/src/css/main.css
Normal file
@ -0,0 +1,9 @@
|
||||
html,
|
||||
body,
|
||||
#mars3dContainer {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
11
packages/mars3d/src/index.ts
Normal file
11
packages/mars3d/src/index.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import * as mars3d from 'mars3d';
|
||||
import './css/main.css';
|
||||
import 'mars3d/dist/mars3d.css';
|
||||
/**
|
||||
*
|
||||
* import * as mars3d from 'mars3d';
|
||||
* const map = new mars3d.Map('mars3dContainer', {});
|
||||
*
|
||||
*
|
||||
*/
|
||||
const map = new mars3d.Map('mars3dContainer', {});
|
Reference in New Issue
Block a user