@playcanvas/inspector 0.3.0 → 0.4.0
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 +113 -4
- package/package.json +1 -1
- package/src/entity-inspector-script.js +10 -0
- package/src/frame-graph-view.js +40 -9
- package/src/inspector.js +555 -24
- package/src/node-model.js +3 -2
- package/src/perf-capture.js +2034 -0
- package/src/perf-chart.js +3989 -0
- package/src/perf-copy.js +367 -0
- package/src/perf-view.js +1224 -0
- package/src/property-view.js +3 -0
- package/src/styles.js +179 -1
- package/types/entity-inspector-script.d.ts +8 -0
- package/types/frame-graph-view.d.ts +7 -0
- package/types/inspector.d.ts +199 -5
- package/types/perf-capture.d.ts +871 -0
- package/types/perf-chart.d.ts +1407 -0
- package/types/perf-copy.d.ts +61 -0
- package/types/perf-view.d.ts +231 -0
package/src/node-model.js
CHANGED
|
@@ -157,9 +157,10 @@ function componentSection(name, component) {
|
|
|
157
157
|
|
|
158
158
|
const handled = [...SKIP_COMPONENT, ...assetProperties];
|
|
159
159
|
|
|
160
|
-
// layer ids, named from the composition they belong to
|
|
160
|
+
// layer ids, named from the composition they belong to. Other lists called layers, such as the
|
|
161
|
+
// animation layers of an anim component, are shown like any other property
|
|
161
162
|
const layers = /** @type {any} */ (component).layers;
|
|
162
|
-
if (Array.isArray(layers)) {
|
|
163
|
+
if (Array.isArray(layers) && layers.every(id => typeof id === 'number')) {
|
|
163
164
|
const composition = /** @type {any} */ (component).system?.app?.scene?.layers ?? null;
|
|
164
165
|
push(section, 'layers', layersValue(layers, composition));
|
|
165
166
|
handled.push('layers');
|