@galacean/effects-specification 0.0.2 → 1.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Galacean
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,28 +1,22 @@
1
1
  # Galacean Effects JSON definition
2
2
 
3
- ## 环境准备
3
+ ## Environment Setup
4
4
 
5
5
  - Node.js `>= 10.0.0`
6
6
 
7
- ## 本地开发
7
+ ## Development
8
8
 
9
9
  ``` bash
10
- # 1. 安装依赖(首次)
10
+ # 1. Install dependencies (first time)
11
11
  npm install
12
- # 2. 编译
12
+ # 2. Build
13
13
  npm run build
14
14
  ```
15
15
 
16
- ## 测试
16
+ ## Testing
17
17
 
18
18
  ``` bash
19
19
  npm run test
20
20
  ```
21
21
 
22
- > 浏览器打开:http://localhost:9003/test/
23
-
24
- ## 发布
25
-
26
- ``` bash
27
- tnpm publish
28
- ```
22
+ > Open browser and open: http://localhost:9003/test/
package/dist/fallback.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @galacean/effects-specification
3
3
  * Description: Galacean Effects JSON Specification
4
4
  * Author: Ant Group CO., Ltd.
5
- * Version: v0.0.2
5
+ * Version: v1.0.1
6
6
  */
7
7
 
8
8
  'use strict';
@@ -723,7 +723,12 @@ function __read(o, n) {
723
723
  finally { if (e) throw e.error; }
724
724
  }
725
725
  return ar;
726
- }
726
+ }
727
+
728
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
729
+ var e = new Error(message);
730
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
731
+ };
727
732
 
728
733
  function arrAdd(arr, item) {
729
734
  if (!arr.includes(item)) {
@@ -876,9 +881,9 @@ function ensureFixedVec3(a) {
876
881
  function objectValueToNumber(o) {
877
882
  var e_1, _a;
878
883
  try {
879
- for (var _b = __values(Object.entries(o)), _c = _b.next(); !_c.done; _c = _b.next()) {
880
- var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
881
- o[key] = Number(value);
884
+ for (var _b = __values(Object.keys(o)), _c = _b.next(); !_c.done; _c = _b.next()) {
885
+ var key = _c.value;
886
+ o[key] = Number(o[key]);
882
887
  }
883
888
  }
884
889
  catch (e_1_1) { e_1 = { error: e_1_1 }; }