@sjcrh/proteinpaint-types 2.143.0 → 2.144.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.
@@ -21,7 +21,7 @@ var validGRIN2Request = (input) => {
21
21
  const errors = [];
22
22
  const __is = (input2) => {
23
23
  const $join = import_typia.createValidate.join;
24
- const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.plot_width || "number" === typeof input3.plot_width) && (void 0 === input3.plot_height || "number" === typeof input3.plot_height) && true && (void 0 === input3.snvindelOptions || "object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) && $io1(input3.snvindelOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io2(input3.cnvOptions)) && (void 0 === input3.fusionOptions || "object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) && $io3(input3.fusionOptions));
24
+ const $io0 = (input3) => "string" === typeof input3.genome && "string" === typeof input3.dslabel && (void 0 === input3.devicePixelRatio || "number" === typeof input3.devicePixelRatio) && (void 0 === input3.width || "number" === typeof input3.width) && (void 0 === input3.height || "number" === typeof input3.height) && (void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius) && true && (void 0 === input3.snvindelOptions || "object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) && $io1(input3.snvindelOptions)) && (void 0 === input3.cnvOptions || "object" === typeof input3.cnvOptions && null !== input3.cnvOptions && false === Array.isArray(input3.cnvOptions) && $io2(input3.cnvOptions)) && (void 0 === input3.fusionOptions || "object" === typeof input3.fusionOptions && null !== input3.fusionOptions && false === Array.isArray(input3.fusionOptions) && $io3(input3.fusionOptions));
25
25
  const $io1 = (input3) => (void 0 === input3.minTotalDepth || "number" === typeof input3.minTotalDepth) && (void 0 === input3.minAltAlleleCount || "number" === typeof input3.minAltAlleleCount) && (void 0 === input3.consequences || Array.isArray(input3.consequences) && input3.consequences.every((elem) => "string" === typeof elem)) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator);
26
26
  const $io2 = (input3) => (void 0 === input3.lossThreshold || "number" === typeof input3.lossThreshold) && (void 0 === input3.gainThreshold || "number" === typeof input3.gainThreshold) && (void 0 === input3.maxSegLength || "number" === typeof input3.maxSegLength) && (void 0 === input3.hyperMutator || "number" === typeof input3.hyperMutator);
27
27
  const $io3 = (input3) => Object.keys(input3).every((key) => {
@@ -50,14 +50,18 @@ var validGRIN2Request = (input) => {
50
50
  path: _path2 + ".devicePixelRatio",
51
51
  expected: "(number | undefined)",
52
52
  value: input3.devicePixelRatio
53
- }), void 0 === input3.plot_width || "number" === typeof input3.plot_width || $report(_exceptionable2, {
54
- path: _path2 + ".plot_width",
53
+ }), void 0 === input3.width || "number" === typeof input3.width || $report(_exceptionable2, {
54
+ path: _path2 + ".width",
55
55
  expected: "(number | undefined)",
56
- value: input3.plot_width
57
- }), void 0 === input3.plot_height || "number" === typeof input3.plot_height || $report(_exceptionable2, {
58
- path: _path2 + ".plot_height",
56
+ value: input3.width
57
+ }), void 0 === input3.height || "number" === typeof input3.height || $report(_exceptionable2, {
58
+ path: _path2 + ".height",
59
59
  expected: "(number | undefined)",
60
- value: input3.plot_height
60
+ value: input3.height
61
+ }), void 0 === input3.pngDotRadius || "number" === typeof input3.pngDotRadius || $report(_exceptionable2, {
62
+ path: _path2 + ".pngDotRadius",
63
+ expected: "(number | undefined)",
64
+ value: input3.pngDotRadius
61
65
  }), true, void 0 === input3.snvindelOptions || ("object" === typeof input3.snvindelOptions && null !== input3.snvindelOptions && false === Array.isArray(input3.snvindelOptions) || $report(_exceptionable2, {
62
66
  path: _path2 + ".snvindelOptions",
63
67
  expected: "(__type | undefined)",
package/dist/grin2.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  GRIN2Payload,
3
3
  validGRIN2Request,
4
4
  validGRIN2Response
5
- } from "./chunk-TCEHHLIZ.js";
5
+ } from "./chunk-D6IBJJ63.js";
6
6
  import "./chunk-YNHC5SXO.js";
7
7
  export {
8
8
  GRIN2Payload,
package/dist/index.js CHANGED
@@ -177,7 +177,7 @@ import {
177
177
  GRIN2Payload,
178
178
  validGRIN2Request,
179
179
  validGRIN2Response
180
- } from "./chunk-TCEHHLIZ.js";
180
+ } from "./chunk-D6IBJJ63.js";
181
181
  import {
182
182
  healthcheckPayload,
183
183
  validHealthCheckRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-types",
3
- "version": "2.143.0",
3
+ "version": "2.144.0",
4
4
  "type": "module",
5
5
  "description": "Shared type definitions between ProteinPaint server and client code",
6
6
  "main": "src/index.ts",
@@ -21,10 +21,13 @@ export type GRIN2Request = {
21
21
  devicePixelRatio?: number
22
22
 
23
23
  /** Desired plot width in pixels (default: 1000) */
24
- plot_width?: number
24
+ width?: number
25
25
 
26
26
  /** Desired plot height in pixels (default: 400) */
27
- plot_height?: number
27
+ height?: number
28
+
29
+ /** Radius of the PNG rendered dots (default: 2) */
30
+ pngDotRadius?: number
28
31
 
29
32
  /** Filter from existing PP infrastructure */
30
33
  filter?: any // Filter object passed to get_samples(filter, ds)