@jbrowse/plugin-lollipop 3.0.2 → 3.0.4
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/LollipopRenderer/FloatingLayoutSession.d.ts +6 -0
- package/dist/LollipopRenderer/FloatingLayoutSession.js +17 -0
- package/dist/LollipopRenderer/LollipopRenderer.d.ts +5 -10
- package/dist/LollipopRenderer/LollipopRenderer.js +4 -48
- package/esm/LollipopRenderer/FloatingLayoutSession.d.ts +6 -0
- package/esm/LollipopRenderer/FloatingLayoutSession.js +13 -0
- package/esm/LollipopRenderer/LollipopRenderer.d.ts +5 -10
- package/esm/LollipopRenderer/LollipopRenderer.js +5 -16
- package/package.json +4 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LayoutSession } from '@jbrowse/core/pluggableElementTypes/renderers/LayoutSession';
|
|
2
|
+
import { MultiLayout } from '@jbrowse/core/util/layouts';
|
|
3
|
+
export declare class FloatingLayoutSession extends LayoutSession {
|
|
4
|
+
makeLayout(): MultiLayout<import("@jbrowse/core/util/layouts").BaseLayout<unknown>, unknown>;
|
|
5
|
+
layoutIsValid(): boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FloatingLayoutSession = void 0;
|
|
4
|
+
const LayoutSession_1 = require("@jbrowse/core/pluggableElementTypes/renderers/LayoutSession");
|
|
5
|
+
const layouts_1 = require("@jbrowse/core/util/layouts");
|
|
6
|
+
const Layout_1 = require("./Layout");
|
|
7
|
+
class FloatingLayoutSession extends LayoutSession_1.LayoutSession {
|
|
8
|
+
makeLayout() {
|
|
9
|
+
const { end, start } = this.props.regions[0];
|
|
10
|
+
const widthPx = (end - start) / this.props.bpPerPx;
|
|
11
|
+
return new layouts_1.MultiLayout(Layout_1.FloatingLayout, { width: widthPx });
|
|
12
|
+
}
|
|
13
|
+
layoutIsValid() {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.FloatingLayoutSession = FloatingLayoutSession;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
+
import BoxRendererType from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
2
|
+
import { FloatingLayoutSession } from './FloatingLayoutSession';
|
|
3
|
+
import { PrecomputedFloatingLayout } from './Layout';
|
|
4
|
+
import type { LayoutSessionProps } from '@jbrowse/core/pluggableElementTypes/renderers/LayoutSession';
|
|
1
5
|
export default class LollipopRenderer extends BoxRendererType {
|
|
2
|
-
|
|
6
|
+
createLayoutSession(props: LayoutSessionProps): FloatingLayoutSession;
|
|
3
7
|
deserializeLayoutInClient(json: any): PrecomputedFloatingLayout;
|
|
4
8
|
}
|
|
5
|
-
import BoxRendererType from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
6
|
-
declare class FloatingLayoutSession extends LayoutSession {
|
|
7
|
-
makeLayout(): MultiLayout<import("@jbrowse/core/util/layouts").BaseLayout<any>, any>;
|
|
8
|
-
layoutIsValid(): boolean;
|
|
9
|
-
}
|
|
10
|
-
import { PrecomputedFloatingLayout } from './Layout';
|
|
11
|
-
import { LayoutSession } from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
12
|
-
import MultiLayout from '@jbrowse/core/util/layouts/MultiLayout';
|
|
13
|
-
export {};
|
|
@@ -1,58 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
4
|
};
|
|
38
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const BoxRendererType_1 =
|
|
40
|
-
const
|
|
6
|
+
const BoxRendererType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType"));
|
|
7
|
+
const FloatingLayoutSession_1 = require("./FloatingLayoutSession");
|
|
41
8
|
const Layout_1 = require("./Layout");
|
|
42
|
-
class FloatingLayoutSession extends BoxRendererType_1.LayoutSession {
|
|
43
|
-
makeLayout() {
|
|
44
|
-
'sequenceAdapter';
|
|
45
|
-
const { end, start } = this.regions[0];
|
|
46
|
-
const widthPx = (end - start) / this.bpPerPx;
|
|
47
|
-
return new MultiLayout_1.default(Layout_1.FloatingLayout, { width: widthPx });
|
|
48
|
-
}
|
|
49
|
-
layoutIsValid() {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
9
|
class LollipopRenderer extends BoxRendererType_1.default {
|
|
54
|
-
|
|
55
|
-
return new FloatingLayoutSession(
|
|
10
|
+
createLayoutSession(props) {
|
|
11
|
+
return new FloatingLayoutSession_1.FloatingLayoutSession(props);
|
|
56
12
|
}
|
|
57
13
|
deserializeLayoutInClient(json) {
|
|
58
14
|
return new Layout_1.PrecomputedFloatingLayout(json);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { LayoutSession } from '@jbrowse/core/pluggableElementTypes/renderers/LayoutSession';
|
|
2
|
+
import { MultiLayout } from '@jbrowse/core/util/layouts';
|
|
3
|
+
export declare class FloatingLayoutSession extends LayoutSession {
|
|
4
|
+
makeLayout(): MultiLayout<import("@jbrowse/core/util/layouts").BaseLayout<unknown>, unknown>;
|
|
5
|
+
layoutIsValid(): boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LayoutSession } from '@jbrowse/core/pluggableElementTypes/renderers/LayoutSession';
|
|
2
|
+
import { MultiLayout } from '@jbrowse/core/util/layouts';
|
|
3
|
+
import { FloatingLayout } from './Layout';
|
|
4
|
+
export class FloatingLayoutSession extends LayoutSession {
|
|
5
|
+
makeLayout() {
|
|
6
|
+
const { end, start } = this.props.regions[0];
|
|
7
|
+
const widthPx = (end - start) / this.props.bpPerPx;
|
|
8
|
+
return new MultiLayout(FloatingLayout, { width: widthPx });
|
|
9
|
+
}
|
|
10
|
+
layoutIsValid() {
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
+
import BoxRendererType from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
2
|
+
import { FloatingLayoutSession } from './FloatingLayoutSession';
|
|
3
|
+
import { PrecomputedFloatingLayout } from './Layout';
|
|
4
|
+
import type { LayoutSessionProps } from '@jbrowse/core/pluggableElementTypes/renderers/LayoutSession';
|
|
1
5
|
export default class LollipopRenderer extends BoxRendererType {
|
|
2
|
-
|
|
6
|
+
createLayoutSession(props: LayoutSessionProps): FloatingLayoutSession;
|
|
3
7
|
deserializeLayoutInClient(json: any): PrecomputedFloatingLayout;
|
|
4
8
|
}
|
|
5
|
-
import BoxRendererType from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
6
|
-
declare class FloatingLayoutSession extends LayoutSession {
|
|
7
|
-
makeLayout(): MultiLayout<import("@jbrowse/core/util/layouts").BaseLayout<any>, any>;
|
|
8
|
-
layoutIsValid(): boolean;
|
|
9
|
-
}
|
|
10
|
-
import { PrecomputedFloatingLayout } from './Layout';
|
|
11
|
-
import { LayoutSession } from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
12
|
-
import MultiLayout from '@jbrowse/core/util/layouts/MultiLayout';
|
|
13
|
-
export {};
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import BoxRendererType
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
class FloatingLayoutSession extends LayoutSession {
|
|
5
|
-
makeLayout() {
|
|
6
|
-
'sequenceAdapter';
|
|
7
|
-
const { end, start } = this.regions[0];
|
|
8
|
-
const widthPx = (end - start) / this.bpPerPx;
|
|
9
|
-
return new MultiLayout(FloatingLayout, { width: widthPx });
|
|
10
|
-
}
|
|
11
|
-
layoutIsValid() {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
import BoxRendererType from '@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType';
|
|
2
|
+
import { FloatingLayoutSession } from './FloatingLayoutSession';
|
|
3
|
+
import { PrecomputedFloatingLayout } from './Layout';
|
|
15
4
|
export default class LollipopRenderer extends BoxRendererType {
|
|
16
|
-
|
|
17
|
-
return new FloatingLayoutSession(
|
|
5
|
+
createLayoutSession(props) {
|
|
6
|
+
return new FloatingLayoutSession(props);
|
|
18
7
|
}
|
|
19
8
|
deserializeLayoutInClient(json) {
|
|
20
9
|
return new PrecomputedFloatingLayout(json);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-lollipop",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "JBrowse 2 plugin for lollipops",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^3.0.
|
|
40
|
-
"@jbrowse/plugin-linear-genome-view": "^3.0.
|
|
39
|
+
"@jbrowse/core": "^3.0.4",
|
|
40
|
+
"@jbrowse/plugin-linear-genome-view": "^3.0.4",
|
|
41
41
|
"@mui/material": "^6.0.0",
|
|
42
42
|
"mobx": "^6.0.0",
|
|
43
43
|
"mobx-react": "^9.0.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "61e6d26f83acbf58a946c2add3415bc46b878df9"
|
|
56
56
|
}
|