Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vim-webgl-component",
"version": "0.3.21",
"version": "0.3.23",
"description": "A demonstration app built on top of the vim-webgl-viewer",
"files": [
"dist"
Expand Down Expand Up @@ -58,7 +58,7 @@
"@firefox-devtools/react-contextmenu": "^5.1.1",
"jsx": "^0.9.89",
"re-resizable": "^6.9.9",
"react-complex-tree": "^2.0.0",
"react-complex-tree": "^2.4.6",
"react-tooltip": "^4.2.21",
"stats-js": "^1.0.1",
"tailwindcss-scoped-preflight": "^3.2.8",
Expand Down
2 changes: 1 addition & 1 deletion src/package/bim/bimTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export function BimTree (props: {
)
}}
>
<Tree treeId="tree-bim" rootItem="0" treeLabel="Tree Example" />
<Tree treeId="tree-bim" rootItem="0" />
</ControlledTreeEnvironment>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/package/errors/fileDownloadingError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { MessageBoxProps } from '../panels/messageBox'
import * as style from './errorStyle'
import * as Urls from '../../urls'
import * as Urls from '../urls'
import { isFilePathOrUri } from './errorUtils'
import { fileOpeningError } from './fileOpeningError'

Expand Down
2 changes: 1 addition & 1 deletion src/package/errors/fileLoadingError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { MessageBoxProps } from '../panels/messageBox'
import * as style from './errorStyle'
import * as Urls from '../../urls'
import * as Urls from '../urls'

export function serverFileLoadingError (url: string): MessageBoxProps {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/package/errors/fileOpeningError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { MessageBoxProps } from '../panels/messageBox'
import * as style from './errorStyle'
import * as Urls from '../../urls'
import * as Urls from '../urls'

export function fileOpeningError (url: string): MessageBoxProps {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/package/errors/serverCompatibilityError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { MessageBoxProps } from '../panels/messageBox'
import * as style from './errorStyle'
import * as Urls from '../../urls'
import * as Urls from '../urls'

export function serverCompatibilityError (url: string, localVersion: string, remoteVersion: string): MessageBoxProps {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/package/errors/serverConnectionError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { MessageBoxProps } from '../panels/messageBox'
import * as style from './errorStyle'
import * as Urls from '../../urls'
import * as Urls from '../urls'
import { isLocalUrl } from './errorUtils'

export function serverConnectionError (url: string): MessageBoxProps {
Expand Down
2 changes: 1 addition & 1 deletion src/package/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export * as Webgl from './webgl/webglComponent'
export * as Ultra from './ultra/ultraComponent'
export * as ErrorStyle from './errors/errorStyle'
export * as Errors from './errors/errors'
export * as Urls from '../urls'
export * as Urls from './urls'
export type { MessageBoxProps } from './panels/messageBox'
export * from './container'
3 changes: 3 additions & 0 deletions src/package/urls.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

export const support = 'https://docs.vimaec.com'
export const supportControls = 'https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide'
3 changes: 0 additions & 3 deletions src/urls.ts → src/pages/devUrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ export const residence = 'https://vim.azureedge.net/samples/residence.v1.2.75.vi
// Ask Martin or Simon for the access token
export const residenceWithAccessToken = 'https://saas-api-v2.vimaec.com/api/public/542c2335-992d-4af0-ffd9-08dd0262dd9c/2024-11-11T15:09:43'

export const support = 'https://docs.vimaec.com'
export const supportControls = 'https://docs.vimaec.com/docs/vim-cloud/webgl-navigation-and-controls-guide'

export const notAVim = 'https://vimdevelopment01storage.blob.core.windows.net/samples/not_a_vim.vim'

export const medicalTower = 'https://vim.azureedge.net/samples/Medical_Tower.vim'
2 changes: 1 addition & 1 deletion src/pages/ultra/00_home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useRef } from 'react'
import { useUltra } from './ultraPageUtils'
import { UltraComponentRef } from '../../package/ultra/ultraComponent'
import * as ULTRA from 'vim-ultra-viewer'
import * as Urls from '../../urls'
import * as Urls from '../devUrls'

export function UltraHome () {
const div = useRef<HTMLDivElement>(null)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ultra/04_loadError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useRef } from 'react'
import { useUltra } from './ultraPageUtils'
import { UltraComponentRef } from '../../package/ultra/ultraComponent'
import * as Urls from '../../urls'
import * as Urls from '../devUrls'

export function UltraLoadError () {
const div = useRef<HTMLDivElement>(null)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ultra/05_abortError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useRef } from 'react'
import { useUltra } from './ultraPageUtils'
import { UltraComponentRef } from '../../package/ultra/ultraComponent'
import * as Urls from '../../urls'
import * as Urls from '../devUrls'
export function UltraAbortError () {
const div = useRef<HTMLDivElement>(null)
useUltra(div, (ultra) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ultra/ultraPageUtils.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Vim } from 'vim-ultra-viewer'
import { UltraComponentRef, createUltraComponent } from '../../package/ultra/ultraComponent'
import * as Urls from '../../urls'
import * as Urls from '../devUrls'
import { useRef, useEffect, RefObject } from 'react'

export function useUltra (div: RefObject<HTMLDivElement>, onCreated: (ultra: UltraComponentRef) => void) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/webgl/00_home.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect, useRef } from 'react'
import { createWebglComponent } from '../../package/webgl/webglComponent'
import { THREE } from 'vim-webgl-viewer'
import * as Urls from '../../urls'
import * as Urls from '../devUrls'

export function WebglHome () {
const div = useRef<HTMLDivElement>(null)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/webgl/01_accessToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useEffect, useRef } from 'react'
import { createWebglComponent } from '../../package/webgl/webglComponent'
import { THREE } from 'vim-webgl-viewer'
import { LocalTextBox } from '../localTextBox'
import * as Urls from '../../urls'
import * as Urls from '../devUrls'

export function WebglAccessToken () {
const containerRef = useRef<HTMLDivElement>(null)
Expand Down