@packtrack/layout 1.6.7 → 1.6.8
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/.built/source/layout.js +3 -0
- package/package.json +1 -1
- package/source/layout.ts +4 -0
package/.built/source/layout.js
CHANGED
|
@@ -127,6 +127,9 @@ export class Layout {
|
|
|
127
127
|
loadSection(source, district) {
|
|
128
128
|
const section = new Section(source.getAttribute('name'), district);
|
|
129
129
|
district.sections.push(section);
|
|
130
|
+
if (source.hasAttribute('power-district')) {
|
|
131
|
+
section.powerDistrict = district.powerDistricts.find(district => district.name == source.hasAttribute('power-district'));
|
|
132
|
+
}
|
|
130
133
|
let child = source.firstChild;
|
|
131
134
|
while (child) {
|
|
132
135
|
if (child.tagName == 'tracks') {
|
package/package.json
CHANGED
package/source/layout.ts
CHANGED
|
@@ -172,6 +172,10 @@ export class Layout {
|
|
|
172
172
|
const section = new Section(source.getAttribute('name'), district);
|
|
173
173
|
district.sections.push(section);
|
|
174
174
|
|
|
175
|
+
if (source.hasAttribute('power-district')) {
|
|
176
|
+
section.powerDistrict = district.powerDistricts.find(district => district.name == source.hasAttribute('power-district'));
|
|
177
|
+
}
|
|
178
|
+
|
|
175
179
|
let child = source.firstChild;
|
|
176
180
|
|
|
177
181
|
while (child) {
|