vim-web 0.6.0-dev.5 → 0.6.0-dev.6
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/vim-web.d.ts +6 -1
- package/dist/vim-web.iife.js +25 -1
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +25 -1
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/dist/vim-web.d.ts
CHANGED
|
@@ -2244,6 +2244,11 @@ interface StateRef<T> {
|
|
|
2244
2244
|
confirm(): void;
|
|
2245
2245
|
onChange: ISimpleEvent<T>;
|
|
2246
2246
|
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Creates a standalone StateRef<T> without React hooks.
|
|
2249
|
+
* Use this when you need observable state outside of React components.
|
|
2250
|
+
*/
|
|
2251
|
+
declare function createState<T>(initial: T): StateRef<T>;
|
|
2247
2252
|
/**
|
|
2248
2253
|
* A callable function reference with middleware support.
|
|
2249
2254
|
* All ref types (sync, async, with/without args) use this single interface.
|
|
@@ -3343,7 +3348,7 @@ declare const IsolationPanel: {
|
|
|
3343
3348
|
type ViewerApi = WebglViewerApi | UltraViewerApi;
|
|
3344
3349
|
|
|
3345
3350
|
declare namespace React {
|
|
3346
|
-
export { React_ContextMenu as ContextMenu, React_ControlBar as ControlBar, React_Errors as Errors, React_Icons as Icons, IsolationPanel, SectionBoxPanel, React_Settings as Settings, React_Ultra as Ultra, React_Webgl as Webgl, createContainer };
|
|
3351
|
+
export { React_ContextMenu as ContextMenu, React_ControlBar as ControlBar, React_Errors as Errors, React_Icons as Icons, IsolationPanel, SectionBoxPanel, React_Settings as Settings, React_Ultra as Ultra, React_Webgl as Webgl, createContainer, createState };
|
|
3347
3352
|
export type { AugmentedElement, BimInfoPanelApi, Container, Data, DataCustomization, DataRender, Entry, FramingApi, FuncRef, GenericBoolEntry, GenericEntryType, GenericNumberEntry, GenericPanelApi, GenericTextEntry, Group, IsolationApi, LoadingBoxProps, MessageBoxProps, ModalApi, ModalProps, ProgressMode, Section, SectionBoxApi, SettingsApi, StateRef, ViewerApi, VisibilityStatus };
|
|
3348
3353
|
}
|
|
3349
3354
|
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -73665,6 +73665,29 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
73665
73665
|
}
|
|
73666
73666
|
return clone;
|
|
73667
73667
|
}
|
|
73668
|
+
function createState(initial) {
|
|
73669
|
+
return new MutableState(initial);
|
|
73670
|
+
}
|
|
73671
|
+
class MutableState {
|
|
73672
|
+
constructor(initial) {
|
|
73673
|
+
__publicField(this, "_value");
|
|
73674
|
+
__publicField(this, "_onChange", new distExports.SimpleEventDispatcher());
|
|
73675
|
+
this._value = initial;
|
|
73676
|
+
}
|
|
73677
|
+
get() {
|
|
73678
|
+
return this._value;
|
|
73679
|
+
}
|
|
73680
|
+
set(value) {
|
|
73681
|
+
if (value === this._value) return;
|
|
73682
|
+
this._value = value;
|
|
73683
|
+
this._onChange.dispatch(value);
|
|
73684
|
+
}
|
|
73685
|
+
confirm() {
|
|
73686
|
+
}
|
|
73687
|
+
get onChange() {
|
|
73688
|
+
return this._onChange.asEvent();
|
|
73689
|
+
}
|
|
73690
|
+
}
|
|
73668
73691
|
function useRefresher() {
|
|
73669
73692
|
const [refresh, setRefresh] = React2.useState(false);
|
|
73670
73693
|
return {
|
|
@@ -76384,7 +76407,8 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76384
76407
|
Settings: index$6,
|
|
76385
76408
|
Ultra: index$4,
|
|
76386
76409
|
Webgl: index$5,
|
|
76387
|
-
createContainer
|
|
76410
|
+
createContainer,
|
|
76411
|
+
createState
|
|
76388
76412
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
76389
76413
|
exports.Core = index$7;
|
|
76390
76414
|
exports.React = index;
|