react-cheminfo 0.132.0 → 0.134.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/README.md +16 -0
- package/lib/drawing/captionEditor/CaptionEditor.d.ts +3 -3
- package/lib/drawing/captionEditor/CaptionEditor.d.ts.map +1 -1
- package/lib/drawing/captionEditor/CaptionEditor.js +8 -4
- package/lib/drawing/captionEditor/CaptionEditor.js.map +1 -1
- package/lib/drawing/captionEditor/CaptionToolbar.d.ts +4 -2
- package/lib/drawing/captionEditor/CaptionToolbar.d.ts.map +1 -1
- package/lib/drawing/captionEditor/CaptionToolbar.js +6 -4
- package/lib/drawing/captionEditor/CaptionToolbar.js.map +1 -1
- package/lib/drawing/captionEditor/index.d.ts +2 -0
- package/lib/drawing/captionEditor/index.d.ts.map +1 -1
- package/lib/drawing/captionEditor/index.js +1 -0
- package/lib/drawing/captionEditor/index.js.map +1 -1
- package/lib/drawing/captionEditor/toolbarInView.d.ts +40 -0
- package/lib/drawing/captionEditor/toolbarInView.d.ts.map +1 -0
- package/lib/drawing/captionEditor/toolbarInView.js +53 -0
- package/lib/drawing/captionEditor/toolbarInView.js.map +1 -0
- package/lib/drawing/core/camera.d.ts +2 -0
- package/lib/drawing/core/camera.d.ts.map +1 -1
- package/lib/drawing/core/camera.js +2 -0
- package/lib/drawing/core/camera.js.map +1 -1
- package/lib/drawing/core/index.d.ts +1 -1
- package/lib/drawing/core/index.d.ts.map +1 -1
- package/lib/drawing/core/index.js +1 -1
- package/lib/drawing/core/index.js.map +1 -1
- package/lib/drawing/render/index.d.ts +1 -1
- package/lib/drawing/render/index.d.ts.map +1 -1
- package/lib/drawing/render/index.js +1 -1
- package/lib/drawing/render/index.js.map +1 -1
- package/lib/drawing/render/pageGrid.d.ts +16 -0
- package/lib/drawing/render/pageGrid.d.ts.map +1 -1
- package/lib/drawing/render/pageGrid.js +28 -10
- package/lib/drawing/render/pageGrid.js.map +1 -1
- package/lib/drawing/ui/PageField.d.ts +29 -0
- package/lib/drawing/ui/PageField.d.ts.map +1 -0
- package/lib/drawing/ui/PageField.js +38 -0
- package/lib/drawing/ui/PageField.js.map +1 -0
- package/lib/drawing/ui/PageGrid.d.ts +20 -0
- package/lib/drawing/ui/PageGrid.d.ts.map +1 -0
- package/lib/drawing/ui/PageGrid.js +26 -0
- package/lib/drawing/ui/PageGrid.js.map +1 -0
- package/lib/drawing/ui/PageSideInput.d.ts +28 -0
- package/lib/drawing/ui/PageSideInput.d.ts.map +1 -0
- package/lib/drawing/ui/PageSideInput.js +47 -0
- package/lib/drawing/ui/PageSideInput.js.map +1 -0
- package/lib/drawing/ui/PageToolbar.d.ts +16 -0
- package/lib/drawing/ui/PageToolbar.d.ts.map +1 -0
- package/lib/drawing/ui/PageToolbar.js +16 -0
- package/lib/drawing/ui/PageToolbar.js.map +1 -0
- package/lib/drawing/ui/PrintSheets.d.ts +32 -0
- package/lib/drawing/ui/PrintSheets.d.ts.map +1 -0
- package/lib/drawing/ui/PrintSheets.js +17 -0
- package/lib/drawing/ui/PrintSheets.js.map +1 -0
- package/lib/drawing/ui/TextToolIcon.d.ts +19 -0
- package/lib/drawing/ui/TextToolIcon.d.ts.map +1 -0
- package/lib/drawing/ui/TextToolIcon.js +21 -0
- package/lib/drawing/ui/TextToolIcon.js.map +1 -0
- package/lib/drawing/ui/ZoomControl.d.ts +25 -0
- package/lib/drawing/ui/ZoomControl.d.ts.map +1 -0
- package/lib/drawing/ui/ZoomControl.js +27 -0
- package/lib/drawing/ui/ZoomControl.js.map +1 -0
- package/lib/drawing/ui/index.d.ts +10 -0
- package/lib/drawing/ui/index.d.ts.map +1 -1
- package/lib/drawing/ui/index.js +7 -0
- package/lib/drawing/ui/index.js.map +1 -1
- package/lib/guide/ui/EmptyGuide.d.ts +5 -2
- package/lib/guide/ui/EmptyGuide.d.ts.map +1 -1
- package/lib/guide/ui/EmptyGuide.js +8 -3
- package/lib/guide/ui/EmptyGuide.js.map +1 -1
- package/lib/guide/ui/GuideFigures.d.ts +6 -0
- package/lib/guide/ui/GuideFigures.d.ts.map +1 -1
- package/lib/guide/ui/GuideFigures.js +5 -5
- package/lib/guide/ui/GuideFigures.js.map +1 -1
- package/lib/host/core/index.d.ts +2 -0
- package/lib/host/core/index.d.ts.map +1 -1
- package/lib/host/core/index.js +1 -0
- package/lib/host/core/index.js.map +1 -1
- package/lib/host/core/kinds.d.ts +6 -1
- package/lib/host/core/kinds.d.ts.map +1 -1
- package/lib/host/core/kinds.js +4 -1
- package/lib/host/core/kinds.js.map +1 -1
- package/lib/host/core/recordKinds.d.ts +165 -0
- package/lib/host/core/recordKinds.d.ts.map +1 -0
- package/lib/host/core/recordKinds.js +68 -0
- package/lib/host/core/recordKinds.js.map +1 -0
- package/lib/mass/core/index.d.ts +1 -0
- package/lib/mass/core/index.d.ts.map +1 -1
- package/lib/mass/core/index.js +1 -0
- package/lib/mass/core/index.js.map +1 -1
- package/lib/mass/core/massDomain.d.ts.map +1 -1
- package/lib/mass/core/massDomain.js +9 -5
- package/lib/mass/core/massDomain.js.map +1 -1
- package/lib/mass/core/massSpectrum.d.ts +9 -0
- package/lib/mass/core/massSpectrum.d.ts.map +1 -1
- package/lib/mass/core/massSpectrum.js.map +1 -1
- package/lib/mass/core/verticalScale.d.ts +30 -0
- package/lib/mass/core/verticalScale.d.ts.map +1 -0
- package/lib/mass/core/verticalScale.js +40 -0
- package/lib/mass/core/verticalScale.js.map +1 -0
- package/lib/mass/ui/MassChart.d.ts.map +1 -1
- package/lib/mass/ui/MassChart.js +4 -38
- package/lib/mass/ui/MassChart.js.map +1 -1
- package/lib/mass/ui/massChartLayers.d.ts +31 -0
- package/lib/mass/ui/massChartLayers.d.ts.map +1 -0
- package/lib/mass/ui/massChartLayers.js +57 -0
- package/lib/mass/ui/massChartLayers.js.map +1 -0
- package/lib/structure/core/index.d.ts +1 -1
- package/lib/structure/core/index.d.ts.map +1 -1
- package/lib/structure/core/index.js.map +1 -1
- package/lib/structure/core/structurePicture.d.ts +32 -1
- package/lib/structure/core/structurePicture.d.ts.map +1 -1
- package/lib/structure/core/structurePicture.js +29 -2
- package/lib/structure/core/structurePicture.js.map +1 -1
- package/lib/structure/ui/StructureEditor.d.ts +2 -1
- package/lib/structure/ui/StructureEditor.d.ts.map +1 -1
- package/lib/structure/ui/StructureEditor.js +9 -3
- package/lib/structure/ui/StructureEditor.js.map +1 -1
- package/lib/structure/ui/StructureEditorGuide.d.ts +15 -0
- package/lib/structure/ui/StructureEditorGuide.d.ts.map +1 -0
- package/lib/structure/ui/StructureEditorGuide.js +26 -0
- package/lib/structure/ui/StructureEditorGuide.js.map +1 -0
- package/lib/structure/ui/structureEditorProps.d.ts +11 -1
- package/lib/structure/ui/structureEditorProps.d.ts.map +1 -1
- package/lib/structure/ui/useCanvasPress.d.ts +23 -0
- package/lib/structure/ui/useCanvasPress.d.ts.map +1 -0
- package/lib/structure/ui/useCanvasPress.js +53 -0
- package/lib/structure/ui/useCanvasPress.js.map +1 -0
- package/lib/xps/core/detectFormat.d.ts +6 -0
- package/lib/xps/core/detectFormat.d.ts.map +1 -1
- package/lib/xps/core/detectFormat.js +8 -0
- package/lib/xps/core/detectFormat.js.map +1 -1
- package/lib/xps/core/xpsEditorApi.d.ts +16 -0
- package/lib/xps/core/xpsEditorApi.d.ts.map +1 -1
- package/lib/xps/ui/XpsCanvas.d.ts +10 -1
- package/lib/xps/ui/XpsCanvas.d.ts.map +1 -1
- package/lib/xps/ui/XpsCanvas.js +14 -3
- package/lib/xps/ui/XpsCanvas.js.map +1 -1
- package/lib/xps/ui/XpsChart.d.ts.map +1 -1
- package/lib/xps/ui/XpsChart.js +12 -43
- package/lib/xps/ui/XpsChart.js.map +1 -1
- package/lib/xps/ui/XpsEditor.d.ts +8 -0
- package/lib/xps/ui/XpsEditor.d.ts.map +1 -1
- package/lib/xps/ui/XpsEditor.js +2 -2
- package/lib/xps/ui/XpsEditor.js.map +1 -1
- package/lib/xps/ui/XpsShell.d.ts +5 -0
- package/lib/xps/ui/XpsShell.d.ts.map +1 -1
- package/lib/xps/ui/XpsShell.js +18 -4
- package/lib/xps/ui/XpsShell.js.map +1 -1
- package/lib/xps/ui/dropEvents.d.ts +8 -1
- package/lib/xps/ui/dropEvents.d.ts.map +1 -1
- package/lib/xps/ui/dropEvents.js +15 -1
- package/lib/xps/ui/dropEvents.js.map +1 -1
- package/lib/xps/ui/useSpectrumDrop.d.ts +6 -0
- package/lib/xps/ui/useSpectrumDrop.d.ts.map +1 -1
- package/lib/xps/ui/useSpectrumDrop.js +1 -1
- package/lib/xps/ui/useSpectrumDrop.js.map +1 -1
- package/lib/xps/ui/useXpsEditorHandle.d.ts +4 -1
- package/lib/xps/ui/useXpsEditorHandle.d.ts.map +1 -1
- package/lib/xps/ui/useXpsEditorHandle.js +6 -2
- package/lib/xps/ui/useXpsEditorHandle.js.map +1 -1
- package/lib/xps/ui/useXpsReadout.d.ts +43 -0
- package/lib/xps/ui/useXpsReadout.d.ts.map +1 -0
- package/lib/xps/ui/useXpsReadout.js +59 -0
- package/lib/xps/ui/useXpsReadout.js.map +1 -0
- package/lib/xps/ui/xpsChartProps.d.ts +9 -0
- package/lib/xps/ui/xpsChartProps.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/drawing/captionEditor/CaptionEditor.tsx +8 -3
- package/src/drawing/captionEditor/CaptionToolbar.tsx +18 -2
- package/src/drawing/captionEditor/index.ts +2 -0
- package/src/drawing/captionEditor/toolbarInView.ts +73 -0
- package/src/drawing/core/camera.ts +3 -0
- package/src/drawing/core/index.ts +1 -0
- package/src/drawing/render/index.ts +2 -0
- package/src/drawing/render/pageGrid.ts +29 -11
- package/src/drawing/ui/PageField.tsx +104 -0
- package/src/drawing/ui/PageGrid.tsx +48 -0
- package/src/drawing/ui/PageSideInput.tsx +81 -0
- package/src/drawing/ui/PageToolbar.tsx +45 -0
- package/src/drawing/ui/PrintSheets.tsx +57 -0
- package/src/drawing/ui/TextToolIcon.tsx +48 -0
- package/src/drawing/ui/ZoomControl.tsx +112 -0
- package/src/drawing/ui/index.ts +10 -0
- package/src/guide/ui/EmptyGuide.tsx +20 -13
- package/src/guide/ui/GuideFigures.tsx +15 -4
- package/src/host/core/index.ts +7 -0
- package/src/host/core/kinds.ts +7 -2
- package/src/host/core/recordKinds.ts +144 -0
- package/src/mass/core/index.ts +1 -0
- package/src/mass/core/massDomain.ts +9 -3
- package/src/mass/core/massSpectrum.ts +9 -0
- package/src/mass/core/verticalScale.ts +48 -0
- package/src/mass/ui/MassChart.tsx +12 -43
- package/src/mass/ui/massChartLayers.ts +66 -0
- package/src/structure/core/index.ts +1 -0
- package/src/structure/core/structurePicture.ts +78 -4
- package/src/structure/ui/StructureEditor.tsx +13 -2
- package/src/structure/ui/StructureEditorGuide.tsx +35 -0
- package/src/structure/ui/structureEditorProps.ts +11 -1
- package/src/structure/ui/useCanvasPress.ts +69 -0
- package/src/xps/core/detectFormat.ts +9 -0
- package/src/xps/core/xpsEditorApi.ts +16 -0
- package/src/xps/ui/XpsCanvas.tsx +26 -3
- package/src/xps/ui/XpsChart.tsx +12 -56
- package/src/xps/ui/XpsEditor.tsx +10 -0
- package/src/xps/ui/XpsShell.tsx +37 -7
- package/src/xps/ui/dropEvents.ts +16 -1
- package/src/xps/ui/useSpectrumDrop.ts +7 -1
- package/src/xps/ui/useXpsEditorHandle.ts +12 -2
- package/src/xps/ui/useXpsReadout.ts +104 -0
- package/src/xps/ui/xpsChartProps.ts +9 -0
- package/styles/caption-editor.css +15 -1
- package/styles/chrome.css +130 -9
- package/styles/drawing.css +100 -0
package/styles/chrome.css
CHANGED
|
@@ -2553,18 +2553,14 @@ span.taxon-lineage__name {
|
|
|
2553
2553
|
/*
|
|
2554
2554
|
What a tool shows while it holds nothing: `<EmptyGuide>`. Grey on purpose, so
|
|
2555
2555
|
it reads as the empty space saying how to start and never as content. The
|
|
2556
|
-
pointer goes through it to the tool, except on
|
|
2557
|
-
|
|
2556
|
+
pointer goes through it to the tool, except on what can be clicked or typed
|
|
2557
|
+
in, so a first stroke can start on the words.
|
|
2558
2558
|
*/
|
|
2559
2559
|
.empty-guide {
|
|
2560
2560
|
position: absolute;
|
|
2561
|
-
display: flex;
|
|
2562
|
-
flex-direction: column;
|
|
2563
|
-
padding: 12px 20px;
|
|
2564
2561
|
color: var(--text-muted);
|
|
2565
2562
|
container-type: size;
|
|
2566
2563
|
font-size: 12.5px;
|
|
2567
|
-
gap: 10px;
|
|
2568
2564
|
inset: 0;
|
|
2569
2565
|
line-height: 1.4;
|
|
2570
2566
|
overflow: hidden;
|
|
@@ -2574,15 +2570,40 @@ span.taxon-lineage__name {
|
|
|
2574
2570
|
animation: empty-guide-in 240ms ease-out 120ms both;
|
|
2575
2571
|
}
|
|
2576
2572
|
|
|
2573
|
+
/* Laid out inside the box that is measured, so a small box can tighten it. */
|
|
2574
|
+
.empty-guide__body {
|
|
2575
|
+
display: flex;
|
|
2576
|
+
height: 100%;
|
|
2577
|
+
box-sizing: border-box;
|
|
2578
|
+
flex-direction: column;
|
|
2579
|
+
padding: 12px 20px;
|
|
2580
|
+
gap: 10px;
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2577
2583
|
.empty-guide a,
|
|
2578
2584
|
.empty-guide button {
|
|
2579
2585
|
color: inherit;
|
|
2580
|
-
pointer-events: auto;
|
|
2581
2586
|
text-decoration: underline;
|
|
2582
2587
|
text-decoration-color: var(--border-strong);
|
|
2583
2588
|
text-underline-offset: 2px;
|
|
2584
2589
|
}
|
|
2585
2590
|
|
|
2591
|
+
/* Whatever can be clicked or typed in takes the pointer: a link, a button, a
|
|
2592
|
+
capsule or a tab drawn as one, a field and the label that ticks a box. */
|
|
2593
|
+
.empty-guide a,
|
|
2594
|
+
.empty-guide button,
|
|
2595
|
+
.empty-guide label,
|
|
2596
|
+
.empty-guide input,
|
|
2597
|
+
.empty-guide select,
|
|
2598
|
+
.empty-guide textarea,
|
|
2599
|
+
.empty-guide [role='button'],
|
|
2600
|
+
.empty-guide [role='checkbox'],
|
|
2601
|
+
.empty-guide [role='radio'],
|
|
2602
|
+
.empty-guide [role='switch'],
|
|
2603
|
+
.empty-guide [role='tab'] {
|
|
2604
|
+
pointer-events: auto;
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2586
2607
|
.empty-guide a:hover,
|
|
2587
2608
|
.empty-guide button:hover {
|
|
2588
2609
|
color: var(--accent);
|
|
@@ -2721,6 +2742,34 @@ button.empty-guide__figure:focus-visible img {
|
|
|
2721
2742
|
opacity: 1;
|
|
2722
2743
|
}
|
|
2723
2744
|
|
|
2745
|
+
/* A figure's name, one line under it, read before the faint picture is. */
|
|
2746
|
+
.empty-guide__label {
|
|
2747
|
+
overflow: hidden;
|
|
2748
|
+
flex: none;
|
|
2749
|
+
margin-top: 4px;
|
|
2750
|
+
color: var(--text-muted);
|
|
2751
|
+
font-size: 12.5px;
|
|
2752
|
+
font-weight: 600;
|
|
2753
|
+
text-align: center;
|
|
2754
|
+
text-overflow: ellipsis;
|
|
2755
|
+
white-space: nowrap;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
/* A named figure sits on its name, whatever room is left above it. */
|
|
2759
|
+
.empty-guide__figure:has(> .empty-guide__label) img {
|
|
2760
|
+
object-position: 50% 100%;
|
|
2761
|
+
}
|
|
2762
|
+
|
|
2763
|
+
/* A name is not a link: the figure it names is what is clicked. */
|
|
2764
|
+
.empty-guide button.empty-guide__figure {
|
|
2765
|
+
text-decoration: none;
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2768
|
+
button.empty-guide__figure:hover .empty-guide__label,
|
|
2769
|
+
button.empty-guide__figure:focus-visible .empty-guide__label {
|
|
2770
|
+
color: var(--accent);
|
|
2771
|
+
}
|
|
2772
|
+
|
|
2724
2773
|
.empty-guide__hint {
|
|
2725
2774
|
display: flex;
|
|
2726
2775
|
flex: none;
|
|
@@ -2740,14 +2789,86 @@ button.empty-guide__figure:focus-visible img {
|
|
|
2740
2789
|
animation: empty-guide-in 400ms ease-out both;
|
|
2741
2790
|
}
|
|
2742
2791
|
|
|
2743
|
-
/*
|
|
2744
|
-
|
|
2792
|
+
/* A small view — half an editor, a short window — keeps its figures: the help
|
|
2793
|
+
says each section's title and its first line, the buttons shrink, and the
|
|
2794
|
+
figures take what is left, never less than a third of the height. */
|
|
2745
2795
|
@container (max-width: 640px) or (max-height: 520px) {
|
|
2796
|
+
.empty-guide__body {
|
|
2797
|
+
padding: 8px 12px;
|
|
2798
|
+
font-size: 12px;
|
|
2799
|
+
gap: 6px;
|
|
2800
|
+
line-height: 1.35;
|
|
2801
|
+
}
|
|
2802
|
+
|
|
2803
|
+
/* One row of sections, as many as the width holds: a section that would
|
|
2804
|
+
wrap is left out whole rather than cut through a line. */
|
|
2805
|
+
.empty-guide__help {
|
|
2806
|
+
min-height: 0;
|
|
2807
|
+
flex: 0 1 auto;
|
|
2808
|
+
gap: 0 16px;
|
|
2809
|
+
grid-auto-rows: 0;
|
|
2810
|
+
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
2811
|
+
grid-template-rows: auto;
|
|
2812
|
+
overflow: hidden;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
.empty-guide__title {
|
|
2816
|
+
margin-bottom: 1px;
|
|
2817
|
+
font-size: 12px;
|
|
2818
|
+
}
|
|
2819
|
+
|
|
2820
|
+
.empty-guide__section > :nth-child(n + 3),
|
|
2821
|
+
.empty-guide__help .shortcut-list__row:nth-child(n + 4) {
|
|
2822
|
+
display: none;
|
|
2823
|
+
}
|
|
2824
|
+
|
|
2825
|
+
.empty-guide__section p {
|
|
2826
|
+
margin: 0;
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
.empty-guide__start {
|
|
2830
|
+
gap: 6px 10px;
|
|
2831
|
+
}
|
|
2832
|
+
|
|
2833
|
+
.empty-guide button.empty-guide__action {
|
|
2834
|
+
min-height: 34px;
|
|
2835
|
+
padding: 0 14px;
|
|
2836
|
+
font-size: 13.5px;
|
|
2837
|
+
gap: 6px;
|
|
2838
|
+
}
|
|
2839
|
+
|
|
2840
|
+
.empty-guide__figures-title {
|
|
2841
|
+
font-size: 13px;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
.empty-guide__figures:not(:empty) {
|
|
2845
|
+
min-height: 33cqh;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
.empty-guide__stack {
|
|
2849
|
+
gap: 6px;
|
|
2850
|
+
}
|
|
2851
|
+
|
|
2852
|
+
.empty-guide__label {
|
|
2853
|
+
margin-top: 2px;
|
|
2854
|
+
font-size: 12px;
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
/* A phone-sized view takes the words alone: a picture the size of a stamp
|
|
2859
|
+
shows nothing, and leaves its caption floating. */
|
|
2860
|
+
@container (max-width: 440px) or (max-height: 300px) {
|
|
2746
2861
|
.empty-guide__figures,
|
|
2747
2862
|
.empty-guide__figures-title {
|
|
2748
2863
|
display: none;
|
|
2749
2864
|
}
|
|
2750
2865
|
|
|
2866
|
+
/* With no figures to make room for, every section is said. */
|
|
2867
|
+
.empty-guide__help {
|
|
2868
|
+
gap: 4px 16px;
|
|
2869
|
+
grid-auto-rows: auto;
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2751
2872
|
/* First, or a help taller than the view would push the buttons out of it. */
|
|
2752
2873
|
.empty-guide__start {
|
|
2753
2874
|
order: -1;
|
package/styles/drawing.css
CHANGED
|
@@ -30,6 +30,21 @@
|
|
|
30
30
|
stroke: var(--border-strong);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/* The lines `PageGrid` draws between the sheets of a drawing, and the number
|
|
34
|
+
each sheet prints under. */
|
|
35
|
+
.draw-sheet {
|
|
36
|
+
fill: none;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
stroke: var(--border-strong);
|
|
39
|
+
stroke-dasharray: 6 4;
|
|
40
|
+
vector-effect: non-scaling-stroke;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.draw-sheet__number {
|
|
44
|
+
fill: var(--text-faint);
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
33
48
|
/* What `PageMask` hides around a page shown alone, and its edge. */
|
|
34
49
|
.draw-page-mask {
|
|
35
50
|
fill: var(--surface-sunken);
|
|
@@ -179,3 +194,88 @@
|
|
|
179
194
|
color: var(--text-faint);
|
|
180
195
|
font-style: italic;
|
|
181
196
|
}
|
|
197
|
+
|
|
198
|
+
/* `ZoomControl`, at the right of an editor's status bar. */
|
|
199
|
+
.zoom-control {
|
|
200
|
+
display: inline-flex;
|
|
201
|
+
flex: none;
|
|
202
|
+
align-items: center;
|
|
203
|
+
gap: 4px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Blueprint's slider is 40px tall for its labels; without them the 16px handle
|
|
207
|
+
is the whole of it, and the status bar keeps its height. */
|
|
208
|
+
.zoom-control .bp6-slider {
|
|
209
|
+
width: 120px;
|
|
210
|
+
min-width: 120px;
|
|
211
|
+
height: 16px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* As wide at 25 % as at 1600 %, so what stands beside it does not move. */
|
|
215
|
+
.zoom-control .zoom-control__level {
|
|
216
|
+
min-width: 92px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@media (width < 640px) {
|
|
220
|
+
.zoom-control .bp6-slider {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* `PageField`: the orientation, then a page's width × height in centimetres. */
|
|
226
|
+
.page-field__orientation {
|
|
227
|
+
margin-top: 4px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.page-field__size {
|
|
231
|
+
display: flex;
|
|
232
|
+
align-items: center;
|
|
233
|
+
margin-top: 4px;
|
|
234
|
+
gap: 6px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.page-field__size .bp6-input-group {
|
|
238
|
+
width: 5rem;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.page-field__unit {
|
|
242
|
+
color: var(--text-muted);
|
|
243
|
+
font-size: 0.8125rem;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* `PrintSheets`: on paper the editor gives way to the figure it holds, at the
|
|
247
|
+
size it was laid out at and shrunk only when it would not fit the page. */
|
|
248
|
+
.draw-print {
|
|
249
|
+
display: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
@media print {
|
|
253
|
+
.draw-print {
|
|
254
|
+
display: flex;
|
|
255
|
+
justify-content: center;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.draw-print__figure {
|
|
259
|
+
width: auto;
|
|
260
|
+
height: auto;
|
|
261
|
+
max-width: 100%;
|
|
262
|
+
max-height: 100vh;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/* A grid of sheets: the paper is the sheet, so each one fills a sheet of
|
|
266
|
+
paper and nothing is shrunk. */
|
|
267
|
+
.draw-print--sheets {
|
|
268
|
+
display: block;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.draw-print--sheets .draw-print__figure {
|
|
272
|
+
display: block;
|
|
273
|
+
max-width: none;
|
|
274
|
+
max-height: none;
|
|
275
|
+
break-after: page;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.draw-print--sheets .draw-print__figure:last-child {
|
|
279
|
+
break-after: auto;
|
|
280
|
+
}
|
|
281
|
+
}
|