@soonspacejs/plugin-clipping-controls 2.13.6 → 2.13.7

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,5 +1,5 @@
1
- # @soonspacejs/plugin-clipping-controls
2
-
3
- > Clipping controls plugin for SoonSpace.js
4
-
5
- Document: [http://www.xwbuilders.com:8800/plugin/clipping-controls.html](http://www.xwbuilders.com:8800/plugin/clipping-controls.html)
1
+ # @soonspacejs/plugin-clipping-controls
2
+
3
+ > Clipping controls plugin for SoonSpace.js
4
+
5
+ Document: [http://www.xwbuilders.com:8800/plugin/clipping-controls.html](http://www.xwbuilders.com:8800/plugin/clipping-controls.html)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-clipping-controls",
3
3
  "pluginName": "ClippingControlsPlugin",
4
- "version": "2.13.6",
4
+ "version": "2.13.7",
5
5
  "description": "Clipping controls plugin for SoonSpace.js",
6
6
  "main": "dist/index.esm.js",
7
7
  "module": "dist/index.esm.js",
@@ -13,8 +13,8 @@
13
13
  ],
14
14
  "author": "xunwei",
15
15
  "license": "UNLICENSED",
16
- "gitHead": "6c1113b3e61e448be7ce9463ed22a75f507d9f67",
16
+ "gitHead": "550040550bf20ec0015982ff1159d0cfe9b35ed3",
17
17
  "peerDependencies": {
18
- "soonspacejs": "2.13.6"
18
+ "soonspacejs": "2.13.7"
19
19
  }
20
20
  }
package/dist/index.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import SoonSpace, { IColor, AxisType, Position, Rotation } from 'soonspacejs';
2
- import type { BaseObject3D, BaseMesh } from 'soonspacejs';
3
- export type ClipPlaneName = AxisType | `-${AxisType}`;
4
- export interface SceneClippingOptions {
5
- axis: AxisType;
6
- clipPoint: number;
7
- isForward?: boolean;
8
- openHelper?: boolean;
9
- }
10
- export interface ModelClippingOptions {
11
- axis: AxisType;
12
- clipPercent: number;
13
- isForward?: boolean;
14
- openHelper?: boolean;
15
- }
16
- export interface ClippingPlaneHelperOptions {
17
- id: string;
18
- width: number;
19
- height: number;
20
- color: IColor;
21
- position: Position;
22
- rotation: Rotation;
23
- }
24
- export default class ClippingControlsPlugin {
25
- private readonly ssp;
26
- scenePlaneHelpers: Record<ClipPlaneName, BaseMesh | null>;
27
- constructor(ssp: SoonSpace);
28
- private addPlaneHelper;
29
- sceneClipping(options: SceneClippingOptions): void;
30
- removeSceneClipping(axis?: AxisType, isForward?: boolean): void;
31
- modelClipping(model: BaseObject3D, options: ModelClippingOptions): void;
32
- removeModelClipping(model: BaseObject3D, axis?: AxisType, isForward?: boolean): void;
33
- }