@babylonjs/viewer 5.32.1 → 5.32.2
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.
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
export interface ITemplateConfiguration {
|
|
5
5
|
/**
|
|
6
6
|
* can be either the id of the template's html element or a URL.
|
|
7
|
-
* See - https://doc.babylonjs.com/
|
|
7
|
+
* See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html
|
|
8
8
|
*/
|
|
9
9
|
location?: string;
|
|
10
10
|
/**
|
|
11
11
|
* If no location is provided you can provide here the raw html of this template.
|
|
12
|
-
* See https://doc.babylonjs.com/
|
|
12
|
+
* See https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html
|
|
13
13
|
*/
|
|
14
14
|
html?: string;
|
|
15
15
|
id?: string;
|
|
@@ -24,7 +24,7 @@ export interface ITemplateConfiguration {
|
|
|
24
24
|
* event name is the key. the value can either be a boolean (attach to the parent element)
|
|
25
25
|
* or a map of html id elements.
|
|
26
26
|
*
|
|
27
|
-
* See - https://doc.babylonjs.com/
|
|
27
|
+
* See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#event-binding
|
|
28
28
|
*/
|
|
29
29
|
events?: {
|
|
30
30
|
pointerdown?: boolean | {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/templateConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * A single template configuration object\r\n */\r\nexport interface ITemplateConfiguration {\r\n /**\r\n * can be either the id of the template's html element or a URL.\r\n * See - https://doc.babylonjs.com/
|
|
1
|
+
{"version":3,"file":"templateConfiguration.js","sourceRoot":"","sources":["../../../../../../tools/viewer/src/configuration/interfaces/templateConfiguration.ts"],"names":[],"mappings":"","sourcesContent":["/**\r\n * A single template configuration object\r\n */\r\nexport interface ITemplateConfiguration {\r\n /**\r\n * can be either the id of the template's html element or a URL.\r\n * See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html\r\n */\r\n location?: string; // #template-id OR http://example.com/loading.html\r\n /**\r\n * If no location is provided you can provide here the raw html of this template.\r\n * See https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#location-vs-html\r\n */\r\n html?: string; // raw html string\r\n id?: string;\r\n /**\r\n * Parameters that will be delivered to the template and will render it accordingly.\r\n */\r\n params?: { [key: string]: string | number | boolean | object };\r\n /**\r\n * Events to attach to this template.\r\n * event name is the key. the value can either be a boolean (attach to the parent element)\r\n * or a map of html id elements.\r\n *\r\n * See - https://doc.babylonjs.com/features/featuresDeepDive/babylonViewer/viewerTemplatingSystem#event-binding\r\n */\r\n events?: {\r\n // pointer events\r\n pointerdown?: boolean | { [id: string]: boolean };\r\n pointerup?: boolean | { [id: string]: boolean };\r\n pointermove?: boolean | { [id: string]: boolean };\r\n pointerover?: boolean | { [id: string]: boolean };\r\n pointerout?: boolean | { [id: string]: boolean };\r\n pointerenter?: boolean | { [id: string]: boolean };\r\n pointerleave?: boolean | { [id: string]: boolean };\r\n pointercancel?: boolean | { [id: string]: boolean };\r\n //click, just in case\r\n click?: boolean | { [id: string]: boolean };\r\n // drag and drop\r\n dragstart?: boolean | { [id: string]: boolean };\r\n drop?: boolean | { [id: string]: boolean };\r\n\r\n [key: string]: boolean | { [id: string]: boolean } | undefined;\r\n };\r\n}\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/viewer",
|
|
3
|
-
"version": "5.32.
|
|
3
|
+
"version": "5.32.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"module": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"prepublishOnly": "build-tools -c prepare-es6-build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@babylonjs/core": "^5.32.
|
|
23
|
-
"@babylonjs/loaders": "^5.32.
|
|
24
|
-
"babylonjs-gltf2interface": "^5.32.
|
|
25
|
-
"babylonjs-viewer-assets": "^5.32.
|
|
22
|
+
"@babylonjs/core": "^5.32.2",
|
|
23
|
+
"@babylonjs/loaders": "^5.32.2",
|
|
24
|
+
"babylonjs-gltf2interface": "^5.32.2",
|
|
25
|
+
"babylonjs-viewer-assets": "^5.32.2",
|
|
26
26
|
"deepmerge": "~4.2.2",
|
|
27
27
|
"handlebars": "~4.7.7",
|
|
28
28
|
"pepjs": "~0.5.3",
|
package/readme.md
CHANGED