@galacean/effects-threejs 2.4.1 → 2.4.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.
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime threejs plugin for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v2.4.
|
|
6
|
+
* Version: v2.4.2
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -27418,13 +27418,6 @@ var refCompositions = new Map();
|
|
|
27418
27418
|
* 3.1 版本数据适配
|
|
27419
27419
|
* - 富文本插件名称的适配
|
|
27420
27420
|
*/ function version31Migration(json) {
|
|
27421
|
-
var // 修正老版本数据中,富文本插件名称的问题
|
|
27422
|
-
_json_plugins;
|
|
27423
|
-
(_json_plugins = json.plugins) == null ? void 0 : _json_plugins.forEach(function(plugin, index) {
|
|
27424
|
-
if (plugin === "richtext") {
|
|
27425
|
-
json.plugins[index] = "rich-text";
|
|
27426
|
-
}
|
|
27427
|
-
});
|
|
27428
27421
|
// Custom shape fill 属性位置迁移
|
|
27429
27422
|
for(var _iterator = _create_for_of_iterator_helper_loose(json.components), _step; !(_step = _iterator()).done;){
|
|
27430
27423
|
var component = _step.value;
|
|
@@ -27492,6 +27485,13 @@ function version32Migration(json) {
|
|
|
27492
27485
|
return json;
|
|
27493
27486
|
}
|
|
27494
27487
|
function version33Migration(json) {
|
|
27488
|
+
var // 修正老版本数据中,富文本插件名称的问题
|
|
27489
|
+
_json_plugins;
|
|
27490
|
+
(_json_plugins = json.plugins) == null ? void 0 : _json_plugins.forEach(function(plugin, index) {
|
|
27491
|
+
if (plugin === "richtext") {
|
|
27492
|
+
json.plugins[index] = "rich-text";
|
|
27493
|
+
}
|
|
27494
|
+
});
|
|
27495
27495
|
// 老 shape 数据兼容
|
|
27496
27496
|
for(var _iterator = _create_for_of_iterator_helper_loose(json.items), _step; !(_step = _iterator()).done;){
|
|
27497
27497
|
var item = _step.value;
|
|
@@ -31659,7 +31659,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
|
|
|
31659
31659
|
registerPlugin("particle", ParticleLoader, exports.VFXItem);
|
|
31660
31660
|
registerPlugin("cal", CalculateLoader, exports.VFXItem);
|
|
31661
31661
|
registerPlugin("interact", InteractLoader, exports.VFXItem);
|
|
31662
|
-
var version$1 = "2.4.
|
|
31662
|
+
var version$1 = "2.4.2";
|
|
31663
31663
|
logger.info("Core version: " + version$1 + ".");
|
|
31664
31664
|
|
|
31665
31665
|
var _obj;
|
|
@@ -33261,7 +33261,7 @@ setMaxSpriteMeshItemCount(8);
|
|
|
33261
33261
|
*/ Mesh.create = function(engine, props) {
|
|
33262
33262
|
return new ThreeMesh(engine, props);
|
|
33263
33263
|
};
|
|
33264
|
-
var version = "2.4.
|
|
33264
|
+
var version = "2.4.2";
|
|
33265
33265
|
logger.info("THREEJS plugin version: " + version + ".");
|
|
33266
33266
|
|
|
33267
33267
|
exports.AbstractPlugin = AbstractPlugin;
|