vim-web 0.3.44-dev.63 → 0.3.44-dev.64

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.js CHANGED
@@ -76365,11 +76365,11 @@ function allButSelection(viewer, vim) {
76365
76365
  function createViewer(container) {
76366
76366
  const promise = new DeferredPromise();
76367
76367
  const cmpContainer = container instanceof HTMLElement ? createContainer(container) : container ?? createContainer();
76368
- const viewer = Viewer$2.createWithCanvas(cmpContainer.gfx);
76368
+ const core = Viewer$2.createWithCanvas(cmpContainer.gfx);
76369
76369
  const reactRoot = clientExports.createRoot(cmpContainer.ui);
76370
76370
  const attachDispose = (cmp) => {
76371
76371
  cmp.dispose = () => {
76372
- viewer.dispose();
76372
+ core.dispose();
76373
76373
  cmpContainer.dispose();
76374
76374
  reactRoot.unmount();
76375
76375
  };
@@ -76380,7 +76380,7 @@ function createViewer(container) {
76380
76380
  Viewer3,
76381
76381
  {
76382
76382
  container: cmpContainer,
76383
- viewer,
76383
+ core,
76384
76384
  onMount: (cmp) => promise.resolve(attachDispose(cmp))
76385
76385
  }
76386
76386
  )
@@ -76389,21 +76389,21 @@ function createViewer(container) {
76389
76389
  }
76390
76390
  function Viewer3(props) {
76391
76391
  const modal = useRef(null);
76392
- const sectionBox2 = useUltraSectionBox(props.viewer);
76393
- const camera2 = useUltraCamera(props.viewer, sectionBox2);
76392
+ const sectionBox2 = useUltraSectionBox(props.core);
76393
+ const camera2 = useUltraCamera(props.core, sectionBox2);
76394
76394
  const side = useSideState(true, 400);
76395
76395
  const [_, setSelectState] = useState(0);
76396
76396
  const [controlBarCustom, setControlBarCustom] = useState(() => (c) => c);
76397
- const isolation = useUltraIsolation(props.viewer);
76398
- const controlBar = useUltraControlBar(props.viewer, sectionBox2, isolation, camera2, (_2) => _2);
76399
- useViewerInput(props.viewer.inputs, camera2);
76397
+ const isolation = useUltraIsolation(props.core);
76398
+ const controlBar = useUltraControlBar(props.core, sectionBox2, isolation, camera2, (_2) => _2);
76399
+ useViewerInput(props.core.inputs, camera2);
76400
76400
  useEffect(() => {
76401
- props.viewer.onStateChanged.subscribe((state) => updateModal(modal, state));
76402
- props.viewer.selection.onSelectionChanged.subscribe(() => {
76401
+ props.core.onStateChanged.subscribe((state) => updateModal(modal, state));
76402
+ props.core.selection.onSelectionChanged.subscribe(() => {
76403
76403
  setSelectState((i) => (i + 1) % 2);
76404
76404
  });
76405
76405
  props.onMount({
76406
- viewer: props.viewer,
76406
+ core: props.core,
76407
76407
  get modal() {
76408
76408
  return modal.current;
76409
76409
  },
@@ -76415,14 +76415,14 @@ function Viewer3(props) {
76415
76415
  controlBar: {
76416
76416
  customize: (v) => setControlBarCustom(() => v)
76417
76417
  },
76418
- load: patchLoad(props.viewer, modal)
76418
+ load: patchLoad(props.core, modal)
76419
76419
  });
76420
76420
  }, []);
76421
76421
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76422
76422
  /* @__PURE__ */ jsxRuntimeExports.jsx(RestOfScreen, { side, content: () => {
76423
76423
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
76424
76424
  whenTrue(true, /* @__PURE__ */ jsxRuntimeExports.jsx(LogoMemo, {})),
76425
- /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { canvas: props.viewer.viewport.canvas }),
76425
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { canvas: props.core.viewport.canvas }),
76426
76426
  /* @__PURE__ */ jsxRuntimeExports.jsx(
76427
76427
  ControlBar,
76428
76428
  {