vim-web 0.3.44-dev.27 → 0.3.44-dev.28
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 +2 -2
- package/dist/style.css +6 -0
- package/dist/types/core-viewers/ultra/index.d.ts +1 -0
- package/dist/types/react-viewers/ultra/errors/ultraErrors.d.ts +1 -1
- package/dist/types/react-viewers/urls.d.ts +1 -0
- package/dist/vim-web.iife.js +14 -11
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +14 -11
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,11 +11,11 @@ https://www.npmjs.com/package/vim-web
|
|
|
11
11
|
|
|
12
12
|
### WebGL Viewer
|
|
13
13
|
- **[Small - Residence](https://vimaec.github.io/vim-web/webgl)**
|
|
14
|
-
- **[Medium - Medical Tower](https://vimaec.github.io/vim-web/webgl?vim=https://
|
|
14
|
+
- **[Medium - Medical Tower](https://vimaec.github.io/vim-web/webgl?vim=https://storage.cdn.vimaec.com/samples/Medical_Tower.vim)**
|
|
15
15
|
|
|
16
16
|
### Ultra Viewer
|
|
17
17
|
- **[Small - Residence](https://vimaec.github.io/vim-web/ultra)**
|
|
18
|
-
- **[Medium - Medical Tower](https://vimaec.github.io/vim-web/ultra?vim=https://
|
|
18
|
+
- **[Medium - Medical Tower](https://vimaec.github.io/vim-web/ultra?vim=https://storage.cdn.vimaec.com/samples/Medical_Tower.vim)**
|
|
19
19
|
|
|
20
20
|
Find detailed camera controls here: [Camera Controls](https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide).
|
|
21
21
|
|
package/dist/style.css
CHANGED
|
@@ -733,6 +733,9 @@ video:where(.vim-component,.vim-component *) {
|
|
|
733
733
|
.vc-top-1 {
|
|
734
734
|
top: 0.25rem;
|
|
735
735
|
}
|
|
736
|
+
.vc-top-10 {
|
|
737
|
+
top: 2.5rem;
|
|
738
|
+
}
|
|
736
739
|
.vc-top-4 {
|
|
737
740
|
top: 1rem;
|
|
738
741
|
}
|
|
@@ -982,6 +985,9 @@ video:where(.vim-component,.vim-component *) {
|
|
|
982
985
|
.vc-justify-evenly {
|
|
983
986
|
justify-content: space-evenly;
|
|
984
987
|
}
|
|
988
|
+
.vc-gap-1 {
|
|
989
|
+
gap: 0.25rem;
|
|
990
|
+
}
|
|
985
991
|
.vc-gap-2 {
|
|
986
992
|
gap: 0.5rem;
|
|
987
993
|
}
|
|
@@ -7,3 +7,4 @@ export * from './viewer/color';
|
|
|
7
7
|
export type { ILoadRequest, VimRequestErrorType } from './viewer/loadRequest';
|
|
8
8
|
export type { ClientState, ConnectionSettings } from './viewer/socketClient';
|
|
9
9
|
export type { VimSource } from './viewer/rpcSafeClient';
|
|
10
|
+
export type { SectionBoxState } from './viewer/marshal';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as Ultra from '../../../core-viewers/ultra';
|
|
2
2
|
export declare function getErrorMessage(state: Ultra.ClientState): import("../..").MessageBoxProps;
|
|
3
|
-
export declare function getRequestErrorMessage(source: Ultra.VimSource, error: Ultra.VimRequestErrorType): import("../..").MessageBoxProps;
|
|
3
|
+
export declare function getRequestErrorMessage(serverUrl: string, source: Ultra.VimSource, error: Ultra.VimRequestErrorType): import("../..").MessageBoxProps;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare const support = "https://docs.vimaec.com";
|
|
2
|
+
export declare const supportUltra = "https://docs.vimaec.com/docs/vim-for-windows/configuring-vim-ultra";
|
|
2
3
|
export declare const supportControls = "https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide";
|
package/dist/vim-web.iife.js
CHANGED
|
@@ -61804,9 +61804,9 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
61804
61804
|
}
|
|
61805
61805
|
class SectionBox {
|
|
61806
61806
|
constructor(rpc) {
|
|
61807
|
-
__publicField(this, "_visible",
|
|
61808
|
-
__publicField(this, "_interactible",
|
|
61809
|
-
__publicField(this, "_clip",
|
|
61807
|
+
__publicField(this, "_visible", false);
|
|
61808
|
+
__publicField(this, "_interactible", false);
|
|
61809
|
+
__publicField(this, "_clip", false);
|
|
61810
61810
|
__publicField(this, "_box", new Box3());
|
|
61811
61811
|
__publicField(this, "_rpc");
|
|
61812
61812
|
__publicField(this, "_interval");
|
|
@@ -75872,13 +75872,14 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
75872
75872
|
const bottomOffset = useStateRef("1");
|
|
75873
75873
|
const boxRef = React2.useRef(adapter.getBox());
|
|
75874
75874
|
React2.useEffect(() => {
|
|
75875
|
-
adapter.setClip(true);
|
|
75876
75875
|
adapter.setVisible(false);
|
|
75876
|
+
adapter.setClip(false);
|
|
75877
75877
|
return adapter.onSelectionChanged.sub(() => {
|
|
75878
75878
|
if (auto.get() && enable.get()) sectionSelection.call();
|
|
75879
75879
|
});
|
|
75880
75880
|
}, []);
|
|
75881
75881
|
enable.useOnChange((v) => {
|
|
75882
|
+
adapter.setClip(v);
|
|
75882
75883
|
visible2.set(v);
|
|
75883
75884
|
showOffsetPanel.set(false);
|
|
75884
75885
|
if (v && auto.get()) {
|
|
@@ -76263,11 +76264,13 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76263
76264
|
vcRoboto
|
|
76264
76265
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
76265
76266
|
const support = "https://docs.vimaec.com";
|
|
76267
|
+
const supportUltra = "https://docs.vimaec.com/docs/vim-for-windows/configuring-vim-ultra";
|
|
76266
76268
|
const supportControls = "https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide";
|
|
76267
76269
|
const urls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
76268
76270
|
__proto__: null,
|
|
76269
76271
|
support,
|
|
76270
|
-
supportControls
|
|
76272
|
+
supportControls,
|
|
76273
|
+
supportUltra
|
|
76271
76274
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
76272
76275
|
function fileOpeningError(url) {
|
|
76273
76276
|
return {
|
|
@@ -76313,12 +76316,12 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76313
76316
|
}
|
|
76314
76317
|
return {
|
|
76315
76318
|
title: "File Downloading Error",
|
|
76316
|
-
body: body$4(
|
|
76319
|
+
body: body$4(url, authToken, server),
|
|
76317
76320
|
footer: footer(support),
|
|
76318
76321
|
canClose: false
|
|
76319
76322
|
};
|
|
76320
76323
|
}
|
|
76321
|
-
function body$4(url,
|
|
76324
|
+
function body$4(url, authToken, server) {
|
|
76322
76325
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: vcRoboto, children: [
|
|
76323
76326
|
mainText(/* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76324
76327
|
"Oops, it appears that there’s an ",
|
|
@@ -76383,7 +76386,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76383
76386
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76384
76387
|
"Ensure that VIM Ultra",
|
|
76385
76388
|
" ",
|
|
76386
|
-
link(
|
|
76389
|
+
link(supportUltra, "process is running"),
|
|
76387
76390
|
" ",
|
|
76388
76391
|
"at ",
|
|
76389
76392
|
detailText(url)
|
|
@@ -76465,7 +76468,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76465
76468
|
return serverStreamError(state.serverUrl);
|
|
76466
76469
|
}
|
|
76467
76470
|
}
|
|
76468
|
-
function getRequestErrorMessage(source, error) {
|
|
76471
|
+
function getRequestErrorMessage(serverUrl, source, error) {
|
|
76469
76472
|
console.log(error);
|
|
76470
76473
|
switch (error) {
|
|
76471
76474
|
case "loadingError":
|
|
@@ -76473,7 +76476,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76473
76476
|
case "downloadingError":
|
|
76474
76477
|
case "unknown":
|
|
76475
76478
|
case "cancelled":
|
|
76476
|
-
return serverFileDownloadingError(source.url);
|
|
76479
|
+
return serverFileDownloadingError(source.url, source.authToken, serverUrl);
|
|
76477
76480
|
case "serverDisconnected":
|
|
76478
76481
|
return serverConnectionError(source.url);
|
|
76479
76482
|
}
|
|
@@ -76619,7 +76622,7 @@ Averrage Date/Second ${avgDataRatePS} kb
|
|
|
76619
76622
|
void request2.getResult().then(
|
|
76620
76623
|
(result) => {
|
|
76621
76624
|
if (result.isError) {
|
|
76622
|
-
modal.message(getRequestErrorMessage(source, result.error));
|
|
76625
|
+
modal.message(getRequestErrorMessage(viewer.serverUrl, source, result.error));
|
|
76623
76626
|
return;
|
|
76624
76627
|
}
|
|
76625
76628
|
if (result.isSuccess) {
|