Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
concefly committed Aug 29, 2023
1 parent b021fd5 commit 15d103e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# XR Editor

![workflow](https://github.com/ch-real3d/xr-editor/actions/workflows/ci.yml/badge.svg)
![workflow](https://github.com/AwesomeXR/xr-editor/actions/workflows/ci.yml/badge.svg)

![](https://rshop.tech/gw/assets/upload/202308292230998.png)

Expand All @@ -19,10 +19,10 @@ npm install xr-editor
```jsx
import React, { useContext, useEffect, useRef, useState } from 'react';
import ReactDOM from 'react-dom';
import { IBuiltinWBKeyItem, XREditor, XRProjectModel, XRSetup, UserLevelEnum } from '@xr/editor';
import { IBuiltinWBKeyItem, XREditor, XRProjectModel, XRSetup, UserLevelEnum } from 'xr-editor';
import XRRuntimeStartupManifest from 'xr-editor/esm/XRRuntimeStartup.manifest.json';
import { ExternalImpl, MemoryFS } from 'ah-memory-fs';
import { IndexedDBAdapter } from 'ah-memory-fs-indexed-db';
import XRRuntimeStartupManifest from '@xr/editor/esm/XRRuntimeStartup.manifest.json';

ExternalImpl.ArrayBufferToString = data => new TextDecoder().decode(data);
ExternalImpl.StringToArrayBuffer = data => new TextEncoder().encode(data);
Expand Down Expand Up @@ -55,9 +55,6 @@ export const EntryApp = () => {
const _projModel = new XRProjectModel(mfs, XRRuntimeStartupManifest.js[0], _uploadDist);
await _projModel.reload();

_projModel.setUserLevel(UserLevelEnum.Anonymous); // 游客模式
_projModel.setMetaInfo({ title: '本地项目' });

projectRef.current = _projModel;
setReady(true);
};
Expand Down

0 comments on commit 15d103e

Please sign in to comment.