@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@packtrack/layout",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "type": "module",
5
5
  "main": ".built/index.js",
6
6
  "typings": ".built/index.d.ts",
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) {