@gedit/editor-2d 0.3.1 → 0.3.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anim.utils.d.ts","sourceRoot":"","sources":["../../../../src/browser/model/utils/anim.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,sBAAsB,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,UAAU,SAAS;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAID,eAAO,MAAM,aAAa,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAIjD,CAAC;
|
|
1
|
+
{"version":3,"file":"anim.utils.d.ts","sourceRoot":"","sources":["../../../../src/browser/model/utils/anim.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,sBAAsB,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,UAAU,SAAS;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAID,eAAO,MAAM,aAAa,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAIjD,CAAC;AA2CF,eAAO,MAAM,gBAAgB,wBACN,mBAAmB,YAC9B,sBAAsB,cAAc,CAAC,wBACzB,MAAM,EAAE,KAC7B,SAAS,EAaX,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACzB,SAAS,EAAE,YACT,YAAY,WACb,YAAY;;CAWtB,CAAC"}
|
|
@@ -11,14 +11,18 @@ exports.animArrayKeys = {
|
|
|
11
11
|
'style.line': 'LineArray',
|
|
12
12
|
'style.lineDash': 'LineDashArray',
|
|
13
13
|
};
|
|
14
|
-
function readAnimationKeys(deco, keyList, currentKey, parentName, parentKey) {
|
|
14
|
+
function readAnimationKeys(deco, keyList, engineName, currentKey, parentName, parentKey) {
|
|
15
15
|
const currentLabel = parentName && deco.label ? `${parentName}.${deco.label}` : deco.label;
|
|
16
16
|
currentKey =
|
|
17
17
|
parentKey && currentKey ? `${parentKey}.${currentKey}` : currentKey;
|
|
18
18
|
// 进时间轴条件,必须带 label, ref: { label: 'xxx', type: 'float' };
|
|
19
19
|
if (deco.properties) {
|
|
20
20
|
Object.keys(deco.properties).forEach((property) => {
|
|
21
|
-
|
|
21
|
+
const item = deco.properties[property];
|
|
22
|
+
if (item.engineName && !item.engineName.includes(engineName)) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
readAnimationKeys(item, keyList, engineName, property, currentLabel, currentKey);
|
|
22
26
|
});
|
|
23
27
|
}
|
|
24
28
|
else if (currentLabel &&
|
|
@@ -38,7 +42,7 @@ const getAnimationKeys = (renderEngineService, register, timelineDisabledKeys) =
|
|
|
38
42
|
const deco = typeof register.defaultDataDecoration === 'function'
|
|
39
43
|
? register.defaultDataDecoration(renderEngineService)
|
|
40
44
|
: register.defaultDataDecoration;
|
|
41
|
-
readAnimationKeys(deco, keyList);
|
|
45
|
+
readAnimationKeys(deco, keyList, renderEngineService.engineName);
|
|
42
46
|
}
|
|
43
47
|
keyList = keyList.filter(f => !timelineDisabledKeys.find(c => f.key.indexOf(c) >= 0));
|
|
44
48
|
return keyList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anim.utils.js","sourceRoot":"","sources":["../../../../src/browser/model/utils/anim.utils.ts"],"names":[],"mappings":";;;AAIA,0CAA2C;AAC3C,wCAAkD;AAMlD,eAAe;AACf,MAAM,WAAW,GAAiB,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAChE,cAAc;AACD,QAAA,aAAa,GAA4B;IACpD,aAAa,EAAE,WAAW;IAC1B,YAAY,EAAE,WAAW;IACzB,gBAAgB,EAAE,eAAe;CAClC,CAAC;AACF,SAAS,iBAAiB,CACxB,IAAsB,EACtB,OAAyC,EACzC,UAAmB,EACnB,UAAmB,EACnB,SAAkB;IAElB,MAAM,YAAY,GAChB,UAAU,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC;IACxE,UAAU;QACR,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,IAAI,UAAU,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC;IACtE,0DAA0D;IAC1D,IAAI,IAAI,CAAC,UAAU,EAAE;QACnB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,QAAgB,EAAE,EAAE;YACxD,
|
|
1
|
+
{"version":3,"file":"anim.utils.js","sourceRoot":"","sources":["../../../../src/browser/model/utils/anim.utils.ts"],"names":[],"mappings":";;;AAIA,0CAA2C;AAC3C,wCAAkD;AAMlD,eAAe;AACf,MAAM,WAAW,GAAiB,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAChE,cAAc;AACD,QAAA,aAAa,GAA4B;IACpD,aAAa,EAAE,WAAW;IAC1B,YAAY,EAAE,WAAW;IACzB,gBAAgB,EAAE,eAAe;CAClC,CAAC;AACF,SAAS,iBAAiB,CACxB,IAAsB,EACtB,OAAyC,EACzC,UAAkB,EAClB,UAAmB,EACnB,UAAmB,EACnB,SAAkB;IAElB,MAAM,YAAY,GAChB,UAAU,IAAI,IAAI,CAAC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"lib/browser/index",
|
|
6
6
|
"typings": "lib/browser/index.d.ts",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"src"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@gedit/app-config": "^0.3.
|
|
13
|
-
"@gedit/canvas-draw": "^0.3.
|
|
14
|
-
"@gedit/editor": "^0.3.
|
|
15
|
-
"@gedit/playground": "^0.3.
|
|
16
|
-
"@gedit/render-engine-ide": "^0.3.
|
|
17
|
-
"@gedit/theme": "^0.2.
|
|
18
|
-
"@gedit/workspace-2d": "^0.3.
|
|
12
|
+
"@gedit/app-config": "^0.3.2",
|
|
13
|
+
"@gedit/canvas-draw": "^0.3.3",
|
|
14
|
+
"@gedit/editor": "^0.3.1",
|
|
15
|
+
"@gedit/playground": "^0.3.2",
|
|
16
|
+
"@gedit/render-engine-ide": "^0.3.2",
|
|
17
|
+
"@gedit/theme": "^0.2.13",
|
|
18
|
+
"@gedit/workspace-2d": "^0.3.2",
|
|
19
19
|
"@types/bezier-js": "^4.1.3",
|
|
20
20
|
"bezier-js": "^6.1.4",
|
|
21
21
|
"clsx": "^1.1.1",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"nyc": {
|
|
41
41
|
"extends": "../../configs/nyc.json"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d95183632021f33643adb8f0ce03a1a678af8d9f"
|
|
44
44
|
}
|
|
@@ -20,6 +20,7 @@ export const animArrayKeys: {[key: string]: string} = {
|
|
|
20
20
|
function readAnimationKeys(
|
|
21
21
|
deco: SchemaDecoration,
|
|
22
22
|
keyList: { key: string; name: string; }[],
|
|
23
|
+
engineName: string,
|
|
23
24
|
currentKey?: string,
|
|
24
25
|
parentName?: string,
|
|
25
26
|
parentKey?: string
|
|
@@ -31,9 +32,14 @@ function readAnimationKeys(
|
|
|
31
32
|
// 进时间轴条件,必须带 label, ref: { label: 'xxx', type: 'float' };
|
|
32
33
|
if (deco.properties) {
|
|
33
34
|
Object.keys(deco.properties).forEach((property: string) => {
|
|
35
|
+
const item = deco.properties![property] as SchemaDecoration;
|
|
36
|
+
if (item.engineName && !item.engineName.includes(engineName)) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
34
39
|
readAnimationKeys(
|
|
35
|
-
|
|
40
|
+
item,
|
|
36
41
|
keyList,
|
|
42
|
+
engineName,
|
|
37
43
|
property,
|
|
38
44
|
currentLabel,
|
|
39
45
|
currentKey
|
|
@@ -64,7 +70,7 @@ export const getAnimationKeys = (
|
|
|
64
70
|
typeof register.defaultDataDecoration === 'function'
|
|
65
71
|
? register.defaultDataDecoration(renderEngineService)
|
|
66
72
|
: register.defaultDataDecoration;
|
|
67
|
-
readAnimationKeys(deco, keyList);
|
|
73
|
+
readAnimationKeys(deco, keyList, renderEngineService.engineName);
|
|
68
74
|
}
|
|
69
75
|
keyList = keyList.filter(
|
|
70
76
|
f => !timelineDisabledKeys.find(c => f.key.indexOf(c) >= 0)
|