@teselagen/ove 0.8.41 → 0.8.42

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/index.cjs.js CHANGED
@@ -90314,17 +90314,20 @@ function snapgeneToJson(_0) {
90314
90314
  const b3 = new fxpExports.XMLParser({
90315
90315
  ignoreAttributes: false,
90316
90316
  attributeNamePrefix: "",
90317
- isArray: /* @__PURE__ */ __name((name2) => name2 === "Feature" || name2 === "Segment", "isArray")
90317
+ isArray: /* @__PURE__ */ __name((name2) => ["Feature", "Segment", "Q", "V"].includes(name2), "isArray")
90318
90318
  }).parse(xml2);
90319
90319
  const { Features: { Feature: Feature2 = [] } = {} } = b3;
90320
90320
  data.features = [];
90321
90321
  Feature2.forEach((feat) => {
90322
+ var _a2, _b2, _c, _d;
90322
90323
  const { directionality, Segment = [], name: name2, type: type2 } = feat;
90324
+ let color2;
90323
90325
  let maxStart = 0;
90324
90326
  let maxEnd = 0;
90325
90327
  const locations = Segment && Segment.map((seg) => {
90326
90328
  if (!seg) throw new Error("invalid feature definition");
90327
90329
  const { range: range2 } = seg;
90330
+ if (seg.color) color2 = seg.color;
90328
90331
  let { start: start2, end: end2 } = getStartAndEndFromRangeString(range2);
90329
90332
  start2 = isProtein2 ? start2 * 3 : start2;
90330
90333
  end2 = isProtein2 ? end2 * 3 + 2 : end2;
@@ -90335,6 +90338,10 @@ function snapgeneToJson(_0) {
90335
90338
  end: end2
90336
90339
  };
90337
90340
  });
90341
+ const colorQual = (_a2 = feat.Q) == null ? void 0 : _a2.find((q2) => q2.name === "color");
90342
+ if (colorQual) {
90343
+ color2 = ((_c = (_b2 = colorQual.V) == null ? void 0 : _b2[0]) == null ? void 0 : _c.text) || ((_d = colorQual.V) == null ? void 0 : _d[0]);
90344
+ }
90338
90345
  data.features.push(__spreadProps(__spreadValues({
90339
90346
  name: name2,
90340
90347
  type: type2
@@ -90342,8 +90349,8 @@ function snapgeneToJson(_0) {
90342
90349
  strand: directionality ? strand_dict[directionality][0] : 1,
90343
90350
  arrowheadType: directionality ? strand_dict[directionality][1] : "NONE",
90344
90351
  start: maxStart,
90345
- end: maxEnd
90346
- // color,
90352
+ end: maxEnd,
90353
+ color: color2
90347
90354
  }));
90348
90355
  });
90349
90356
  } else if (ord(next_byte) === 6) {
@@ -117272,7 +117279,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117272
117279
  input.click();
117273
117280
  }
117274
117281
  __name(showFileDialog, "showFileDialog");
117275
- const version = "0.8.41";
117282
+ const version = "0.8.42";
117276
117283
  const packageJson = {
117277
117284
  version
117278
117285
  };
package/index.es.js CHANGED
@@ -90296,17 +90296,20 @@ function snapgeneToJson(_0) {
90296
90296
  const b3 = new fxpExports.XMLParser({
90297
90297
  ignoreAttributes: false,
90298
90298
  attributeNamePrefix: "",
90299
- isArray: /* @__PURE__ */ __name((name2) => name2 === "Feature" || name2 === "Segment", "isArray")
90299
+ isArray: /* @__PURE__ */ __name((name2) => ["Feature", "Segment", "Q", "V"].includes(name2), "isArray")
90300
90300
  }).parse(xml2);
90301
90301
  const { Features: { Feature: Feature2 = [] } = {} } = b3;
90302
90302
  data.features = [];
90303
90303
  Feature2.forEach((feat) => {
90304
+ var _a2, _b2, _c, _d;
90304
90305
  const { directionality, Segment = [], name: name2, type: type2 } = feat;
90306
+ let color2;
90305
90307
  let maxStart = 0;
90306
90308
  let maxEnd = 0;
90307
90309
  const locations = Segment && Segment.map((seg) => {
90308
90310
  if (!seg) throw new Error("invalid feature definition");
90309
90311
  const { range: range2 } = seg;
90312
+ if (seg.color) color2 = seg.color;
90310
90313
  let { start: start2, end: end2 } = getStartAndEndFromRangeString(range2);
90311
90314
  start2 = isProtein2 ? start2 * 3 : start2;
90312
90315
  end2 = isProtein2 ? end2 * 3 + 2 : end2;
@@ -90317,6 +90320,10 @@ function snapgeneToJson(_0) {
90317
90320
  end: end2
90318
90321
  };
90319
90322
  });
90323
+ const colorQual = (_a2 = feat.Q) == null ? void 0 : _a2.find((q2) => q2.name === "color");
90324
+ if (colorQual) {
90325
+ color2 = ((_c = (_b2 = colorQual.V) == null ? void 0 : _b2[0]) == null ? void 0 : _c.text) || ((_d = colorQual.V) == null ? void 0 : _d[0]);
90326
+ }
90320
90327
  data.features.push(__spreadProps(__spreadValues({
90321
90328
  name: name2,
90322
90329
  type: type2
@@ -90324,8 +90331,8 @@ function snapgeneToJson(_0) {
90324
90331
  strand: directionality ? strand_dict[directionality][0] : 1,
90325
90332
  arrowheadType: directionality ? strand_dict[directionality][1] : "NONE",
90326
90333
  start: maxStart,
90327
- end: maxEnd
90328
- // color,
90334
+ end: maxEnd,
90335
+ color: color2
90329
90336
  }));
90330
90337
  });
90331
90338
  } else if (ord(next_byte) === 6) {
@@ -117254,7 +117261,7 @@ function showFileDialog({ multiple = false, onSelect }) {
117254
117261
  input.click();
117255
117262
  }
117256
117263
  __name(showFileDialog, "showFileDialog");
117257
- const version = "0.8.41";
117264
+ const version = "0.8.42";
117258
117265
  const packageJson = {
117259
117266
  version
117260
117267
  };
package/index.umd.js CHANGED
@@ -119217,17 +119217,20 @@ ${latestSubscriptionCallbackError.current.stack}
119217
119217
  const b3 = new fxpExports.XMLParser({
119218
119218
  ignoreAttributes: false,
119219
119219
  attributeNamePrefix: "",
119220
- isArray: /* @__PURE__ */ __name((name2) => name2 === "Feature" || name2 === "Segment", "isArray")
119220
+ isArray: /* @__PURE__ */ __name((name2) => ["Feature", "Segment", "Q", "V"].includes(name2), "isArray")
119221
119221
  }).parse(xml2);
119222
119222
  const { Features: { Feature: Feature2 = [] } = {} } = b3;
119223
119223
  data.features = [];
119224
119224
  Feature2.forEach((feat) => {
119225
+ var _a2, _b2, _c2, _d2;
119225
119226
  const { directionality, Segment = [], name: name2, type: type2 } = feat;
119227
+ let color2;
119226
119228
  let maxStart = 0;
119227
119229
  let maxEnd = 0;
119228
119230
  const locations = Segment && Segment.map((seg) => {
119229
119231
  if (!seg) throw new Error("invalid feature definition");
119230
119232
  const { range: range2 } = seg;
119233
+ if (seg.color) color2 = seg.color;
119231
119234
  let { start: start2, end: end2 } = getStartAndEndFromRangeString(range2);
119232
119235
  start2 = isProtein2 ? start2 * 3 : start2;
119233
119236
  end2 = isProtein2 ? end2 * 3 + 2 : end2;
@@ -119238,6 +119241,10 @@ ${latestSubscriptionCallbackError.current.stack}
119238
119241
  end: end2
119239
119242
  };
119240
119243
  });
119244
+ const colorQual = (_a2 = feat.Q) == null ? void 0 : _a2.find((q2) => q2.name === "color");
119245
+ if (colorQual) {
119246
+ color2 = ((_c2 = (_b2 = colorQual.V) == null ? void 0 : _b2[0]) == null ? void 0 : _c2.text) || ((_d2 = colorQual.V) == null ? void 0 : _d2[0]);
119247
+ }
119241
119248
  data.features.push(__spreadProps(__spreadValues({
119242
119249
  name: name2,
119243
119250
  type: type2
@@ -119245,8 +119252,8 @@ ${latestSubscriptionCallbackError.current.stack}
119245
119252
  strand: directionality ? strand_dict[directionality][0] : 1,
119246
119253
  arrowheadType: directionality ? strand_dict[directionality][1] : "NONE",
119247
119254
  start: maxStart,
119248
- end: maxEnd
119249
- // color,
119255
+ end: maxEnd,
119256
+ color: color2
119250
119257
  }));
119251
119258
  });
119252
119259
  } else if (ord(next_byte) === 6) {
@@ -145370,7 +145377,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
145370
145377
  input.click();
145371
145378
  }
145372
145379
  __name(showFileDialog, "showFileDialog");
145373
- const version = "0.8.41";
145380
+ const version = "0.8.42";
145374
145381
  const packageJson = {
145375
145382
  version
145376
145383
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.8.41",
3
+ "version": "0.8.42",
4
4
  "main": "./src/index.js",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/TeselaGen/tg-oss",
@@ -15,7 +15,7 @@
15
15
  "@blueprintjs/core": "3.54.0",
16
16
  "@hello-pangea/dnd": "16.2.0",
17
17
  "@risingstack/react-easy-state": "^6.3.0",
18
- "@teselagen/bio-parsers": "0.4.36",
18
+ "@teselagen/bio-parsers": "0.4.37",
19
19
  "@teselagen/file-utils": "0.3.23",
20
20
  "@teselagen/range-utils": "0.3.20",
21
21
  "@teselagen/react-list": "0.8.18",