iflow-engine-base 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
#
|
|
1
|
+
# iflow-engine-base
|
|
2
|
+
|
|
3
|
+
BIM Engine SDK for Vue2, Vue3, React and HTML
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install iflow-engine-base
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Import the SDK
|
|
14
|
+
|
|
15
|
+
```javascript
|
|
16
|
+
import { createEngine } from 'iflow-engine-base';
|
|
17
|
+
// CSS文件会自动引入,无需手动导入
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### Create Engine Instance
|
|
21
|
+
|
|
22
|
+
```javascript
|
|
23
|
+
const engine = createEngine({
|
|
24
|
+
container: document.getElementById('app'),
|
|
25
|
+
// ... other options
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Important Notes
|
|
30
|
+
|
|
31
|
+
- CSS样式已自动包含,无需手动导入
|
|
32
|
+
- 该SDK依赖 `three` 和 `vue`,确保项目中已安装这些依赖
|
|
2
33
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as E from "three";
|
|
2
|
-
import {
|
|
2
|
+
import { Controls as Na, Vector3 as Z, MOUSE as fn, TOUCH as cn, Quaternion as ki, Spherical as fr, Vector2 as ce, Ray as Js, Plane as Ui, MathUtils as Lo, Mesh as Qs, OrthographicCamera as Bo, BufferGeometry as Fi, Float32BufferAttribute as dr, ShaderMaterial as et, UniformsUtils as yt, WebGLRenderTarget as dn, HalfFloatType as pn, NoBlending as pt, Clock as Oa, Color as je, Matrix4 as Me, DataTexture as Io, RepeatWrapping as Zt, MeshNormalMaterial as Ua, AddEquation as Hn, ZeroFactor as Gn, DstAlphaFactor as pr, DstColorFactor as mr, CustomBlending as Fa, DepthTexture as Va, DepthStencilFormat as ja, UnsignedInt248Type as Ha, NearestFilter as Ri, RGBAFormat as Ga, UnsignedByteType as Wa, AdditiveBlending as Xa, MeshBasicMaterial as hn, RawShaderMaterial as qa, ColorManagement as Li, SRGBTransfer as Ka, LinearToneMapping as Za, ReinhardToneMapping as Ya, CineonToneMapping as $a, ACESFilmicToneMapping as Ja, AgXToneMapping as Qa, NeutralToneMapping as el, CustomToneMapping as tl, Loader as zo, FileLoader as Bi, SRGBColorSpace as kt, LinearSRGBColorSpace as lt, BufferAttribute as at, InterleavedBuffer as No, InterleavedBufferAttribute as Oo, TrianglesDrawMode as nl, TriangleFanDrawMode as ks, TriangleStripDrawMode as Uo, LoaderUtils as Bn, MeshPhysicalMaterial as ht, SpotLight as il, PointLight as sl, DirectionalLight as rl, InstancedMesh as ol, InstancedBufferAttribute as al, Object3D as Fo, TextureLoader as ll, ImageBitmapLoader as cl, LinearMipmapLinearFilter as Vo, NearestMipmapLinearFilter as hl, LinearMipmapNearestFilter as ul, NearestMipmapNearestFilter as fl, LinearFilter as Rs, MirroredRepeatWrapping as dl, ClampToEdgeWrapping as pl, PointsMaterial as ml, Material as Zi, LineBasicMaterial as gl, MeshStandardMaterial as jo, DoubleSide as Vi, PropertyBinding as yl, SkinnedMesh as _l, LineSegments as wl, Line as xl, LineLoop as bl, Points as vl, Group as Yi, PerspectiveCamera as Sl, Skeleton as Tl, AnimationClip as El, Bone as Al, InterpolateDiscrete as Ml, InterpolateLinear as Ho, Texture as gr, VectorKeyframeTrack as yr, NumberKeyframeTrack as _r, QuaternionKeyframeTrack as wr, FrontSide as Ls, Interpolant as Cl, Box3 as nt, Sphere as Pl, Line3 as Ze, Triangle as Oe, BackSide as Dl, REVISION as Go, Vector4 as $t, Matrix3 as kl } from "three";
|
|
3
3
|
class Rl {
|
|
4
4
|
engine;
|
|
5
5
|
scene;
|