@nine-lab/nine-mu 0.1.276 β 0.1.278
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/nine-mu.js +25 -11
- package/dist/nine-mu.js.map +1 -1
- package/dist/nine-mu.umd.js +3 -3
- package/dist/nine-mu.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NotificationHandler.js +20 -7
package/package.json
CHANGED
|
@@ -43,19 +43,32 @@ export class NotificationHandler {
|
|
|
43
43
|
// 2. π¨ [λμ€μ 100μκ°μ§λ¦¬ μλ²½μ μ±μΈ ν΅μ¬ κΈΈλͺ©]
|
|
44
44
|
// λ°μ΄ν°μ μμ€μ½λ μλ§Ήμ΄(data.source)λ λ©νλ°μ΄ν°κ° μ€λ € λ΄λ €μμ λμ νμλ₯Ό μ¬κΈ°μ 격리 μ²λ¦¬ν©λλ€.
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
switch (logger) {
|
|
47
|
+
case "generate-source-brain":
|
|
48
|
+
if (data && data.source) {
|
|
49
|
+
trace.log(`[μκ·Έλ κ°μ§] μ€κ³ μλ£`, data);
|
|
50
|
+
this.#generateSource(data);
|
|
51
|
+
}
|
|
52
|
+
break;
|
|
53
|
+
|
|
54
|
+
case "modify-source-brain":
|
|
55
|
+
if (data && data.source) {
|
|
56
|
+
trace.log(`[μκ·Έλ κ°μ§] μ€κ³ μλ£`, data);
|
|
57
|
+
this.#modifySource(data);
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
52
60
|
}
|
|
61
|
+
|
|
53
62
|
}
|
|
54
63
|
|
|
64
|
+
#modifySource = async (data) => {
|
|
65
|
+
console.log(data.source);
|
|
66
|
+
};
|
|
67
|
+
|
|
55
68
|
/**
|
|
56
69
|
* [λΆλ¦¬ λΉμ¦λμ€ λ‘μ§ 2] μμ λ μμ€μ½λ λ°μ΄ν° μ ν¨μ± κ²μ¦ λ° μΆν νμΌ μ μ₯ μ°λ
|
|
57
70
|
*/
|
|
58
|
-
#
|
|
71
|
+
#generateSource = async (data) => {
|
|
59
72
|
// μμ€μ½λ λ°μ΄ν°κ° μ μμ μΌλ‘ ν보λμλμ§ 1%μ λλ½ κ²μ¦
|
|
60
73
|
if (data.layer) {
|
|
61
74
|
//trace.warn("β οΈ μμ€ λλ νμΌλͺ
λλ½ λ°μ΄ν° μμ λ¨", data);
|