Skip to content

Commit

Permalink
Merge branch 'dev' into save-annotations-to-file
Browse files Browse the repository at this point in the history
  • Loading branch information
gautegf committed Oct 20, 2025
2 parents 527a9af + 4af9107 commit ecb7ff5
Show file tree
Hide file tree
Showing 14 changed files with 1,938 additions and 500 deletions.
9 changes: 9 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'cypress'

export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
// implement node event listeners here
}
}
})
17 changes: 17 additions & 0 deletions cypress/e2e/demo.cy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// This is demo test
describe('demo test', () => {
it('passes', () => {
cy.visit('http://localhost:5173/#')
cy.contains('Molloy Explorer')
cy.contains('Repeat').click()
})
})

describe('demo test 2', () => {
it('passes', () => {
cy.visit('http://localhost:5173/#')
cy.get(
'#elevation_gradient_scheme_selection span:nth-child(1) rect'
).click()
})
})
5 changes: 5 additions & 0 deletions cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
25 changes: 25 additions & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// https://on.cypress.io/custom-commands
// ***********************************************
//
//
// -- This is a parent command --
// Cypress.Commands.add('login', (email, password) => { ... })
//
//
// -- This is a child command --
// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
//
//
// -- This is a dual command --
// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
//
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
17 changes: 17 additions & 0 deletions cypress/support/e2e.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// ***********************************************************
// This example support/e2e.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or turn off
// automatically serving support files with the
// 'supportFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/configuration
// ***********************************************************

// Import commands.js using ES2015 syntax:
import './commands'
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<link
rel="stylesheet"
type="text/css"
href="src/coordinateShowing/coordinateShowing.css"
href="src/CoordinateShowing/coordinateShowing.css"
/>
<link
rel="stylesheet"
Expand All @@ -54,7 +54,6 @@
<script src="/build/potree/potree.js"></script>
<script src="/libs/plasio/js/laslaz.js"></script>
<script src="/libs/three.js/build/three.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.7.6/proj4.js"></script>
<script src="/libs/Cesium/Cesium.js"></script>

<div
Expand All @@ -70,9 +69,11 @@
>
<div id="potree_render_area">
<div id="cesiumContainer"></div>
<div id="canvasContainer">
<canvas id="elevationCanvas" width="200" height="30"></canvas>
<canvas id="posCanvas" width="200" height="30"></canvas>
<div id="coordinatesContainer">
<p id="coordinatesHeader">Target point:</p>
<p id="latitude">Latitude:</p>
<p id="longitude">Longitude:</p>
<p id="elevation">Elevation:</p>
</div>
</div>
<div id="potree_sidebar_container"></div>
Expand Down
Loading

0 comments on commit ecb7ff5

Please sign in to comment.