@ndmspc/ndmspc-ui 1.4.7 → 1.4.9
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/dist/index.d.ts +14 -2
- package/dist/ndmspc-ui.css +1 -1
- package/dist/ndmspc-ui.es.js +5615 -5145
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1659,7 +1659,7 @@ export declare interface NdmspcPadTab {
|
|
|
1659
1659
|
objects: NdmspcRenderable[];
|
|
1660
1660
|
}
|
|
1661
1661
|
|
|
1662
|
-
export declare function NdmspcPadView({ layout, objects, session, group, sessionId, vertical, leading, trailing, onAction, showActions, storageKey, empty, onClearAll, className, }: NdmspcPadViewProps): JSX.Element;
|
|
1662
|
+
export declare function NdmspcPadView({ layout, objects, session, scenePadId, group, sessionId, vertical, leading, trailing, onAction, showActions, storageKey, empty, onClearAll, className, }: NdmspcPadViewProps): JSX.Element;
|
|
1663
1663
|
|
|
1664
1664
|
export declare interface NdmspcPadViewProps {
|
|
1665
1665
|
/**
|
|
@@ -1671,6 +1671,11 @@ export declare interface NdmspcPadViewProps {
|
|
|
1671
1671
|
objects?: NdmspcRenderable[];
|
|
1672
1672
|
/** Follow this room's stream; without it the view is a plain display. */
|
|
1673
1673
|
session?: NdmspcRoomSession;
|
|
1674
|
+
/**
|
|
1675
|
+
* The 3D scene's pad this view publishes to and exports. The histogram shown in 3D and the one
|
|
1676
|
+
* written to STL are always the same pad.
|
|
1677
|
+
*/
|
|
1678
|
+
scenePadId?: string;
|
|
1674
1679
|
/**
|
|
1675
1680
|
* The tool group whose pads are shown. Each group keeps its own drawings, so a group switch clears
|
|
1676
1681
|
* the view and restores that group's objects rather than adding to the one before (see
|
|
@@ -3066,6 +3071,8 @@ export declare class NdmspcRoomSession {
|
|
|
3066
3071
|
private stats;
|
|
3067
3072
|
/** Last heartbeat the stats were sampled from, and the sample before it. */
|
|
3068
3073
|
private sampledHeartbeat;
|
|
3074
|
+
/** The connection the sampled stats belong to; a change of it drops them (see `sampleStats`). */
|
|
3075
|
+
private lastConnected;
|
|
3069
3076
|
private lastSample;
|
|
3070
3077
|
private started;
|
|
3071
3078
|
private unsubscribe;
|
|
@@ -4219,7 +4226,7 @@ export declare interface NdmspcTourTriggerProps {
|
|
|
4219
4226
|
className?: string;
|
|
4220
4227
|
}
|
|
4221
4228
|
|
|
4222
|
-
export declare function NdmspcTree({ nodes, selectedId, disabled, onNodeClick, onBadgeClick, onToggle, empty, className, }: NdmspcTreeProps): JSX.Element;
|
|
4229
|
+
export declare function NdmspcTree({ nodes, selectedId, disabled, onNodeClick, onBadgeClick, onToggle, empty, controls, className, }: NdmspcTreeProps): JSX.Element;
|
|
4223
4230
|
|
|
4224
4231
|
/** A small label a node carries beside it, and the action a click on that label carries out. */
|
|
4225
4232
|
declare interface NdmspcTreeBadge {
|
|
@@ -4277,6 +4284,11 @@ export declare interface NdmspcTreeProps {
|
|
|
4277
4284
|
onToggle?: (node: NdmspcTreeNode, open: boolean) => void;
|
|
4278
4285
|
/** What to say when there is nothing to draw. */
|
|
4279
4286
|
empty?: ReactNode;
|
|
4287
|
+
/**
|
|
4288
|
+
* Show the expand-all/collapse-all control above the tree. One button that flips: it reads
|
|
4289
|
+
* "Collapse all" once everything with children is open. Default true.
|
|
4290
|
+
*/
|
|
4291
|
+
controls?: boolean;
|
|
4280
4292
|
className?: string;
|
|
4281
4293
|
}
|
|
4282
4294
|
|