@jbrowse/plugin-linear-genome-view 1.6.7 → 1.7.0
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/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +232 -0
- package/dist/BaseLinearDisplay/components/Block.js +86 -0
- package/dist/BaseLinearDisplay/components/LinearBlocks.js +110 -0
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +192 -0
- package/dist/BaseLinearDisplay/index.js +41 -0
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +763 -0
- package/dist/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js +24 -0
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +328 -0
- package/dist/LinearBareDisplay/configSchema.js +19 -0
- package/dist/LinearBareDisplay/index.js +21 -0
- package/dist/LinearBareDisplay/index.test.js +33 -0
- package/dist/LinearBareDisplay/model.d.ts +7 -7
- package/dist/LinearBareDisplay/model.js +44 -0
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +94 -0
- package/dist/LinearBasicDisplay/configSchema.js +25 -0
- package/dist/LinearBasicDisplay/index.js +23 -0
- package/dist/LinearBasicDisplay/model.d.ts +7 -7
- package/dist/LinearBasicDisplay/model.js +162 -0
- package/dist/LinearGenomeView/components/CenterLine.js +80 -0
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +137 -0
- package/dist/LinearGenomeView/components/Header.js +144 -0
- package/dist/LinearGenomeView/components/HelpDialog.js +48 -0
- package/dist/LinearGenomeView/components/ImportForm.js +330 -0
- package/dist/LinearGenomeView/components/LinearGenomeView.js +129 -0
- package/dist/LinearGenomeView/components/LinearGenomeView.test.js +234 -0
- package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js +349 -0
- package/dist/LinearGenomeView/components/MiniControls.js +83 -0
- package/dist/LinearGenomeView/components/OverviewRubberBand.js +310 -0
- package/dist/LinearGenomeView/components/OverviewScaleBar.d.ts +6 -6
- package/dist/LinearGenomeView/components/OverviewScaleBar.js +403 -0
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +331 -0
- package/dist/LinearGenomeView/components/RubberBand.js +309 -0
- package/dist/LinearGenomeView/components/Ruler.js +101 -0
- package/dist/LinearGenomeView/components/ScaleBar.js +184 -0
- package/dist/LinearGenomeView/components/ScaleBar.test.js +180 -0
- package/dist/LinearGenomeView/components/SearchBox.js +201 -0
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +159 -0
- package/dist/LinearGenomeView/components/SequenceDialog.js +304 -0
- package/dist/LinearGenomeView/components/TrackContainer.js +179 -0
- package/dist/LinearGenomeView/components/TrackLabel.js +165 -0
- package/dist/LinearGenomeView/components/TracksContainer.js +214 -0
- package/dist/LinearGenomeView/components/VerticalGuides.js +116 -0
- package/dist/LinearGenomeView/components/ZoomControls.js +92 -0
- package/dist/LinearGenomeView/components/util.js +16 -0
- package/dist/LinearGenomeView/index.js +1418 -0
- package/dist/LinearGenomeView/index.test.js +1170 -0
- package/dist/LinearGenomeView/util.js +93 -0
- package/dist/LinearGenomeView/util.test.js +78 -0
- package/dist/index.d.ts +21 -21
- package/dist/index.js +293 -6
- package/dist/plugin-linear-genome-view.cjs.development.js +37 -22
- package/dist/plugin-linear-genome-view.cjs.development.js.map +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js.map +1 -1
- package/dist/plugin-linear-genome-view.esm.js +37 -22
- package/dist/plugin-linear-genome-view.esm.js.map +1 -1
- package/package.json +4 -8
- package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +9 -12
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +2 -0
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +10 -8
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +21 -12
- package/src/LinearBasicDisplay/model.ts +17 -18
- package/src/LinearGenomeView/components/Header.tsx +1 -1
- package/src/LinearGenomeView/components/ImportForm.tsx +10 -4
- package/src/LinearGenomeView/components/LinearGenomeView.test.js +1 -0
- package/src/LinearGenomeView/components/OverviewScaleBar.tsx +2 -2
- package/src/LinearGenomeView/components/RubberBand.tsx +14 -24
- package/src/LinearGenomeView/components/ScaleBar.test.tsx +1 -0
- package/src/LinearGenomeView/components/ScaleBar.tsx +3 -6
- package/src/LinearGenomeView/components/SequenceDialog.tsx +1 -1
- package/src/LinearGenomeView/components/TrackContainer.tsx +31 -24
- package/src/LinearGenomeView/components/TrackLabel.tsx +1 -1
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.js.snap +23 -47
- package/src/LinearGenomeView/index.tsx +2 -3
|
@@ -533,12 +533,12 @@ exports[`<LinearGenomeView /> renders one track, one region 1`] = `
|
|
|
533
533
|
style="height: 100px;"
|
|
534
534
|
>
|
|
535
535
|
<div
|
|
536
|
+
class="makeStyles-renderingComponentContainer"
|
|
536
537
|
style="transform: scaleX(1);"
|
|
537
538
|
>
|
|
538
539
|
<div
|
|
539
540
|
class="makeStyles-display"
|
|
540
541
|
data-testid="display-testConfig-LinearBareDisplay"
|
|
541
|
-
role="presentation"
|
|
542
542
|
>
|
|
543
543
|
<div
|
|
544
544
|
class="makeStyles-linearBlocks"
|
|
@@ -1423,12 +1423,12 @@ exports[`<LinearGenomeView /> renders two tracks, two regions 1`] = `
|
|
|
1423
1423
|
style="height: 100px;"
|
|
1424
1424
|
>
|
|
1425
1425
|
<div
|
|
1426
|
+
class="makeStyles-renderingComponentContainer"
|
|
1426
1427
|
style="transform: scaleX(1);"
|
|
1427
1428
|
>
|
|
1428
1429
|
<div
|
|
1429
1430
|
class="makeStyles-display"
|
|
1430
1431
|
data-testid="display-testConfig-LinearBareDisplay"
|
|
1431
|
-
role="presentation"
|
|
1432
1432
|
>
|
|
1433
1433
|
<div
|
|
1434
1434
|
class="makeStyles-linearBlocks"
|
|
@@ -1443,17 +1443,11 @@ exports[`<LinearGenomeView /> renders two tracks, two regions 1`] = `
|
|
|
1443
1443
|
class="makeStyles-contentBlock"
|
|
1444
1444
|
style="width: 100px;"
|
|
1445
1445
|
>
|
|
1446
|
-
<
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
data-testid="svgfeatures"
|
|
1452
|
-
height="100"
|
|
1453
|
-
style="display: block;"
|
|
1454
|
-
width="100"
|
|
1455
|
-
/>
|
|
1456
|
-
</div>
|
|
1446
|
+
<svg
|
|
1447
|
+
data-testid="svgfeatures"
|
|
1448
|
+
height="100"
|
|
1449
|
+
width="100"
|
|
1450
|
+
/>
|
|
1457
1451
|
</div>
|
|
1458
1452
|
<div
|
|
1459
1453
|
class="makeStyles-interRegionPaddingBlock"
|
|
@@ -1463,17 +1457,11 @@ exports[`<LinearGenomeView /> renders two tracks, two regions 1`] = `
|
|
|
1463
1457
|
class="makeStyles-contentBlock"
|
|
1464
1458
|
style="width: 1000px;"
|
|
1465
1459
|
>
|
|
1466
|
-
<
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
data-testid="svgfeatures"
|
|
1472
|
-
height="100"
|
|
1473
|
-
style="display: block;"
|
|
1474
|
-
width="1000"
|
|
1475
|
-
/>
|
|
1476
|
-
</div>
|
|
1460
|
+
<svg
|
|
1461
|
+
data-testid="svgfeatures"
|
|
1462
|
+
height="100"
|
|
1463
|
+
width="1000"
|
|
1464
|
+
/>
|
|
1477
1465
|
</div>
|
|
1478
1466
|
<div
|
|
1479
1467
|
class="makeStyles-boundaryPaddingBlock"
|
|
@@ -1578,12 +1566,12 @@ exports[`<LinearGenomeView /> renders two tracks, two regions 1`] = `
|
|
|
1578
1566
|
style="height: 100px;"
|
|
1579
1567
|
>
|
|
1580
1568
|
<div
|
|
1569
|
+
class="makeStyles-renderingComponentContainer"
|
|
1581
1570
|
style="transform: scaleX(1);"
|
|
1582
1571
|
>
|
|
1583
1572
|
<div
|
|
1584
1573
|
class="makeStyles-display"
|
|
1585
1574
|
data-testid="display-testConfig2-LinearBareDisplay"
|
|
1586
|
-
role="presentation"
|
|
1587
1575
|
>
|
|
1588
1576
|
<div
|
|
1589
1577
|
class="makeStyles-linearBlocks"
|
|
@@ -1598,17 +1586,11 @@ exports[`<LinearGenomeView /> renders two tracks, two regions 1`] = `
|
|
|
1598
1586
|
class="makeStyles-contentBlock"
|
|
1599
1587
|
style="width: 100px;"
|
|
1600
1588
|
>
|
|
1601
|
-
<
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
data-testid="svgfeatures"
|
|
1607
|
-
height="100"
|
|
1608
|
-
style="display: block;"
|
|
1609
|
-
width="100"
|
|
1610
|
-
/>
|
|
1611
|
-
</div>
|
|
1589
|
+
<svg
|
|
1590
|
+
data-testid="svgfeatures"
|
|
1591
|
+
height="100"
|
|
1592
|
+
width="100"
|
|
1593
|
+
/>
|
|
1612
1594
|
</div>
|
|
1613
1595
|
<div
|
|
1614
1596
|
class="makeStyles-interRegionPaddingBlock"
|
|
@@ -1618,17 +1600,11 @@ exports[`<LinearGenomeView /> renders two tracks, two regions 1`] = `
|
|
|
1618
1600
|
class="makeStyles-contentBlock"
|
|
1619
1601
|
style="width: 1000px;"
|
|
1620
1602
|
>
|
|
1621
|
-
<
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
data-testid="svgfeatures"
|
|
1627
|
-
height="100"
|
|
1628
|
-
style="display: block;"
|
|
1629
|
-
width="1000"
|
|
1630
|
-
/>
|
|
1631
|
-
</div>
|
|
1603
|
+
<svg
|
|
1604
|
+
data-testid="svgfeatures"
|
|
1605
|
+
height="100"
|
|
1606
|
+
width="1000"
|
|
1607
|
+
/>
|
|
1632
1608
|
</div>
|
|
1633
1609
|
<div
|
|
1634
1610
|
class="makeStyles-boundaryPaddingBlock"
|
|
@@ -2,7 +2,7 @@ import { getConf, AnyConfigurationModel } from '@jbrowse/core/configuration'
|
|
|
2
2
|
import { BaseViewModel } from '@jbrowse/core/pluggableElementTypes/models'
|
|
3
3
|
import { Region } from '@jbrowse/core/util/types'
|
|
4
4
|
import { ElementId, Region as MUIRegion } from '@jbrowse/core/util/types/mst'
|
|
5
|
-
import { MenuItem } from '@jbrowse/core/ui'
|
|
5
|
+
import { MenuItem, ReturnToImportFormDialog } from '@jbrowse/core/ui'
|
|
6
6
|
import {
|
|
7
7
|
assembleLocString,
|
|
8
8
|
clamp,
|
|
@@ -52,7 +52,6 @@ import { renderToSvg } from './components/LinearGenomeViewSvg'
|
|
|
52
52
|
import RefNameAutocomplete from './components/RefNameAutocomplete'
|
|
53
53
|
import SearchBox from './components/SearchBox'
|
|
54
54
|
import ExportSvgDlg from './components/ExportSvgDialog'
|
|
55
|
-
import { ReturnToImportFormDialog } from '@jbrowse/core/ui'
|
|
56
55
|
|
|
57
56
|
export interface BpOffset {
|
|
58
57
|
refName?: string
|
|
@@ -100,8 +99,8 @@ export const HEADER_OVERVIEW_HEIGHT = 20
|
|
|
100
99
|
export const SCALE_BAR_HEIGHT = 17
|
|
101
100
|
export const RESIZE_HANDLE_HEIGHT = 3
|
|
102
101
|
export const INTER_REGION_PADDING_WIDTH = 2
|
|
103
|
-
export const WIDGET_HEIGHT = 32
|
|
104
102
|
export const SPACING = 7
|
|
103
|
+
export const WIDGET_HEIGHT = 32
|
|
105
104
|
|
|
106
105
|
function localStorageGetItem(item: string) {
|
|
107
106
|
return typeof localStorage !== 'undefined'
|