diff --git a/packages/cientos/src/core/OrbitControls.vue b/packages/cientos/src/core/OrbitControls.vue
index 66cea046e..ace4e672d 100644
--- a/packages/cientos/src/core/OrbitControls.vue
+++ b/packages/cientos/src/core/OrbitControls.vue
@@ -1,32 +1,36 @@
-
+
+
+
+
diff --git a/packages/cientos/src/core/useCientos.ts b/packages/cientos/src/core/useCientos.ts
new file mode 100644
index 000000000..6b9888139
--- /dev/null
+++ b/packages/cientos/src/core/useCientos.ts
@@ -0,0 +1,12 @@
+import { inject } from 'vue'
+
+export function useCientos() {
+ const extend =
+ inject<(objects: any) => void>('extend') ||
+ (() => {
+ console.warn('No extend function provided')
+ })
+ return {
+ extend,
+ }
+}
diff --git a/packages/cientos/src/env.d.ts b/packages/cientos/src/env.d.ts
index aafef9509..76ea6141d 100644
--- a/packages/cientos/src/env.d.ts
+++ b/packages/cientos/src/env.d.ts
@@ -1,3 +1,4 @@
+import { App } from 'vue'
///
declare module '*.vue' {
@@ -6,3 +7,14 @@ declare module '*.vue' {
const component: DefineComponent<{}, {}, any>
export default component
}
+
+declare global {
+ // Define the window interface, with type annotations for the properties and methods of the window object
+ interface Window {
+ // Define the location property, with a type of Location
+ __TRES__: {
+ app: App
+ version: string
+ }
+ }
+}
diff --git a/packages/tres/src/App.vue b/packages/tres/src/App.vue
index 2a3a45f2a..14f68994d 100644
--- a/packages/tres/src/App.vue
+++ b/packages/tres/src/App.vue
@@ -1,6 +1,6 @@