@teselagen/ove 0.5.20 → 0.5.22

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
@@ -72086,7 +72086,6 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React$
72086
72086
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
72087
72087
  let ResizableDraggableDialog = _ResizableDraggableDialog;
72088
72088
  function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3, disabled }) {
72089
- console.log(`navTo:`, navTo);
72090
72089
  if (disabled) {
72091
72090
  return /* @__PURE__ */ React$2.createElement("li", { className: core.Classes.POPOVER_DISMISS }, /* @__PURE__ */ React$2.createElement(core.MenuItem, { icon, disabled: true, text: text2 }));
72092
72091
  }
@@ -72138,7 +72137,6 @@ const EnhancedMenuItem = compose(
72138
72137
  if (navTo) {
72139
72138
  MenuItemComp = MenuItemLink;
72140
72139
  }
72141
- console.log(`navTo:`, navTo);
72142
72140
  return /* @__PURE__ */ React$2.createElement(
72143
72141
  MenuItemComp,
72144
72142
  __spreadProps(__spreadValues(__spreadValues({
@@ -105755,11 +105753,11 @@ function getSelFromWrappedAddon(selectionLayer2, sequenceLength) {
105755
105753
  return selToUse;
105756
105754
  }
105757
105755
  __name(getSelFromWrappedAddon, "getSelFromWrappedAddon");
105758
- function getStripedPattern({ color: color2 }) {
105756
+ function getStripedPattern({ color: color2, id: id2 }) {
105759
105757
  return /* @__PURE__ */ React$2.createElement(
105760
105758
  "pattern",
105761
105759
  {
105762
- id: "diagonalHatch",
105760
+ id: `diagonalHatch-${id2}`,
105763
105761
  patternUnits: "userSpaceOnUse",
105764
105762
  width: "4",
105765
105763
  height: "4"
@@ -119232,7 +119230,7 @@ function PointedAnnotation(props) {
119232
119230
  strokeWidth: "1",
119233
119231
  stroke: stroke || "black",
119234
119232
  opacity,
119235
- fill: isStriped ? "url(#diagonalHatch)" : fill || color2,
119233
+ fill: isStriped ? `url(#diagonalHatch-${id2})` : fill || color2,
119236
119234
  transform: forward ? null : "translate(" + width + `,${flipAnnotation ? -extraHeight + 10 : 0}) scale(-1,${flipAnnotation ? "-" : ""}1) `,
119237
119235
  d: path2
119238
119236
  }
@@ -122383,7 +122381,7 @@ function oveCommandFactory(instance, commandDefs2) {
122383
122381
  return args;
122384
122382
  },
122385
122383
  handleReturn: noop$6,
122386
- commandDefs: commandDefs2
122384
+ commandDefs: instance.props.massageCmds ? instance.props.massageCmds(commandDefs2) : commandDefs2
122387
122385
  });
122388
122386
  }
122389
122387
  __name(oveCommandFactory, "oveCommandFactory");
@@ -122411,7 +122409,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122411
122409
  }
122412
122410
  __name(showFileDialog, "showFileDialog");
122413
122411
  const name = "@teselagen/ove";
122414
- const version = "0.5.19";
122412
+ const version = "0.5.21";
122415
122413
  const main = "./src/index.js";
122416
122414
  const type = "module";
122417
122415
  const exports$1 = {
@@ -133088,14 +133086,14 @@ function CircularPrimer(props) {
133088
133086
  hasLabel: ellipsizedName,
133089
133087
  labelNeedsFlip
133090
133088
  });
133091
- return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React$2.createElement(
133089
+ return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2, id: id2 }), /* @__PURE__ */ React$2.createElement(
133092
133090
  "path",
133093
133091
  {
133094
133092
  className: "vePrimer veCircularViewPrimer",
133095
133093
  id: id2,
133096
133094
  strokeWidth: ".5",
133097
133095
  stroke: "black",
133098
- fill: "url(#diagonalHatch)",
133096
+ fill: `url(#diagonalHatch-${id2})`,
133099
133097
  d: path2.print()
133100
133098
  }
133101
133099
  ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
@@ -143196,6 +143194,7 @@ const userDefinedHandlersAndOpts = [
143196
143194
  "disableSetReadOnly",
143197
143195
  "allowAnnotationEditLocking",
143198
143196
  "disableBpEditing",
143197
+ "massageCmds",
143199
143198
  "showReadOnly",
143200
143199
  "showCircularity",
143201
143200
  "onHiddenEnzymeAdd",
@@ -148976,6 +148975,7 @@ exports.connectToEditor = connectToEditor;
148976
148975
  exports.createVectorEditor = createVectorEditor;
148977
148976
  exports.getOveHotkeyDefs = getOveHotkeyDefs;
148978
148977
  exports.getRangeAnglesSpecial = getRangeAnglesSpecial;
148978
+ exports.getStructuredBases = getStructuredBases;
148979
148979
  exports.getUserGroupLabel = getUserGroupLabel;
148980
148980
  exports.specialCutsiteFilterOptions = specialCutsiteFilterOptions;
148981
148981
  exports.updateEditor = updateEditor;
package/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { default as PositionAnnotationOnCircle } from './CircularView/PositionAn
16
16
  export { default as EnzymeViewer } from './EnzymeViewer';
17
17
  export { default as AlignmentView } from './AlignmentView';
18
18
  export { default as getOveHotkeyDefs } from './commands/getOveHotkeyDefs';
19
+ export { getStructuredBases } from './RowItem/StackedAnnotations/getStructuredBases';
19
20
  export { default as withEditorProps, connectToEditor } from './withEditorProps';
20
21
  export { default as Editor, Editor as EditorUnconnected } from './Editor';
21
22
  export { default as CutsiteFilter, CutsiteFilter as CutsiteFilterUnconnected } from './CutsiteFilter';
package/index.es.js CHANGED
@@ -72068,7 +72068,6 @@ const _ResizableDraggableDialog = class _ResizableDraggableDialog extends React_
72068
72068
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
72069
72069
  let ResizableDraggableDialog = _ResizableDraggableDialog;
72070
72070
  function MenuItemLink({ text: text2, onClick, icon, navTo, active: active3, disabled }) {
72071
- console.log(`navTo:`, navTo);
72072
72071
  if (disabled) {
72073
72072
  return /* @__PURE__ */ React__default$1.createElement("li", { className: Classes.POPOVER_DISMISS }, /* @__PURE__ */ React__default$1.createElement(MenuItem, { icon, disabled: true, text: text2 }));
72074
72073
  }
@@ -72120,7 +72119,6 @@ const EnhancedMenuItem = compose(
72120
72119
  if (navTo) {
72121
72120
  MenuItemComp = MenuItemLink;
72122
72121
  }
72123
- console.log(`navTo:`, navTo);
72124
72122
  return /* @__PURE__ */ React__default$1.createElement(
72125
72123
  MenuItemComp,
72126
72124
  __spreadProps(__spreadValues(__spreadValues({
@@ -105737,11 +105735,11 @@ function getSelFromWrappedAddon(selectionLayer2, sequenceLength) {
105737
105735
  return selToUse;
105738
105736
  }
105739
105737
  __name(getSelFromWrappedAddon, "getSelFromWrappedAddon");
105740
- function getStripedPattern({ color: color2 }) {
105738
+ function getStripedPattern({ color: color2, id: id2 }) {
105741
105739
  return /* @__PURE__ */ React__default$1.createElement(
105742
105740
  "pattern",
105743
105741
  {
105744
- id: "diagonalHatch",
105742
+ id: `diagonalHatch-${id2}`,
105745
105743
  patternUnits: "userSpaceOnUse",
105746
105744
  width: "4",
105747
105745
  height: "4"
@@ -119214,7 +119212,7 @@ function PointedAnnotation(props) {
119214
119212
  strokeWidth: "1",
119215
119213
  stroke: stroke || "black",
119216
119214
  opacity,
119217
- fill: isStriped ? "url(#diagonalHatch)" : fill || color2,
119215
+ fill: isStriped ? `url(#diagonalHatch-${id2})` : fill || color2,
119218
119216
  transform: forward ? null : "translate(" + width + `,${flipAnnotation ? -extraHeight + 10 : 0}) scale(-1,${flipAnnotation ? "-" : ""}1) `,
119219
119217
  d: path2
119220
119218
  }
@@ -122365,7 +122363,7 @@ function oveCommandFactory(instance, commandDefs2) {
122365
122363
  return args;
122366
122364
  },
122367
122365
  handleReturn: noop$6,
122368
- commandDefs: commandDefs2
122366
+ commandDefs: instance.props.massageCmds ? instance.props.massageCmds(commandDefs2) : commandDefs2
122369
122367
  });
122370
122368
  }
122371
122369
  __name(oveCommandFactory, "oveCommandFactory");
@@ -122393,7 +122391,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122393
122391
  }
122394
122392
  __name(showFileDialog, "showFileDialog");
122395
122393
  const name = "@teselagen/ove";
122396
- const version = "0.5.19";
122394
+ const version = "0.5.21";
122397
122395
  const main = "./src/index.js";
122398
122396
  const type = "module";
122399
122397
  const exports$1 = {
@@ -133070,14 +133068,14 @@ function CircularPrimer(props) {
133070
133068
  hasLabel: ellipsizedName,
133071
133069
  labelNeedsFlip
133072
133070
  });
133073
- return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React__default$1.createElement(
133071
+ return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, getStripedPattern({ color: color2, id: id2 }), /* @__PURE__ */ React__default$1.createElement(
133074
133072
  "path",
133075
133073
  {
133076
133074
  className: "vePrimer veCircularViewPrimer",
133077
133075
  id: id2,
133078
133076
  strokeWidth: ".5",
133079
133077
  stroke: "black",
133080
- fill: "url(#diagonalHatch)",
133078
+ fill: `url(#diagonalHatch-${id2})`,
133081
133079
  d: path2.print()
133082
133080
  }
133083
133081
  ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
@@ -143178,6 +143176,7 @@ const userDefinedHandlersAndOpts = [
143178
143176
  "disableSetReadOnly",
143179
143177
  "allowAnnotationEditLocking",
143180
143178
  "disableBpEditing",
143179
+ "massageCmds",
143181
143180
  "showReadOnly",
143182
143181
  "showCircularity",
143183
143182
  "onHiddenEnzymeAdd",
@@ -148960,6 +148959,7 @@ export {
148960
148959
  getGaps,
148961
148960
  getOveHotkeyDefs,
148962
148961
  getRangeAnglesSpecial,
148962
+ getStructuredBases,
148963
148963
  getUserGroupLabel,
148964
148964
  specialCutsiteFilterOptions,
148965
148965
  updateEditor,
package/index.umd.js CHANGED
@@ -101256,7 +101256,6 @@ ${latestSubscriptionCallbackError.current.stack}
101256
101256
  __name(_ResizableDraggableDialog, "ResizableDraggableDialog");
101257
101257
  let ResizableDraggableDialog = _ResizableDraggableDialog;
101258
101258
  function MenuItemLink({ text: text2, onClick, icon, navTo, active: active2, disabled }) {
101259
- console.log(`navTo:`, navTo);
101260
101259
  if (disabled) {
101261
101260
  return /* @__PURE__ */ React$2.createElement("li", { className: POPOVER_DISMISS }, /* @__PURE__ */ React$2.createElement(MenuItem, { icon, disabled: true, text: text2 }));
101262
101261
  }
@@ -101308,7 +101307,6 @@ ${latestSubscriptionCallbackError.current.stack}
101308
101307
  if (navTo) {
101309
101308
  MenuItemComp = MenuItemLink;
101310
101309
  }
101311
- console.log(`navTo:`, navTo);
101312
101310
  return /* @__PURE__ */ React$2.createElement(
101313
101311
  MenuItemComp,
101314
101312
  __spreadProps(__spreadValues(__spreadValues({
@@ -134256,11 +134254,11 @@ ${seq.sequence}
134256
134254
  return selToUse;
134257
134255
  }
134258
134256
  __name(getSelFromWrappedAddon, "getSelFromWrappedAddon");
134259
- function getStripedPattern({ color: color2 }) {
134257
+ function getStripedPattern({ color: color2, id: id2 }) {
134260
134258
  return /* @__PURE__ */ React$2.createElement(
134261
134259
  "pattern",
134262
134260
  {
134263
- id: "diagonalHatch",
134261
+ id: `diagonalHatch-${id2}`,
134264
134262
  patternUnits: "userSpaceOnUse",
134265
134263
  width: "4",
134266
134264
  height: "4"
@@ -147733,7 +147731,7 @@ double click --> edit`}`;
147733
147731
  strokeWidth: "1",
147734
147732
  stroke: stroke || "black",
147735
147733
  opacity: opacity2,
147736
- fill: isStriped ? "url(#diagonalHatch)" : fill || color2,
147734
+ fill: isStriped ? `url(#diagonalHatch-${id2})` : fill || color2,
147737
147735
  transform: forward ? null : "translate(" + width + `,${flipAnnotation ? -extraHeight + 10 : 0}) scale(-1,${flipAnnotation ? "-" : ""}1) `,
147738
147736
  d: path2
147739
147737
  }
@@ -150850,7 +150848,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150850
150848
  return args;
150851
150849
  },
150852
150850
  handleReturn: noop$6,
150853
- commandDefs: commandDefs2
150851
+ commandDefs: instance.props.massageCmds ? instance.props.massageCmds(commandDefs2) : commandDefs2
150854
150852
  });
150855
150853
  }
150856
150854
  __name(oveCommandFactory, "oveCommandFactory");
@@ -150878,7 +150876,7 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
150878
150876
  }
150879
150877
  __name(showFileDialog, "showFileDialog");
150880
150878
  const name = "@teselagen/ove";
150881
- const version = "0.5.19";
150879
+ const version = "0.5.21";
150882
150880
  const main = "./src/index.js";
150883
150881
  const type = "module";
150884
150882
  const exports$1 = {
@@ -159950,14 +159948,14 @@ Part of ${annotation.translationType} Translation from BPs ${annotation.start +
159950
159948
  hasLabel: ellipsizedName,
159951
159949
  labelNeedsFlip
159952
159950
  });
159953
- return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React$2.createElement(
159951
+ return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2, id: id2 }), /* @__PURE__ */ React$2.createElement(
159954
159952
  "path",
159955
159953
  {
159956
159954
  className: "vePrimer veCircularViewPrimer",
159957
159955
  id: id2,
159958
159956
  strokeWidth: ".5",
159959
159957
  stroke: "black",
159960
- fill: "url(#diagonalHatch)",
159958
+ fill: `url(#diagonalHatch-${id2})`,
159961
159959
  d: path2.print()
159962
159960
  }
159963
159961
  ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
@@ -169546,6 +169544,7 @@ ${seqDataToCopy}\r
169546
169544
  "disableSetReadOnly",
169547
169545
  "allowAnnotationEditLocking",
169548
169546
  "disableBpEditing",
169547
+ "massageCmds",
169549
169548
  "showReadOnly",
169550
169549
  "showCircularity",
169551
169550
  "onHiddenEnzymeAdd",
@@ -183216,6 +183215,7 @@ ${seqDataToCopy}\r
183216
183215
  exports2.createVectorEditor = createVectorEditor;
183217
183216
  exports2.getOveHotkeyDefs = getOveHotkeyDefs;
183218
183217
  exports2.getRangeAnglesSpecial = getRangeAnglesSpecial;
183218
+ exports2.getStructuredBases = getStructuredBases;
183219
183219
  exports2.getUserGroupLabel = getUserGroupLabel;
183220
183220
  exports2.specialCutsiteFilterOptions = specialCutsiteFilterOptions;
183221
183221
  exports2.updateEditor = updateEditor;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ove",
3
- "version": "0.5.20",
3
+ "version": "0.5.22",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -12,7 +12,7 @@
12
12
  "dependencies": {
13
13
  "@teselagen/sequence-utils": "0.3.25",
14
14
  "@teselagen/range-utils": "0.3.7",
15
- "@teselagen/ui": "0.4.17",
15
+ "@teselagen/ui": "0.4.18",
16
16
  "@teselagen/file-utils": "0.3.16",
17
17
  "@teselagen/bounce-loader": "0.3.11",
18
18
  "@teselagen/bio-parsers": "0.4.19",
@@ -26,13 +26,13 @@ export default function CircularPrimer(props) {
26
26
  });
27
27
  return (
28
28
  <React.Fragment>
29
- {getStripedPattern({ color })}
29
+ {getStripedPattern({ color, id })}
30
30
  <path
31
31
  className="vePrimer veCircularViewPrimer"
32
32
  id={id}
33
33
  strokeWidth=".5"
34
34
  stroke="black"
35
- fill="url(#diagonalHatch)"
35
+ fill={`url(#diagonalHatch-${id})`}
36
36
  d={path.print()}
37
37
  />
38
38
  {getInternalLabel({ ...props, colorToUse: color, textPath })}
@@ -22,6 +22,7 @@ export const userDefinedHandlersAndOpts = [
22
22
  "disableSetReadOnly",
23
23
  "allowAnnotationEditLocking",
24
24
  "disableBpEditing",
25
+ "massageCmds",
25
26
  "showReadOnly",
26
27
  "showCircularity",
27
28
  "onHiddenEnzymeAdd",
@@ -239,7 +239,7 @@ function PointedAnnotation(props) {
239
239
  strokeWidth="1"
240
240
  stroke={stroke || "black"}
241
241
  opacity={opacity}
242
- fill={isStriped ? "url(#diagonalHatch)" : fill || color}
242
+ fill={isStriped ? `url(#diagonalHatch-${id})` : fill || color}
243
243
  transform={
244
244
  forward
245
245
  ? null
@@ -16,8 +16,9 @@ export default function MeltingTemp({
16
16
  </Button>
17
17
  )
18
18
  }) {
19
- const [primerConc/* , setPrimerConcentration */] = React.useState(0.0000005);
20
- const [monovalentCationConc/* , setMonovalentCationConc */] = React.useState(0.05);
19
+ const [primerConc /* , setPrimerConcentration */] = React.useState(0.0000005);
20
+ const [monovalentCationConc /* , setMonovalentCationConc */] =
21
+ React.useState(0.05);
21
22
  const [tmType, setTmType] = useTmType();
22
23
  let tm = (tmType === "neb_tm" ? calculateNebTm : calculateTm)(sequence, {
23
24
  monovalentCationConc,
package/src/index.js CHANGED
@@ -51,3 +51,4 @@ export { default as PositionAnnotationOnCircle } from "./CircularView/PositionAn
51
51
  export { default as EnzymeViewer } from "./EnzymeViewer";
52
52
  export { default as AlignmentView } from "./AlignmentView";
53
53
  export { default as getOveHotkeyDefs } from "./commands/getOveHotkeyDefs";
54
+ export { getStructuredBases } from "./RowItem/StackedAnnotations/getStructuredBases";
@@ -13,6 +13,8 @@ export function oveCommandFactory(instance, commandDefs) {
13
13
  return args;
14
14
  },
15
15
  handleReturn: noop,
16
- commandDefs
16
+ commandDefs: instance.props.massageCmds
17
+ ? instance.props.massageCmds(commandDefs)
18
+ : commandDefs
17
19
  });
18
20
  }
@@ -171,10 +171,10 @@ export function getSelFromWrappedAddon(selectionLayer, sequenceLength) {
171
171
  return selToUse;
172
172
  }
173
173
 
174
- export function getStripedPattern({ color }) {
174
+ export function getStripedPattern({ color, id }) {
175
175
  return (
176
176
  <pattern
177
- id="diagonalHatch"
177
+ id={`diagonalHatch-${id}`}
178
178
  patternUnits="userSpaceOnUse"
179
179
  width="4"
180
180
  height="4"
package/style.css CHANGED
@@ -9042,6 +9042,9 @@ button:not(:disabled):active {
9042
9042
  .bp3-tabs.bp3-vertical > .bp3-tab-panel {
9043
9043
  min-width: 0px;
9044
9044
  }
9045
+ .bp3-toast[class*="bp3-intent-"] .bp3-button.tg-clear-all-toasts {
9046
+ border: 1px solid white !important;
9047
+ }
9045
9048
  .bp3-toast[class*="bp3-intent-"] .bp3-button.tg-clear-all-toasts:hover {
9046
9049
  /* background: blue !important; */
9047
9050
  /* background: unset !important; */
@@ -30,7 +30,8 @@ export function getClientX(event: any): any;
30
30
  export function getClientY(event: any): any;
31
31
  export function hideAnnByLengthFilter(hideOpts: any, ann: any, seqLen: any): any;
32
32
  export function getSelFromWrappedAddon(selectionLayer: any, sequenceLength: any): any;
33
- export function getStripedPattern({ color }: {
33
+ export function getStripedPattern({ color, id }: {
34
34
  color: any;
35
+ id: any;
35
36
  }): import("react/jsx-runtime").JSX.Element;
36
37
  export function getEnzymeAliases(enzyme: any): any[];