@genome-spy/app 1.1.1 → 1.2.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.
Files changed (45) hide show
  1. package/dist/{agentApi-sPuuT0KS.js → agentApi-8hMSlqAQ.js} +8307 -6861
  2. package/dist/agentApi.es.js +5569 -4250
  3. package/dist/agentShared.es.js +9 -9
  4. package/dist/{canvas2d-iDK4BC5j.js → canvas2d-Bd8H8MMo.js} +149 -134
  5. package/dist/{canvas2d-MXaFeZnP.js → canvas2d-D6VYooRf.js} +136 -122
  6. package/dist/{clipOptions-Cba4I0AO.js → clipOptions-DElJ8dTZ.js} +2274 -2080
  7. package/dist/{clipOptions-B5PibDq3.js → clipOptions-D_wBNhzs.js} +2121 -1957
  8. package/dist/{viewIdentityRegistry-BDKkEjXl.js → containerView-CRJSc4bM.js} +24 -31
  9. package/dist/{viewIdentityRegistry-BIYd4TE0.js → containerView-aEVmYmkA.js} +24 -31
  10. package/dist/{debug-DbigmdrK.js → debug-CQ0agCrd.js} +9 -9
  11. package/dist/{debug-BlqDxTw3.js → debug-DkIMiGdW.js} +10 -10
  12. package/dist/index.es.js +3582 -3566
  13. package/dist/index.js +698 -454
  14. package/dist/{indexer-En7gpvLN.js → indexer-DDC0YRGn.js} +1 -1
  15. package/dist/{indexer-DbFTKGlm.js → indexer-DOYMJ-Md.js} +1 -1
  16. package/dist/markUtils-CvLDz744.js +75 -0
  17. package/dist/{metadataChannels-DV62inJh.js → metadataChannels-DLSmx7kU.js} +6 -3
  18. package/dist/{order-B4uR9Q04.js → order-BVvkjDRT.js} +369 -316
  19. package/dist/{order-BSPy5DI8.js → order-DmMoZsi1.js} +360 -308
  20. package/dist/{rasterExport-DQH3hVg_.js → rasterExport-DxvowWjH.js} +3 -3
  21. package/dist/{rasterExport-B62RmAK1.js → rasterExport-jeRVq6kY.js} +4 -4
  22. package/dist/{rasterization-B05bDo5e.js → rasterization-DFj3Cvx4.js} +26 -19
  23. package/dist/{rectangle-DE98gIxF.js → rectangle-DZTR6NFQ.js} +10 -1
  24. package/dist/rectangle-Dl4Dy0hS.js +191 -0
  25. package/dist/{renderCanvas2D-Bdv-B4wj.js → renderCanvas2D-Bfm1NHFu.js} +96 -91
  26. package/dist/{renderCanvas2D-ChdoHGrU.js → renderCanvas2D-DVjhp834.js} +98 -93
  27. package/dist/{scalePosition-ByvlXaML.js → scalePosition-0aeqp_kz.js} +8 -1
  28. package/dist/schema.json +27198 -13709
  29. package/dist/style.css +1 -1
  30. package/dist/{svg-N3tj05-e.js → svg-Bm2zxBPu.js} +315 -316
  31. package/dist/{svg-DHsq1RpV.js → svg-CkfuhONt.js} +290 -291
  32. package/dist/{svgRasterizer-CYVDlt5z.js → svgRasterizer-DoRQEqFA.js} +2 -2
  33. package/dist/{svgRasterizer-CvCBlxLj.js → svgRasterizer-raDDhBF-.js} +3 -3
  34. package/dist/{vega-scale-Byaw1K8O.js → vega-scale-BoGHANI7.js} +90 -90
  35. package/dist/{vega-scale-Ctz_wa3z.js → vega-scale-o9TRyzYH.js} +699 -699
  36. package/dist/viewError-BkJeVYXA.js +33 -0
  37. package/dist/viewError-IYqyluc7.js +33 -0
  38. package/dist/{viewSelectors-DDLW-byr.js → viewSelectors-7LyasQN-.js} +498 -434
  39. package/dist/{viewSelectors-j-F9XwsE.js → viewSelectors-CbmkSQRT.js} +549 -485
  40. package/dist/{viewUtils-JX6CMEYH.js → viewUtils-DuddMNNw.js} +2138 -2009
  41. package/dist/{webgl-Dw8xqZpX.js → webgl-CQfvgnxo.js} +1229 -1140
  42. package/dist/{webgl-DdmOwEH0.js → webgl-DVYkXtiZ.js} +1477 -1389
  43. package/package.json +4 -4
  44. package/src/spec/view.d.ts +44 -5
  45. package/dist/viewError-BiR9VCgL.js +0 -29
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "contributors": [],
9
9
  "license": "MIT",
10
10
  "homepage": "https://genomespy.app/",
11
- "version": "1.1.1",
11
+ "version": "1.2.0",
12
12
  "main": "dist/index.js",
13
13
  "module": "dist/index.es.js",
14
14
  "type": "module",
@@ -70,7 +70,7 @@
70
70
  "@fortawesome/fontawesome-free": "^6.4.2",
71
71
  "@fortawesome/fontawesome-svg-core": "^6.4.2",
72
72
  "@fortawesome/free-solid-svg-icons": "^6.4.2",
73
- "@genome-spy/core": "^1.1.1",
73
+ "@genome-spy/core": "^1.2.0",
74
74
  "@reduxjs/toolkit": "^2.11.0",
75
75
  "d3-color": "^3.1.0",
76
76
  "idb": "^7.1.1",
@@ -83,7 +83,7 @@
83
83
  "zarrita": "^0.6.1"
84
84
  },
85
85
  "devDependencies": {
86
- "@genome-spy/app-agent": "^1.1.1",
87
- "@genome-spy/inspector": "^1.1.1"
86
+ "@genome-spy/app-agent": "^1.2.0",
87
+ "@genome-spy/inspector": "^1.2.0"
88
88
  }
89
89
  }
@@ -1,11 +1,15 @@
1
1
  import {
2
2
  ConcatSpec as CoreConcatSpec,
3
+ FacetSpec as CoreFacetSpec,
3
4
  HConcatSpec as CoreHConcatSpec,
4
5
  ImportSpec,
5
6
  LayerSpec as CoreLayerSpec,
6
7
  MultiscaleSpec as CoreMultiscaleSpec,
7
8
  UnitSpec as CoreUnitSpec,
8
9
  VConcatSpec as CoreVConcatSpec,
10
+ SurroundSpec as CoreSurroundSpec,
11
+ SurroundSideSpec as CoreSurroundSideSpec,
12
+ Side,
9
13
  } from "@genome-spy/core/spec/view.js";
10
14
  import { SampleSpec } from "./sampleView.js";
11
15
 
@@ -84,10 +88,7 @@ export type AppMultiscaleSpec = Omit<
84
88
  templates?: Record<string, AppNestedViewSpec>;
85
89
 
86
90
  multiscale: (
87
- | AppLayerSpec
88
- | AppUnitSpec
89
- | AppMultiscaleSpec
90
- | ImportSpec
91
+ AppLayerSpec | AppUnitSpec | AppMultiscaleSpec | ImportSpec
91
92
  )[];
92
93
  };
93
94
 
@@ -98,6 +99,13 @@ export type AppVConcatSpec = Omit<CoreVConcatSpec, "templates" | "vconcat"> &
98
99
  vconcat: (AppViewSpec | ImportSpec)[];
99
100
  };
100
101
 
102
+ export type AppFacetSpec = Omit<CoreFacetSpec, "templates" | "spec"> &
103
+ AppConfigurableVisibilitySpec & {
104
+ templates?: Record<string, AppNestedViewSpec>;
105
+
106
+ spec: AppLayerSpec | AppUnitSpec | ImportSpec;
107
+ };
108
+
101
109
  export type AppHConcatSpec = Omit<CoreHConcatSpec, "templates" | "hconcat"> &
102
110
  AppConfigurableVisibilitySpec & {
103
111
  templates?: Record<string, AppNestedViewSpec>;
@@ -112,13 +120,44 @@ export type AppConcatSpec = Omit<CoreConcatSpec, "templates" | "concat"> &
112
120
  concat: (AppViewSpec | ImportSpec)[];
113
121
  };
114
122
 
123
+ export type AppSurroundPlotSpec =
124
+ AppUnitSpec | AppLayerSpec | AppMultiscaleSpec | ImportSpec;
125
+
126
+ export type AppSurroundSideSpec = Omit<
127
+ CoreSurroundSideSpec,
128
+ "templates" | "views"
129
+ > &
130
+ AppConfigurableVisibilitySpec & {
131
+ templates?: Record<string, AppNestedViewSpec>;
132
+ views: (AppSurroundPlotSpec | AppSurroundSpec)[];
133
+ };
134
+
135
+ export type AppSurroundSides = Partial<
136
+ Record<
137
+ Side,
138
+ AppSurroundSideSpec | (AppSurroundPlotSpec | AppSurroundSpec)[]
139
+ >
140
+ >;
141
+
142
+ export type AppSurroundSpec = Omit<
143
+ CoreSurroundSpec,
144
+ "templates" | "spec" | "surround"
145
+ > &
146
+ AppConfigurableVisibilitySpec & {
147
+ templates?: Record<string, AppNestedViewSpec>;
148
+ spec: AppSurroundPlotSpec;
149
+ surround: AppSurroundSides;
150
+ };
151
+
115
152
  export type AppNestedViewSpec =
116
153
  | AppUnitSpec
117
154
  | AppLayerSpec
118
155
  | AppMultiscaleSpec
156
+ | AppFacetSpec
119
157
  | AppVConcatSpec
120
158
  | AppHConcatSpec
121
- | AppConcatSpec;
159
+ | AppConcatSpec
160
+ | AppSurroundSpec;
122
161
 
123
162
  // App root may contain SampleSpec, but recursive descendants cannot.
124
163
  export type AppViewSpec = AppNestedViewSpec | SampleSpec;
@@ -1,29 +0,0 @@
1
- //#region ../core/src/utils/propertyCacher.js
2
- var e = Symbol("cacheMap");
3
- function t(e, t, n) {
4
- let r = a(e).get(t);
5
- return r === void 0 && (r = n(t), a(e).set(t, r)), r;
6
- }
7
- function n(e, t) {
8
- a(e).delete(t);
9
- }
10
- function r(e, t) {
11
- let n = a(e);
12
- for (let e of n.keys()) e.startsWith(t) && n.delete(e);
13
- a(e).delete(t);
14
- }
15
- function i(t) {
16
- t[e] = /* @__PURE__ */ new Map();
17
- }
18
- function a(t) {
19
- return t[e] || i(t), t[e];
20
- }
21
- //#endregion
22
- //#region ../core/src/view/viewError.js
23
- var o = class extends Error {
24
- constructor(e, t) {
25
- super(e), this.name = "ViewError", this.view = t;
26
- }
27
- };
28
- //#endregion
29
- export { r as a, n as i, t as n, i as r, o as t };