Skip to content

Commit

Permalink
feat: integrated vite (#359)
Browse files Browse the repository at this point in the history
* chore: changed the builder to vite

* chore: finished vite integration to build examples

* chore: misc changes to validate bundling

* chore: examples redefined
  • Loading branch information
HoyosJuan authored Apr 11, 2024
1 parent da726ad commit 48a20ef
Show file tree
Hide file tree
Showing 237 changed files with 16,496 additions and 8,804 deletions.
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

0 comments on commit 48a20ef

Please sign in to comment.