Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Vite integration #359

Merged
merged 6 commits into from
Apr 11, 2024
Merged
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
1 change: 0 additions & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ module.exports = {
"error",
"ignorePackages",
{
js: "never",
ts: "never",
},
],
Expand Down
59 changes: 59 additions & 0 deletions examples/AngleMeasurement/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<title>Angle Measurement</title>
<style>
.ifcjs-dimension-label {
background-color: black;
font-family: sans-serif;
color: white;
padding: 8px;
border-radius: 8px;
pointer-events: all;
transition: background-color 200ms ease-in-out;
}

.ifcjs-dimension-label:hover {
background-color: grey;
}

.ifcjs-dimension-preview {
pointer-events: none;
background-color: #ffffff;
width: 2rem;
height: 2rem;
opacity: 0.3;
padding: 8px;
border-radius: 100%;
}

body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/angleMeasurement.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BdKNJBVT.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
59 changes: 59 additions & 0 deletions examples/AreaMeasurement/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<title>Area Measurement</title>
<style>
.ifcjs-dimension-label {
background-color: black;
font-family: sans-serif;
color: white;
padding: 8px;
border-radius: 8px;
pointer-events: all;
transition: background-color 200ms ease-in-out;
}

.ifcjs-dimension-label:hover {
background-color: grey;
}

.ifcjs-dimension-preview {
pointer-events: none;
background-color: #ffffff;
width: 2rem;
height: 2rem;
opacity: 0.3;
padding: 8px;
border-radius: 100%;
}

body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/areaMeasurement.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BdKNJBVT.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
35 changes: 35 additions & 0 deletions examples/Civil3DNavigator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<title>Civil 3D Navigator</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/civil3DNavigator.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BdKNJBVT.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
37 changes: 37 additions & 0 deletions examples/CivilCrossSectionNavigator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<title>Civil Cross Section Navigator</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/civilCrossSectionNavigator.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BdKNJBVT.js">
<link rel="modulepreload" crossorigin href="../assets/index-CuWXavck.js">
<link rel="modulepreload" crossorigin href="../assets/index-CfEhS6g-.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
37 changes: 37 additions & 0 deletions examples/CivilPlanNavigator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico" />
<title>Civil Plan Navigator</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/civilPlanNavigator.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BdKNJBVT.js">
<link rel="modulepreload" crossorigin href="../assets/index-CuWXavck.js">
<link rel="modulepreload" crossorigin href="../assets/index-CfEhS6g-.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
34 changes: 34 additions & 0 deletions examples/CloudStorage/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<title>Cloud Storage</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/cloudStorage.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/index-CGzn00vr.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
35 changes: 35 additions & 0 deletions examples/DXFExporter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<title>DXF Exporter</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/dXFExporter.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/stats.min-BdKNJBVT.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
35 changes: 35 additions & 0 deletions examples/DrawManager/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="icon" type="image/x-icon" href="../assets/favicon-Bu7R27Em.ico">
<title>Tools Component</title>
<style>
body {
margin: 0;
padding: 0;
}

.full-screen {
width: 100vw;
height: 100vh;
position: relative;
overflow: hidden;
}
</style>
<script type="module" crossorigin src="../assets/drawManager.js"></script>
<link rel="modulepreload" crossorigin href="../assets/index-CizoHJPb.js">
<link rel="modulepreload" crossorigin href="../assets/index-Bu9hD4ev.js">
<link rel="stylesheet" crossorigin href="../assets/index-IPM0cBIP.css">
</head>

<body>
<div class="full-screen" id="container"></div>
</body>

</html>
Expand Down
Loading