@teselagen/ove 0.5.22 → 0.5.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.
package/index.cjs.js CHANGED
@@ -35202,25 +35202,16 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
35202
35202
  return value;
35203
35203
  }, "GetIntrinsic");
35204
35204
  var callBind$3 = { exports: {} };
35205
- var esDefineProperty;
35206
- var hasRequiredEsDefineProperty;
35207
- function requireEsDefineProperty() {
35208
- if (hasRequiredEsDefineProperty)
35209
- return esDefineProperty;
35210
- hasRequiredEsDefineProperty = 1;
35211
- var GetIntrinsic3 = getIntrinsic;
35212
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
35213
- if ($defineProperty2) {
35214
- try {
35215
- $defineProperty2({}, "a", { value: 1 });
35216
- } catch (e2) {
35217
- $defineProperty2 = false;
35218
- }
35205
+ var GetIntrinsic$4 = getIntrinsic;
35206
+ var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
35207
+ if ($defineProperty$2) {
35208
+ try {
35209
+ $defineProperty$2({}, "a", { value: 1 });
35210
+ } catch (e2) {
35211
+ $defineProperty$2 = false;
35219
35212
  }
35220
- esDefineProperty = $defineProperty2;
35221
- return esDefineProperty;
35222
35213
  }
35223
- __name(requireEsDefineProperty, "requireEsDefineProperty");
35214
+ var esDefineProperty = $defineProperty$2;
35224
35215
  var GetIntrinsic$3 = getIntrinsic;
35225
35216
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
35226
35217
  if ($gOPD$1) {
@@ -35231,7 +35222,7 @@ if ($gOPD$1) {
35231
35222
  }
35232
35223
  }
35233
35224
  var gopd$1 = $gOPD$1;
35234
- var $defineProperty$1 = requireEsDefineProperty();
35225
+ var $defineProperty$1 = esDefineProperty;
35235
35226
  var $SyntaxError = syntax;
35236
35227
  var $TypeError$4 = type$1;
35237
35228
  var gopd = gopd$1;
@@ -35272,7 +35263,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
35272
35263
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
35273
35264
  }
35274
35265
  }, "defineDataProperty");
35275
- var $defineProperty = requireEsDefineProperty();
35266
+ var $defineProperty = esDefineProperty;
35276
35267
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
35277
35268
  return !!$defineProperty;
35278
35269
  }, "hasPropertyDescriptors");
@@ -35341,7 +35332,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
35341
35332
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
35342
35333
  var $call = GetIntrinsic3("%Function.prototype.call%");
35343
35334
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
35344
- var $defineProperty2 = requireEsDefineProperty();
35335
+ var $defineProperty2 = esDefineProperty;
35345
35336
  var $max = GetIntrinsic3("%Math.max%");
35346
35337
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
35347
35338
  if (typeof originalFunction !== "function") {
@@ -89525,12 +89516,19 @@ function getInsertBetweenVals(caretPosition2, selectionLayer2, sequenceLength) {
89525
89516
  }
89526
89517
  __name(getInsertBetweenVals, "getInsertBetweenVals");
89527
89518
  function getReverseComplementAnnotation(annotation, sequenceLength) {
89528
- return Object.assign({}, annotation, {
89519
+ return Object.assign({}, annotation, __spreadValues({
89529
89520
  start: sequenceLength - (annotation.end + 1),
89530
89521
  end: sequenceLength - (annotation.start + 1),
89531
89522
  forward: !annotation.forward,
89532
89523
  strand: annotation.strand === 1 ? -1 : 1
89533
- });
89524
+ }, annotation.locations && {
89525
+ locations: annotation.locations.map((location2) => {
89526
+ return {
89527
+ start: sequenceLength - (location2.end + 1),
89528
+ end: sequenceLength - (location2.start + 1)
89529
+ };
89530
+ })
89531
+ }));
89534
89532
  }
89535
89533
  __name(getReverseComplementAnnotation, "getReverseComplementAnnotation");
89536
89534
  function getReverseComplementSequenceAndAnnoations(pSeqObj, options = {}) {
@@ -119223,7 +119221,7 @@ function PointedAnnotation(props) {
119223
119221
  isProtein: isProtein2,
119224
119222
  readOnly: readOnly2
119225
119223
  })),
119226
- isStriped && getStripedPattern({ color: color2 }),
119224
+ isStriped && getStripedPattern({ color: color2, id: id2 }),
119227
119225
  /* @__PURE__ */ React$2.createElement(
119228
119226
  "path",
119229
119227
  {
@@ -122409,7 +122407,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122409
122407
  }
122410
122408
  __name(showFileDialog, "showFileDialog");
122411
122409
  const name = "@teselagen/ove";
122412
- const version = "0.5.21";
122410
+ const version = "0.5.23";
122413
122411
  const main = "./src/index.js";
122414
122412
  const type = "module";
122415
122413
  const exports$1 = {
package/index.es.js CHANGED
@@ -35184,25 +35184,16 @@ var getIntrinsic = /* @__PURE__ */ __name(function GetIntrinsic(name2, allowMiss
35184
35184
  return value;
35185
35185
  }, "GetIntrinsic");
35186
35186
  var callBind$3 = { exports: {} };
35187
- var esDefineProperty;
35188
- var hasRequiredEsDefineProperty;
35189
- function requireEsDefineProperty() {
35190
- if (hasRequiredEsDefineProperty)
35191
- return esDefineProperty;
35192
- hasRequiredEsDefineProperty = 1;
35193
- var GetIntrinsic3 = getIntrinsic;
35194
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
35195
- if ($defineProperty2) {
35196
- try {
35197
- $defineProperty2({}, "a", { value: 1 });
35198
- } catch (e2) {
35199
- $defineProperty2 = false;
35200
- }
35187
+ var GetIntrinsic$4 = getIntrinsic;
35188
+ var $defineProperty$2 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
35189
+ if ($defineProperty$2) {
35190
+ try {
35191
+ $defineProperty$2({}, "a", { value: 1 });
35192
+ } catch (e2) {
35193
+ $defineProperty$2 = false;
35201
35194
  }
35202
- esDefineProperty = $defineProperty2;
35203
- return esDefineProperty;
35204
35195
  }
35205
- __name(requireEsDefineProperty, "requireEsDefineProperty");
35196
+ var esDefineProperty = $defineProperty$2;
35206
35197
  var GetIntrinsic$3 = getIntrinsic;
35207
35198
  var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
35208
35199
  if ($gOPD$1) {
@@ -35213,7 +35204,7 @@ if ($gOPD$1) {
35213
35204
  }
35214
35205
  }
35215
35206
  var gopd$1 = $gOPD$1;
35216
- var $defineProperty$1 = requireEsDefineProperty();
35207
+ var $defineProperty$1 = esDefineProperty;
35217
35208
  var $SyntaxError = syntax;
35218
35209
  var $TypeError$4 = type$1;
35219
35210
  var gopd = gopd$1;
@@ -35254,7 +35245,7 @@ var defineDataProperty$1 = /* @__PURE__ */ __name(function defineDataProperty(ob
35254
35245
  throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
35255
35246
  }
35256
35247
  }, "defineDataProperty");
35257
- var $defineProperty = requireEsDefineProperty();
35248
+ var $defineProperty = esDefineProperty;
35258
35249
  var hasPropertyDescriptors = /* @__PURE__ */ __name(function hasPropertyDescriptors2() {
35259
35250
  return !!$defineProperty;
35260
35251
  }, "hasPropertyDescriptors");
@@ -35323,7 +35314,7 @@ var setFunctionLength = /* @__PURE__ */ __name(function setFunctionLength2(fn4,
35323
35314
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
35324
35315
  var $call = GetIntrinsic3("%Function.prototype.call%");
35325
35316
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind3.call($call, $apply);
35326
- var $defineProperty2 = requireEsDefineProperty();
35317
+ var $defineProperty2 = esDefineProperty;
35327
35318
  var $max = GetIntrinsic3("%Math.max%");
35328
35319
  module2.exports = /* @__PURE__ */ __name(function callBind2(originalFunction) {
35329
35320
  if (typeof originalFunction !== "function") {
@@ -89507,12 +89498,19 @@ function getInsertBetweenVals(caretPosition2, selectionLayer2, sequenceLength) {
89507
89498
  }
89508
89499
  __name(getInsertBetweenVals, "getInsertBetweenVals");
89509
89500
  function getReverseComplementAnnotation(annotation, sequenceLength) {
89510
- return Object.assign({}, annotation, {
89501
+ return Object.assign({}, annotation, __spreadValues({
89511
89502
  start: sequenceLength - (annotation.end + 1),
89512
89503
  end: sequenceLength - (annotation.start + 1),
89513
89504
  forward: !annotation.forward,
89514
89505
  strand: annotation.strand === 1 ? -1 : 1
89515
- });
89506
+ }, annotation.locations && {
89507
+ locations: annotation.locations.map((location2) => {
89508
+ return {
89509
+ start: sequenceLength - (location2.end + 1),
89510
+ end: sequenceLength - (location2.start + 1)
89511
+ };
89512
+ })
89513
+ }));
89516
89514
  }
89517
89515
  __name(getReverseComplementAnnotation, "getReverseComplementAnnotation");
89518
89516
  function getReverseComplementSequenceAndAnnoations(pSeqObj, options = {}) {
@@ -119205,7 +119203,7 @@ function PointedAnnotation(props) {
119205
119203
  isProtein: isProtein2,
119206
119204
  readOnly: readOnly2
119207
119205
  })),
119208
- isStriped && getStripedPattern({ color: color2 }),
119206
+ isStriped && getStripedPattern({ color: color2, id: id2 }),
119209
119207
  /* @__PURE__ */ React__default$1.createElement(
119210
119208
  "path",
119211
119209
  {
@@ -122391,7 +122389,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122391
122389
  }
122392
122390
  __name(showFileDialog, "showFileDialog");
122393
122391
  const name = "@teselagen/ove";
122394
- const version = "0.5.21";
122392
+ const version = "0.5.23";
122395
122393
  const main = "./src/index.js";
122396
122394
  const type = "module";
122397
122395
  const exports$1 = {
package/index.umd.js CHANGED
@@ -118621,12 +118621,19 @@ ${latestSubscriptionCallbackError.current.stack}
118621
118621
  }
118622
118622
  __name(getInsertBetweenVals, "getInsertBetweenVals");
118623
118623
  function getReverseComplementAnnotation(annotation, sequenceLength) {
118624
- return Object.assign({}, annotation, {
118624
+ return Object.assign({}, annotation, __spreadValues({
118625
118625
  start: sequenceLength - (annotation.end + 1),
118626
118626
  end: sequenceLength - (annotation.start + 1),
118627
118627
  forward: !annotation.forward,
118628
118628
  strand: annotation.strand === 1 ? -1 : 1
118629
- });
118629
+ }, annotation.locations && {
118630
+ locations: annotation.locations.map((location2) => {
118631
+ return {
118632
+ start: sequenceLength - (location2.end + 1),
118633
+ end: sequenceLength - (location2.start + 1)
118634
+ };
118635
+ })
118636
+ }));
118630
118637
  }
118631
118638
  __name(getReverseComplementAnnotation, "getReverseComplementAnnotation");
118632
118639
  function getReverseComplementSequenceAndAnnoations(pSeqObj, options = {}) {
@@ -147724,7 +147731,7 @@ double click --> edit`}`;
147724
147731
  isProtein: isProtein2,
147725
147732
  readOnly: readOnly2
147726
147733
  })),
147727
- isStriped && getStripedPattern({ color: color2 }),
147734
+ isStriped && getStripedPattern({ color: color2, id: id2 }),
147728
147735
  /* @__PURE__ */ React$2.createElement(
147729
147736
  "path",
147730
147737
  {
@@ -150876,7 +150883,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150876
150883
  }
150877
150884
  __name(showFileDialog, "showFileDialog");
150878
150885
  const name = "@teselagen/ove";
150879
- const version = "0.5.21";
150886
+ const version = "0.5.23";
150880
150887
  const main = "./src/index.js";
150881
150888
  const type = "module";
150882
150889
  const exports$1 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.22",
3
+ "version": "0.5.24",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -10,12 +10,12 @@
10
10
  "./style.css": "./style.css"
11
11
  },
12
12
  "dependencies": {
13
- "@teselagen/sequence-utils": "0.3.25",
13
+ "@teselagen/sequence-utils": "0.3.26",
14
14
  "@teselagen/range-utils": "0.3.7",
15
15
  "@teselagen/ui": "0.4.18",
16
16
  "@teselagen/file-utils": "0.3.16",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
- "@teselagen/bio-parsers": "0.4.19",
18
+ "@teselagen/bio-parsers": "0.4.21",
19
19
  "@blueprintjs/core": "3.52.0",
20
20
  "@blueprintjs/datetime": "3.23.19",
21
21
  "@blueprintjs/icons": "3.33.0",
@@ -233,7 +233,7 @@ function PointedAnnotation(props) {
233
233
  })}
234
234
  </title>
235
235
  )}
236
- {isStriped && getStripedPattern({ color })}
236
+ {isStriped && getStripedPattern({ color, id })}
237
237
 
238
238
  <path
239
239
  strokeWidth="1"