* 处理精灵帧资源 * @param {Object} data 精灵帧数据 * @param {string} index 索引 * @param {string} key 键名
(data, index, key)
| 490 | |
| 491 | /** |
| 492 | * 解析数据对象(测试兼容:默认会 resolve __id__) |
| 493 | */ |
| 494 | async revealData(jsonObject) { |
| 495 | if (!jsonObject || typeof jsonObject !== 'object') return jsonObject; |
| 496 | |
| 497 | if (Array.isArray(jsonObject)) { |
| 498 | return this.restoreCompressedData(jsonObject); |
| 499 | } |
| 500 | |
| 501 | this.decodeUuids(jsonObject); |
| 502 | return jsonObject; |
| 503 | }, |
| 504 | |
| 505 | isCompressedFormat(data) { |
| 506 | if (!Array.isArray(data) || data.length < 2) return false; |
nothing calls this directly
no outgoing calls
no test coverage detected