@apocaliss92/nodelink-js 0.4.23 → 0.4.24

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.
@@ -17088,9 +17088,10 @@ function parseRectTags(block) {
17088
17088
  function decodePrivacyMaskZones(xml) {
17089
17089
  const canvas = extractCanvasFromShelterXml(xml);
17090
17090
  const enable = Number(getXmlText(xml, "enable") ?? "0") === 1;
17091
- const maxNum = Number(getXmlText(xml, "maxNum") ?? "0") | 0;
17092
17091
  const trackEnable = Number(getXmlText(xml, "trackEnable") ?? "0") === 1;
17093
17092
  const maxTrackShelterNum = Number(getXmlText(xml, "maxTrackShelterNum") ?? "0") | 0;
17093
+ const rawMaxNum = getXmlText(xml, "maxNum");
17094
+ const maxNum = rawMaxNum !== void 0 ? Number(rawMaxNum) | 0 : maxTrackShelterNum > 0 ? maxTrackShelterNum : 4;
17094
17095
  const shelterList = [];
17095
17096
  const shelterListBlock = xml.match(
17096
17097
  /<shelterList>([\s\S]*?)<\/shelterList>/