@qe-libs/qeviz 0.4.0 → 0.5.2
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/README.md +25 -0
- package/dist/qeviz.es.js +2268 -3613
- package/dist/qeviz.es.js.map +1 -1
- package/dist/qeviz.umd.js +5 -4782
- package/dist/qeviz.umd.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -188,6 +188,31 @@ In the language adapters this is `fixed_size = TRUE` on `qe_points()` / `qe_grou
|
|
|
188
188
|
(R), `fixed_size=True` on `.points()` / `.group()` (Python), and
|
|
189
189
|
`fixed_size=true` on `qe_points` / `qe_group` (Julia).
|
|
190
190
|
|
|
191
|
+
#### Point scaling and centring
|
|
192
|
+
|
|
193
|
+
Unit points and means sit much closer to the origin than the code nodes, so
|
|
194
|
+
by default qeviz rescales them to fill the plot. Two `<qe-graph>` attributes
|
|
195
|
+
change how points are scaled and where the view is centred; both are optional
|
|
196
|
+
and unset by default:
|
|
197
|
+
|
|
198
|
+
| `<qe-graph>` attributes | Points are multiplied by |
|
|
199
|
+
|---|---|
|
|
200
|
+
| neither (default) | qeviz's fit: farthest node ÷ farthest point, so the outermost point meets the outermost node (the ENA Web Tool's default) |
|
|
201
|
+
| `scale-points="false"` | 1: raw coordinates, where each point sits at its network's centroid |
|
|
202
|
+
| `point-scale="N"` | N, overriding both, e.g. to match another tool's scaling |
|
|
203
|
+
|
|
204
|
+
`center="content"` centres the view on the middle of the nodes' and points'
|
|
205
|
+
bounding box instead of the origin (0, 0), so a network that sits off to one
|
|
206
|
+
side of the origin fills the plot; `range="network"` is then measured from that
|
|
207
|
+
centre. The default is the origin, the ENA convention.
|
|
208
|
+
|
|
209
|
+
```html
|
|
210
|
+
<qe-graph scale-points="false" center="content"></qe-graph>
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
In R these are `qe_plot(scale_points =, point_scale =, center =)`; the Python and
|
|
214
|
+
Julia adapters set them as `<qe-graph>` attributes for now.
|
|
215
|
+
|
|
191
216
|
Child element presence controls layer visibility — add `<qe-points>` to show unit dots, omit it to hide them. A `MutationObserver` watches for child additions, removals, and attribute changes, so interactive controls can manipulate the DOM directly:
|
|
192
217
|
|
|
193
218
|
```js
|