@giro3d/piero 25.10.0-beta.16 → 25.10.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -7
- package/dist/index.cjs.js +8 -8
- package/dist/index.es.js +363 -316
- package/package.json +1 -5
- package/LICENSE +0 -9
package/README.md
CHANGED
|
@@ -49,7 +49,6 @@ And an `index.ts` file:
|
|
|
49
49
|
```ts
|
|
50
50
|
// index.ts
|
|
51
51
|
import { createPieroApp } from '@giro3d/piero';
|
|
52
|
-
import '@giro3d/piero/piero.css';
|
|
53
52
|
|
|
54
53
|
import configuration from './config';
|
|
55
54
|
|
|
@@ -60,8 +59,6 @@ createPieroApp({
|
|
|
60
59
|
});
|
|
61
60
|
```
|
|
62
61
|
|
|
63
|
-
Note that you have to import the CSS file from Piero.
|
|
64
|
-
|
|
65
62
|
Create the `config.ts` file in the same folder as `index.ts`, and fill it with your configuration (you can use the [sample configuration](https://gitlab.com/giro3d/piero/-/blob/main/config.ts.sample) as a starting point).
|
|
66
63
|
|
|
67
64
|
Bundle your application and run it. For example with Vite:
|
|
@@ -81,7 +78,6 @@ Alternatively, you can pass a URL to a remote JSON configuration
|
|
|
81
78
|
```ts
|
|
82
79
|
// index.ts
|
|
83
80
|
import { createPieroApp } from '@giro3d/piero';
|
|
84
|
-
import '@giro3d/piero/piero.css';
|
|
85
81
|
|
|
86
82
|
createPieroApp({
|
|
87
83
|
container: '#app',
|
|
@@ -97,7 +93,6 @@ To deploy your app, update the `baseUrl` to be the URL from which the app is ser
|
|
|
97
93
|
```ts
|
|
98
94
|
// index.ts
|
|
99
95
|
import { createPieroApp } from '@giro3d/piero';
|
|
100
|
-
import '@giro3d/piero/piero.css';
|
|
101
96
|
|
|
102
97
|
createPieroApp({
|
|
103
98
|
container: '#app',
|
|
@@ -112,8 +107,7 @@ You can register your own modules (classes that implement the `Module` interface
|
|
|
112
107
|
|
|
113
108
|
```ts
|
|
114
109
|
// index.ts
|
|
115
|
-
import { createPieroApp, Module
|
|
116
|
-
import '@giro3d/piero/piero.css';
|
|
110
|
+
import { createPieroApp, Module } from '@giro3d/piero';
|
|
117
111
|
|
|
118
112
|
class MyCustomModule implements Module {
|
|
119
113
|
name = 'A custom module';
|