Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cross Mode

Introduction

Previously, crossover was a separate mode. But not anymore, crossover is just an attribute of the element. By default, the following shortcut keys are used to switch the cross attribute of the element. By default, the element has no cross attribute. The intersection of the boundaries of elements with the cross attribute will present special visual effects.

Binding:

- «e»     enters the element operation group
actionbinding
Enable elements cross<<x>>
Disable elements cross<<Shift-X>>

cross_effect

Complex graphics

The element cross attribute allows you to draw complex tables like the following:

cross_complex


           ╔═══════╤═══════════════════════════════════════════════╗
           ║       │     test scores                               ║
           ║ Name  ├───────┬────────┬───────┬───────┬──────┬───────╢
           ║       │   Math│ Physics│       │       │      │       ║
           ╟───────┼───────┼────────┼───────┼───────┼──────┼───────╢
           ║ Jim   │    A+ │  B     │       │       │      │       ║
           ╟───────┼───────┼────────┼───────┼───────┼──────┼───────╢
           ║Stephen│    B  │  A     │       │       │      │       ║
           ╟───────┼───────┼────────┼───────┼───────┼──────┼───────╢
           ║ Kate  │    A  │  C     │       │       │      │       ║
           ╚═══════╧═══════╧════════╧═══════╧═══════╧══════╧═══════╝

Stripe group situation

When we merge elements into a strip group, if the merged elements themself has a cross attribute, the merged strip group will also presents the visual effect of intersection, but the strip group element itself has no cross attribute.

cross_stripes

Exported to text

        .--------.      ╭────────╮    ┏━━━━━━━━┓    ╔════════╗
        |        |      │        │    ┃        ┃    ║        ║
        |        |      │        │    ┃  ┏━━━━━┻━━┓ ║        ║
        |        |      │        │    ┃  ┃        ┃ ║        ║
        '--------'      ╰────────╯    ┗━━┫        ┃ ╚════════╝
                                         ┃        ┃
                                         ┗━━━━━━━━┛

                |               │            ┃           ║
                |               │            ┃           ║
                |               │            ┃           ║
                |               │       ━━━━━╋━━━━━━     ║
                |               │            ┃           ║
                |               │            ┃           ║
                |               │            ┃           ║
                |               │            ┃           ║
                |               │            ┃           ║





                .--------.
                |        |          ╭─┬────────┬─────╮
                |  .-----'--.       │ │        │     │
                |  |        |       │ │        │     │
                '--.        |       │ │        │     │    ╔══════════════╗
                   |        |       │ ╰────────╯     │    ║              ║
                   '--------'       │                │    ║              ║
                                    │                │    ║              ║
                                    │        ╔═══════╧╗   ║              ║
                                    │        ║        ║   ║              ║
                                    ╰────────╢        ║   ║              ║
                                             ║        ║   ║              ║
                                             ╚════════╝   ╚══════════════╝