Holarch
Главы курса

Обучение · Курс 13. Доски · Глава 13.2 из 4

13.2 Кривые и подписи линий 3:09

Задавайте форму кривой линии через её вершину, ставьте её концы перпендикулярно фигурам, размещайте, поворачивайте и удаляйте подписи.

Показан Holarch 2.35.

← 13.1 Фигуры и линии · Все главы · 13.3 Графики →

Чему вы научитесь

  • Рисовать кривую линию и размещать её вершину жёлтым ромбом с привязкой к середине
  • Изгибать или выпрямлять кривую и задавать кривизну и положение вершины на панели «Линия»
  • Ставить концы линии перпендикулярно краям её фигур
  • Добавлять, перемещать, поворачивать и удалять подписи линий

Задайте форму линий на доске концепции станции Bike-Share Dock: нарисуйте изогнутую стрелку, переместите вершину кривой вдоль линии жёлтым ромбом (он привязывается к середине), изогните её сильнее или слабее, задайте кривизну и положение вершины на панели «Линия», поставьте концы перпендикулярно краям, к которым они подходят, чтобы кривая выходила из каждой фигуры под прямым углом, затем добавьте подписи линии, переместите их вдоль линии и в сторону от неё, поверните с привязкой, заставьте их следовать линии и удалите.

Файлы проектов

  • Начальный проект (.holarch.json; Управление проектами → Файлы проекта ▾ → Импортировать проект (.json)…)
  • Готовый проект (.holarch.json; Управление проектами → Файлы проекта ▾ → Импортировать проект (.json)…)

Видео воспроизводится с holarch.app; см. Политику конфиденциальности.

Практика

Выполните это сами в Holarch на Bike-Share Dock.

  1. Откройте начальный файл главы и доску Dock Concept.
  2. Нажмите A, выберите Изогнутая на панели параметров линии и перетащите от велосипедиста к доку.
  3. Перетащите жёлтый ромб к одному концу, затем обратно, пока он не привяжется к середине. Перетащите его от линии, удерживая Shift.
  4. В разделе инспектора Линия отметьте Перпендикулярно краю для Начало и Конец, затем переместите велосипедиста.
  5. Дважды щёлкните линию, введите returns a bike и нажмите Ввод. Перетащите подпись вдоль линии, в сторону от неё и обратно на неё; поверните её круглой ручкой.
  6. Добавьте вторую подпись и удалите её крестиком ×.

Готово, когда изогнутая стрелка подходит к обеим фигурам перпендикулярно их краям и несёт одну подпись, которая следует линии.

Проверьте себя

  1. Что показывает жёлтый ромб на кривой линии?
  2. Как разместить вершину в любом месте без привязки к середине?
  3. Что сохраняет подпись повёрнутой вдоль линии, когда линия перемещается?
Показать ответы
  1. Что показывает жёлтый ромб на кривой линии?

    Вершину: точку кривой, наиболее удалённую от прямой между её концами. Перетаскивание вдоль линии перемещает вершину; перетаскивание в сторону сильнее изгибает кривую.

  2. Как разместить вершину в любом месте без привязки к середине?

    Удерживайте Command (Mac) или Control, перетаскивая ромб.

  3. Что сохраняет подпись повёрнутой вдоль линии, когда линия перемещается?

    «Следовать линии» в строке подписи на панели «Линия».

Подробнее

Расшифровка

Показать расшифровку (дикторский текст и то, что на экране)

Introduction

Chapter two: curves and line labels. A curved line is often the clearest way to show a flow that loops around other shapes, and a label says what the line means.

In this chapter you draw a curved arrow, shape it, and label it.

A curved line

The rider returns the bike at a docking bay. Press the A key, choose Curved in the Line options bar, and drag from the rider to the docking bay.

On screen: A → Curved → drag Rider → Docking Bay.

The new line is selected. The yellow diamond sits on the peak of the curve: the point farthest from a straight line between its ends.

On screen: The curve handle on the peak.

The peak

Drag the diamond along the line toward the docking bay. The peak moves toward that end, and the curve stays one smooth arc.

On screen: Drag the peak toward the docking bay.

Drag it back. Near the middle, it snaps to the center, and a guide shows it. Hold Command, or Control, while you drag to place it anywhere.

On screen: Drag the peak back; it snaps to the middle.

Drag the diamond away from the line to bend the curve more, or toward it to flatten it. With Shift held, only the bend changes.

On screen: Drag the peak outward.

The Line panel shows the same as numbers: Curve for the bend, and Peak position, from five to ninety-five percent along the line. Center puts the peak back in the middle.

On screen: Line panel: Curve, Peak position, Center.

Square ends

Under Ends, tick End in Square to the edge. The curve now meets the docking bay at a right angle to its edge, and eases into its arc. Tick Start too, for the rider.

On screen: Ends → Square to the edge: End, Start.

The setting stays while the shapes move. Drag the rider: both ends stay square.

On screen: Drag Rider.

Line labels

Now a label. Double-click the line, type returns a bike, and press Enter.

On screen: Double-click the curve → returns a bike → Enter.

Click the label to select it. Drag it along the line: it keeps its place along the line when the line moves.

On screen: Drag the label along the line.

Drag it away from the line, and a thin leader line connects it. Bring it back within a few pixels, and it snaps onto the line again.

On screen: Drag the label off the line, then back.

A selected label shows a round knob. Drag it to rotate the label. It snaps to horizontal, to the line's direction and to fifteen-degree steps.

On screen: Drag the rotate knob to the line's direction.

In the Line panel, each label has its position, offsets and rotation, and Follow the line, which keeps it turned along the line wherever the line goes.

On screen: Line panel → Labels.

A line can have several labels. Double-click near the rider for a second one, type paid by app, and press Enter.

On screen: Double-click the line → paid by app.

To delete a label, click its cross, press Delete while it is selected, or right-click it and choose Delete Label. Delete the second one.

On screen: The label's ×.

Recap

To recap: drag the yellow diamond to place the peak, which snaps to the middle; square the ends in the Line panel; and double-click a line to label it, then move, rotate or delete the label.

In the next chapter, you add charts to the board.