neo.mjs 2.3.11 → 2.3.15
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/README.md +6 -14
- package/apps/covid/view/HeaderContainer.mjs +1 -3
- package/apps/covid/view/HelixContainer.mjs +1 -1
- package/apps/covid/view/MainContainerController.mjs +3 -20
- package/apps/covid/view/TableContainerController.mjs +8 -8
- package/apps/covid/view/country/Table.mjs +1 -3
- package/apps/sharedcovid/view/GalleryContainer.mjs +7 -0
- package/apps/sharedcovid/view/HeaderContainer.mjs +6 -3
- package/apps/sharedcovid/view/HelixContainer.mjs +8 -1
- package/apps/sharedcovid/view/MainContainer.mjs +7 -2
- package/apps/sharedcovid/view/MainContainerController.mjs +48 -134
- package/apps/sharedcovid/view/MainContainerModel.mjs +51 -0
- package/apps/sharedcovid/view/TableContainer.mjs +24 -0
- package/apps/sharedcovid/view/TableContainerController.mjs +26 -39
- package/apps/sharedcovid/view/country/Gallery.mjs +36 -2
- package/apps/sharedcovid/view/country/Helix.mjs +37 -1
- package/apps/sharedcovid/view/country/Table.mjs +65 -1
- package/apps/sharedcovid/view/mapboxGl/Container.mjs +24 -4
- package/apps/website/data/blog.json +17 -4
- package/apps/website/data/examples_devmode.json +18 -18
- package/package.json +7 -7
- package/src/Main.mjs +0 -8
- package/src/calendar/view/MainContainer.mjs +1 -2
- package/src/calendar/view/week/Component.mjs +1 -1
- package/src/component/Base.mjs +4 -11
- package/src/worker/Manager.mjs +6 -1
package/src/component/Base.mjs
CHANGED
|
@@ -440,7 +440,7 @@ class Base extends CoreBase {
|
|
|
440
440
|
afterSetConfig(key, value, oldValue) {
|
|
441
441
|
if (Neo.currentWorker.isUsingViewModels) {
|
|
442
442
|
if (this.bind?.[key]?.twoWay) {
|
|
443
|
-
this.getModel()
|
|
443
|
+
this.getModel()?.setData(key, value);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
}
|
|
@@ -1080,17 +1080,10 @@ class Base extends CoreBase {
|
|
|
1080
1080
|
initConfig(config, preventOriginalConfig) {
|
|
1081
1081
|
super.initConfig(config, preventOriginalConfig);
|
|
1082
1082
|
|
|
1083
|
-
let me
|
|
1084
|
-
controller = me.getController(),
|
|
1085
|
-
model = me.getModel();
|
|
1086
|
-
|
|
1087
|
-
if (controller) {
|
|
1088
|
-
controller.parseConfig(me);
|
|
1089
|
-
}
|
|
1083
|
+
let me = this;
|
|
1090
1084
|
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
}
|
|
1085
|
+
me.getController()?.parseConfig(me);
|
|
1086
|
+
me.getModel() ?.parseConfig(me);
|
|
1094
1087
|
}
|
|
1095
1088
|
|
|
1096
1089
|
/**
|
package/src/worker/Manager.mjs
CHANGED
|
@@ -125,7 +125,12 @@ class Manager extends Base {
|
|
|
125
125
|
*/
|
|
126
126
|
broadcast(msg) {
|
|
127
127
|
Object.keys(this.workers).forEach(name => {
|
|
128
|
-
|
|
128
|
+
if (!(
|
|
129
|
+
name === 'canvas' && !NeoConfig.useCanvasWorker ||
|
|
130
|
+
name === 'vdom' && !NeoConfig.useVdomWorker
|
|
131
|
+
)) {
|
|
132
|
+
this.sendMessage(name, msg);
|
|
133
|
+
}
|
|
129
134
|
});
|
|
130
135
|
}
|
|
131
136
|
|