@formicoidea/labre-core 0.57.0 → 0.59.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/architecture/code.c4 +94 -65
- package/architecture/domain.c4 +2510 -0
- package/architecture/likec4.config.json +3 -3
- package/dist/_pkgs/affine-block-attachment/edgeless-clipboard-config.d.ts +3 -2
- package/dist/_pkgs/affine-block-attachment/edgeless-clipboard-config.js +18 -13
- package/dist/_pkgs/affine-block-callout/adapters/markdown.js +4 -1
- package/dist/_pkgs/affine-block-code/adapters/html.js +1 -1
- package/dist/_pkgs/affine-block-code/adapters/markdown/preprocessor.js +13 -1
- package/dist/_pkgs/affine-block-code/adapters/notion-html.js +1 -1
- package/dist/_pkgs/affine-block-code/code-block.d.ts +17 -2
- package/dist/_pkgs/affine-block-code/code-block.js +28 -23
- package/dist/_pkgs/affine-block-code/code-toolbar/components/lang-button.js +17 -4
- package/dist/_pkgs/affine-block-code/code-toolbar/components/preview-button.js +1 -1
- package/dist/_pkgs/affine-block-data-view/data-source.js +12 -5
- package/dist/_pkgs/affine-block-edgeless-text/edgeless-clipboard-config.d.ts +3 -2
- package/dist/_pkgs/affine-block-edgeless-text/edgeless-clipboard-config.js +8 -5
- package/dist/_pkgs/affine-block-image/asset-picker.d.ts +23 -2
- package/dist/_pkgs/affine-block-image/asset-picker.js +52 -12
- package/dist/_pkgs/affine-block-image/configs/replace-action.d.ts +8 -5
- package/dist/_pkgs/affine-block-image/configs/replace-action.js +8 -8
- package/dist/_pkgs/affine-block-image/configs/toolbar.js +2 -1
- package/dist/_pkgs/affine-block-image/crop/crop-controller.d.ts +15 -0
- package/dist/_pkgs/affine-block-image/crop/crop-controller.js +40 -2
- package/dist/_pkgs/affine-block-image/crop/crop-math.d.ts +22 -0
- package/dist/_pkgs/affine-block-image/crop/crop-math.js +55 -2
- package/dist/_pkgs/affine-block-image/crop/crop-overlay.d.ts +17 -3
- package/dist/_pkgs/affine-block-image/crop/crop-overlay.js +64 -6
- package/dist/_pkgs/affine-block-image/edgeless-clipboard-config.d.ts +3 -2
- package/dist/_pkgs/affine-block-image/edgeless-clipboard-config.js +20 -14
- package/dist/_pkgs/affine-block-image/image-block.js +1 -0
- package/dist/_pkgs/affine-block-image/image-edgeless-block.js +3 -0
- package/dist/_pkgs/affine-block-image/index.d.ts +2 -0
- package/dist/_pkgs/affine-block-image/index.js +2 -0
- package/dist/_pkgs/affine-block-image/replace/commands.d.ts +68 -0
- package/dist/_pkgs/affine-block-image/replace/commands.js +200 -0
- package/dist/_pkgs/affine-block-image/replace/replace-model.d.ts +44 -0
- package/dist/_pkgs/affine-block-image/replace/replace-model.js +168 -0
- package/dist/_pkgs/affine-block-image/replace/toolbar.d.ts +21 -0
- package/dist/_pkgs/affine-block-image/replace/toolbar.js +159 -0
- package/dist/_pkgs/affine-block-image/translations.d.ts +15 -2
- package/dist/_pkgs/affine-block-image/translations.js +35 -2
- package/dist/_pkgs/affine-block-image/utils.d.ts +7 -0
- package/dist/_pkgs/affine-block-image/utils.js +13 -0
- package/dist/_pkgs/affine-block-image/view.js +7 -0
- package/dist/_pkgs/affine-block-note/components/edgeless-page-block-title.d.ts +14 -5
- package/dist/_pkgs/affine-block-note/components/edgeless-page-block-title.js +18 -11
- package/dist/_pkgs/affine-block-note/config.d.ts +9 -2
- package/dist/_pkgs/affine-block-note/edgeless-clipboard-config.d.ts +3 -2
- package/dist/_pkgs/affine-block-note/edgeless-clipboard-config.js +8 -5
- package/dist/_pkgs/affine-block-paragraph/adapters/markdown.js +11 -0
- package/dist/_pkgs/affine-block-root/commands/invisible-characters-commands.d.ts +17 -0
- package/dist/_pkgs/affine-block-root/commands/invisible-characters-commands.js +123 -0
- package/dist/_pkgs/affine-block-root/edgeless/clipboard/command.js +82 -65
- package/dist/_pkgs/affine-block-root/edgeless/edgeless-keyboard.js +2 -0
- package/dist/_pkgs/affine-block-root/index.d.ts +1 -0
- package/dist/_pkgs/affine-block-root/index.js +1 -0
- package/dist/_pkgs/affine-block-root/translations.d.ts +6 -0
- package/dist/_pkgs/affine-block-root/translations.js +10 -0
- package/dist/_pkgs/affine-block-root/view.js +6 -1
- package/dist/_pkgs/affine-block-surface/commands/index.d.ts +1 -1
- package/dist/_pkgs/affine-block-surface/commands/index.js +1 -1
- package/dist/_pkgs/affine-block-surface/commands/reassociate-connectors.d.ts +9 -0
- package/dist/_pkgs/affine-block-surface/commands/reassociate-connectors.js +21 -12
- package/dist/_pkgs/affine-block-surface/extensions/clipboard-config.d.ts +33 -0
- package/dist/_pkgs/affine-block-surface/extensions/clipboard-config.js +53 -0
- package/dist/_pkgs/affine-block-surface/extensions/reading-toolbar.js +12 -12
- package/dist/_pkgs/affine-block-surface/framework-background/background-view.js +2 -1
- package/dist/_pkgs/affine-block-surface/framework-background/band-widths.d.ts +104 -0
- package/dist/_pkgs/affine-block-surface/framework-background/band-widths.js +156 -0
- package/dist/_pkgs/affine-block-surface/framework-background/def.d.ts +87 -4
- package/dist/_pkgs/affine-block-surface/framework-background/def.js +26 -7
- package/dist/_pkgs/affine-block-surface/framework-background/ellipsis.d.ts +58 -0
- package/dist/_pkgs/affine-block-surface/framework-background/ellipsis.js +110 -0
- package/dist/_pkgs/affine-block-surface/framework-background/index.d.ts +3 -0
- package/dist/_pkgs/affine-block-surface/framework-background/index.js +3 -0
- package/dist/_pkgs/affine-block-surface/framework-background/labels.d.ts +12 -2
- package/dist/_pkgs/affine-block-surface/framework-background/labels.js +29 -5
- package/dist/_pkgs/affine-block-surface/framework-background/measure-text.d.ts +14 -0
- package/dist/_pkgs/affine-block-surface/framework-background/measure-text.js +31 -0
- package/dist/_pkgs/affine-block-surface/framework-background/renderer.d.ts +14 -1
- package/dist/_pkgs/affine-block-surface/framework-background/renderer.js +84 -31
- package/dist/_pkgs/affine-block-table/adapters/html.js +26 -14
- package/dist/_pkgs/affine-block-table/adapters/utils.d.ts +1 -0
- package/dist/_pkgs/affine-block-table/adapters/utils.js +23 -5
- package/dist/_pkgs/affine-block-table/header-menu.d.ts +13 -0
- package/dist/_pkgs/affine-block-table/header-menu.js +25 -0
- package/dist/_pkgs/affine-block-table/selection-controller.d.ts +15 -0
- package/dist/_pkgs/affine-block-table/selection-controller.js +62 -0
- package/dist/_pkgs/affine-block-table/table-cell-css.d.ts +7 -0
- package/dist/_pkgs/affine-block-table/table-cell-css.js +10 -0
- package/dist/_pkgs/affine-block-table/table-cell.d.ts +8 -0
- package/dist/_pkgs/affine-block-table/table-cell.js +35 -3
- package/dist/_pkgs/affine-block-table/table-data-manager.d.ts +14 -0
- package/dist/_pkgs/affine-block-table/table-data-manager.js +44 -3
- package/dist/_pkgs/affine-block-table/translations.d.ts +14 -0
- package/dist/_pkgs/affine-block-table/translations.js +22 -0
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/highlight-duotone-icon.js +8 -8
- package/dist/_pkgs/affine-components/highlight-dropdown-menu/text-duotone-icon.js +11 -11
- package/dist/_pkgs/affine-fragment-doc-title/title-band/title-band.d.ts +3 -1
- package/dist/_pkgs/affine-fragment-doc-title/title-band/title-band.js +15 -2
- package/dist/_pkgs/affine-gfx-mindmap/toolbar/mindmap-tool-button.d.ts +2 -2
- package/dist/_pkgs/affine-gfx-template/builtin/other.d.ts +4 -0
- package/dist/_pkgs/affine-gfx-template/builtin/other.js +1 -1
- package/dist/_pkgs/affine-gfx-template/builtin/slides/build.d.ts +81 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/build.js +276 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/consts.d.ts +126 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/consts.js +101 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/index.d.ts +8 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/index.js +27 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/masks.d.ts +83 -0
- package/dist/_pkgs/affine-gfx-template/builtin/slides/masks.js +674 -0
- package/dist/_pkgs/affine-gfx-template/contribute.js +12 -17
- package/dist/_pkgs/affine-gfx-template/make-snapshot.d.ts +14 -2
- package/dist/_pkgs/affine-gfx-template/make-snapshot.js +6 -2
- package/dist/_pkgs/affine-gfx-template/services/template-middlewares.d.ts +12 -0
- package/dist/_pkgs/affine-gfx-template/services/template-middlewares.js +48 -0
- package/dist/_pkgs/affine-gfx-template/services/template.js +2 -1
- package/dist/_pkgs/affine-gfx-template/toolbar/builtin-templates.d.ts +15 -1
- package/dist/_pkgs/affine-gfx-template/toolbar/builtin-templates.js +33 -37
- package/dist/_pkgs/affine-gfx-template/toolbar/template-type.d.ts +6 -0
- package/dist/_pkgs/affine-gfx-template/translations.d.ts +94 -0
- package/dist/_pkgs/affine-gfx-template/translations.js +441 -2
- package/dist/_pkgs/affine-model/blocks/table/table-model.d.ts +4 -0
- package/dist/_pkgs/affine-model/blocks/table/table-model.js +4 -0
- package/dist/_pkgs/affine-model/elements/bpmn/node.d.ts +46 -3
- package/dist/_pkgs/affine-model/elements/bpmn/node.js +47 -4
- package/dist/_pkgs/affine-model/elements/bpmn/pool.d.ts +20 -0
- package/dist/_pkgs/affine-model/elements/bpmn/pool.js +33 -4
- package/dist/_pkgs/affine-shared/services/edit-props-store.d.ts +3 -16
- package/dist/_pkgs/affine-shared/services/edit-props-store.js +16 -16
- package/dist/_pkgs/affine-shared/services/editor-setting-service.d.ts +3 -0
- package/dist/_pkgs/affine-shared/services/editor-setting-service.js +4 -0
- package/dist/_pkgs/affine-shared/services/index.d.ts +1 -0
- package/dist/_pkgs/affine-shared/services/index.js +1 -0
- package/dist/_pkgs/affine-shared/services/invisible-characters.d.ts +33 -0
- package/dist/_pkgs/affine-shared/services/invisible-characters.js +63 -0
- package/dist/_pkgs/affine-shared/services/link-preview-service/link-preview-cache.d.ts +0 -9
- package/dist/_pkgs/affine-shared/services/link-preview-service/link-preview-cache.js +3 -9
- package/dist/_pkgs/affine-shared/services/telemetry-service/lifecycle.d.ts +26 -0
- package/dist/_pkgs/affine-shared/services/telemetry-service/telemetry-service.d.ts +4 -3
- package/dist/_pkgs/affine-shared/services/telemetry-service/types.d.ts +11 -0
- package/dist/_pkgs/affine-shared/utils/index.d.ts +1 -0
- package/dist/_pkgs/affine-shared/utils/index.js +1 -0
- package/dist/_pkgs/affine-shared/utils/invisible-characters.d.ts +42 -0
- package/dist/_pkgs/affine-shared/utils/invisible-characters.js +81 -0
- package/dist/_pkgs/affine-widget-edgeless-zoom-toolbar/index.js +26 -26
- package/dist/_pkgs/affine-widget-edgeless-zoom-toolbar/zoom-toolbar.js +13 -2
- package/dist/_pkgs/affine-widget-keyboard-toolbar/icons.js +98 -98
- package/dist/_pkgs/affine-widget-page-dragging-area/index.js +10 -10
- package/dist/_pkgs/affine-widget-viewport-overlay/index.js +13 -13
- package/dist/_pkgs/data-view/core/utils/menu-title.js +17 -17
- package/dist/_pkgs/data-view/view-presets/table/pc/header/column-header.js +6 -0
- package/dist/_pkgs/data-view/view-presets/table/pc/table-view-ui-logic.js +5 -2
- package/dist/_pkgs/std/clipboard/clipboard.d.ts +15 -1
- package/dist/_pkgs/std/clipboard/clipboard.js +18 -0
- package/dist/_pkgs/std/inline/components/embed-gap.js +1 -1
- package/dist/_pkgs/std/inline/components/v-line.js +1 -1
- package/dist/_pkgs/std/inline/components/v-text.d.ts +15 -2
- package/dist/_pkgs/std/inline/components/v-text.js +147 -15
- package/dist/_pkgs/std/inline/consts.d.ts +5 -0
- package/dist/_pkgs/std/inline/consts.js +5 -0
- package/dist/_pkgs/std/inline/utils/index.d.ts +1 -0
- package/dist/_pkgs/std/inline/utils/index.js +1 -0
- package/dist/_pkgs/std/inline/utils/invisible-characters.d.ts +57 -0
- package/dist/_pkgs/std/inline/utils/invisible-characters.js +162 -0
- package/dist/_pkgs/std/inline/utils/point-conversion.js +3 -3
- package/dist/_pkgs/std/inline/utils/text.d.ts +8 -0
- package/dist/_pkgs/std/inline/utils/text.js +11 -2
- package/dist/_pkgs/store/model/store/crud.d.ts +28 -0
- package/dist/_pkgs/store/model/store/crud.js +97 -30
- package/dist/_pkgs/store/model/store/query.js +3 -2
- package/dist/_pkgs/store/model/store/store.d.ts +21 -0
- package/dist/_pkgs/store/model/store/store.js +88 -21
- package/dist/_pkgs/store/transformer/transformer.d.ts +46 -0
- package/dist/_pkgs/store/transformer/transformer.js +72 -0
- package/dist/commands.js +6 -1
- package/dist/translations.js +2 -0
- package/package.json +3 -4
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
import { SLIDE_NAME_AGENDA, SLIDE_NAME_BENTO, SLIDE_NAME_CHART_TEXT, SLIDE_NAME_COLLAGE, SLIDE_NAME_CONTACT, SLIDE_NAME_COVER, SLIDE_NAME_COVER_IMAGE, SLIDE_NAME_FEATURE_BENTO, SLIDE_NAME_FULL_IMAGE, SLIDE_NAME_GANTT, SLIDE_NAME_IMAGE_CARDS, SLIDE_NAME_IMAGE_GRID, SLIDE_NAME_KEY_FIGURES, SLIDE_NAME_LOGO_WALL, SLIDE_NAME_MARKET_SIZE, SLIDE_NAME_MATRIX, SLIDE_NAME_ORG_CHART, SLIDE_NAME_PHONE, SLIDE_NAME_PRICING, SLIDE_NAME_PROCESS, SLIDE_NAME_QUOTE, SLIDE_NAME_ROADMAP, SLIDE_NAME_SECTION, SLIDE_NAME_SIX_POINTS, SLIDE_NAME_STATEMENT, SLIDE_NAME_TABLET, SLIDE_NAME_TEAM, SLIDE_NAME_TESTIMONIALS, SLIDE_NAME_TEXT_IMAGE, SLIDE_NAME_THREE_CHARTS, SLIDE_NAME_THREE_COLUMNS, SLIDE_NAME_TIMELINE, SLIDE_NAME_TWO_COLUMNS, SLIDE_NAME_VENN, SLIDE_SEED_AGENDA_ITEM, SLIDE_SEED_AGENDA_TITLE, SLIDE_SEED_AXIS_EFFORT, SLIDE_SEED_AXIS_VALUE, SLIDE_SEED_BODY, SLIDE_SEED_CAPTION, SLIDE_SEED_CHART, SLIDE_SEED_CONTACT_ADDRESS, SLIDE_SEED_CONTACT_EMAIL, SLIDE_SEED_CONTACT_PHONE, SLIDE_SEED_CONTACT_TITLE, SLIDE_SEED_CONTACT_VALUE, SLIDE_SEED_COVER_TITLE, SLIDE_SEED_DATE, SLIDE_SEED_DETAIL, SLIDE_SEED_EYEBROW, SLIDE_SEED_FEATURE, SLIDE_SEED_FIGURE, SLIDE_SEED_FIGURE_LABEL, SLIDE_SEED_HEADING, SLIDE_SEED_LOGO, SLIDE_SEED_MARKET_OBTAINABLE, SLIDE_SEED_MARKET_SERVICEABLE, SLIDE_SEED_MARKET_TOTAL, SLIDE_SEED_MILESTONE, SLIDE_SEED_MONTH, SLIDE_SEED_PERSON_NAME, SLIDE_SEED_PERSON_ROLE, SLIDE_SEED_PLAN, SLIDE_SEED_PRICE, SLIDE_SEED_QUADRANT, SLIDE_SEED_QUARTER, SLIDE_SEED_QUOTE, SLIDE_SEED_QUOTE_AUTHOR, SLIDE_SEED_SCREEN, SLIDE_SEED_SECTION_SUBTITLE, SLIDE_SEED_SECTION_TITLE, SLIDE_SEED_STATEMENT, SLIDE_SEED_STEP, SLIDE_SEED_SUBTITLE, SLIDE_SEED_TASK, SLIDE_SEED_TEAM_TITLE, SLIDE_SEED_TESTIMONIALS_TITLE, SLIDE_SEED_TITLE, SLIDE_SEED_VENN_IDEA, SLIDE_SEED_VENN_OTHER, SLIDE_SEED_VENN_OVERLAP, } from '../../translations.js';
|
|
2
|
+
import { SLIDE_HEIGHT, SLIDE_MARGIN, SLIDE_WIDTH, } from './consts.js';
|
|
3
|
+
/* ── Grid ─────────────────────────────────────────────────────────────── */
|
|
4
|
+
const M = SLIDE_MARGIN;
|
|
5
|
+
/** The content width between the two margins. */
|
|
6
|
+
const CONTENT = SLIDE_WIDTH - 2 * M;
|
|
7
|
+
const TITLE_Y = 72;
|
|
8
|
+
const GUTTER = 64;
|
|
9
|
+
/** `n` equal columns across the content width: their left edges and width. */
|
|
10
|
+
function columns(n, gap = GUTTER) {
|
|
11
|
+
const w = Math.round((CONTENT - gap * (n - 1)) / n);
|
|
12
|
+
return Array.from({ length: n }, (_, i) => ({
|
|
13
|
+
x: Math.round(M + i * (w + gap)),
|
|
14
|
+
w,
|
|
15
|
+
}));
|
|
16
|
+
}
|
|
17
|
+
function text(role, seed, x, y, w, opts = {}) {
|
|
18
|
+
return { kind: 'text', role, seed, x, y, w, ...opts };
|
|
19
|
+
}
|
|
20
|
+
function digits(value, x, y, w = 80) {
|
|
21
|
+
return {
|
|
22
|
+
kind: 'text',
|
|
23
|
+
role: 'caption',
|
|
24
|
+
digits: value,
|
|
25
|
+
x,
|
|
26
|
+
y,
|
|
27
|
+
w,
|
|
28
|
+
tone: 'muted',
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function image(x, y, w, h, opts = {}) {
|
|
32
|
+
return { kind: 'image', x, y, w, h, ...opts };
|
|
33
|
+
}
|
|
34
|
+
function card(x, y, w, h, opts = {}) {
|
|
35
|
+
return { kind: 'card', x, y, w, h, ...opts };
|
|
36
|
+
}
|
|
37
|
+
function line(from, to, arrow = false) {
|
|
38
|
+
return { kind: 'line', from, to, arrow };
|
|
39
|
+
}
|
|
40
|
+
function dot(cx, cy, size = 24) {
|
|
41
|
+
return { kind: 'dot', x: cx - size / 2, y: cy - size / 2, size };
|
|
42
|
+
}
|
|
43
|
+
/** Every slide's own title, top left (or centred). */
|
|
44
|
+
function title(seed = SLIDE_SEED_TITLE, opts = {}) {
|
|
45
|
+
return text('title', seed, M, TITLE_Y, opts.w ?? CONTENT, {
|
|
46
|
+
align: opts.align,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
const centred = { align: 'center' };
|
|
50
|
+
const muted = { tone: 'muted' };
|
|
51
|
+
/* ── The masks ────────────────────────────────────────────────────────── */
|
|
52
|
+
const cover = {
|
|
53
|
+
id: 'cover',
|
|
54
|
+
name: SLIDE_NAME_COVER,
|
|
55
|
+
keywords: ['cover', 'title', 'opening', 'first slide', 'pitch'],
|
|
56
|
+
variant: 'paper',
|
|
57
|
+
zones: [
|
|
58
|
+
text('caption', SLIDE_SEED_EYEBROW, M, 330, CONTENT, {
|
|
59
|
+
...centred,
|
|
60
|
+
...muted,
|
|
61
|
+
}),
|
|
62
|
+
text('display', SLIDE_SEED_COVER_TITLE, M, 372, CONTENT, centred),
|
|
63
|
+
text('caption', SLIDE_SEED_DATE, M, 500, CONTENT, { ...centred, ...muted }),
|
|
64
|
+
],
|
|
65
|
+
};
|
|
66
|
+
const coverImage = {
|
|
67
|
+
id: 'cover-image',
|
|
68
|
+
name: SLIDE_NAME_COVER_IMAGE,
|
|
69
|
+
keywords: ['cover', 'title', 'tagline', 'picture', 'photo', 'hero'],
|
|
70
|
+
variant: 'paper',
|
|
71
|
+
zones: [
|
|
72
|
+
text('display', SLIDE_SEED_COVER_TITLE, M, 330, 620, { lines: 2 }),
|
|
73
|
+
text('body', SLIDE_SEED_SUBTITLE, M, 500, 620, { lines: 2, ...muted }),
|
|
74
|
+
image(SLIDE_WIDTH / 2, 0, SLIDE_WIDTH / 2, SLIDE_HEIGHT),
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
const section = {
|
|
78
|
+
id: 'section',
|
|
79
|
+
name: SLIDE_NAME_SECTION,
|
|
80
|
+
keywords: ['section', 'divider', 'chapter', 'break', 'part'],
|
|
81
|
+
variant: 'inverse',
|
|
82
|
+
zones: [
|
|
83
|
+
text('display', SLIDE_SEED_SECTION_TITLE, M, 600, CONTENT),
|
|
84
|
+
text('body', SLIDE_SEED_SECTION_SUBTITLE, M, 690, CONTENT, muted),
|
|
85
|
+
],
|
|
86
|
+
};
|
|
87
|
+
const statement = {
|
|
88
|
+
id: 'statement',
|
|
89
|
+
name: SLIDE_NAME_STATEMENT,
|
|
90
|
+
keywords: ['statement', 'big idea', 'headline', 'message', 'claim'],
|
|
91
|
+
variant: 'inverse',
|
|
92
|
+
zones: [
|
|
93
|
+
text('caption', SLIDE_SEED_SUBTITLE, M, 300, CONTENT, muted),
|
|
94
|
+
text('display', SLIDE_SEED_STATEMENT, M, 340, 1100, { lines: 3 }),
|
|
95
|
+
],
|
|
96
|
+
};
|
|
97
|
+
const agenda = {
|
|
98
|
+
id: 'agenda',
|
|
99
|
+
name: SLIDE_NAME_AGENDA,
|
|
100
|
+
keywords: ['agenda', 'contents', 'outline', 'summary', 'plan'],
|
|
101
|
+
variant: 'paper',
|
|
102
|
+
zones: [
|
|
103
|
+
title(SLIDE_SEED_AGENDA_TITLE),
|
|
104
|
+
...[0, 1, 2, 3, 4].flatMap(i => {
|
|
105
|
+
const y = 220 + i * 112;
|
|
106
|
+
return [
|
|
107
|
+
digits(`0${i + 1}`, M, y + 8),
|
|
108
|
+
text('heading', SLIDE_SEED_AGENDA_ITEM, 216, y, CONTENT - 120),
|
|
109
|
+
line([M, y + 72], [M + CONTENT, y + 72]),
|
|
110
|
+
];
|
|
111
|
+
}),
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
const textImage = {
|
|
115
|
+
id: 'text-image',
|
|
116
|
+
name: SLIDE_NAME_TEXT_IMAGE,
|
|
117
|
+
keywords: ['text', 'picture', 'photo', 'split', 'describe', 'half'],
|
|
118
|
+
variant: 'paper',
|
|
119
|
+
zones: [
|
|
120
|
+
title(SLIDE_SEED_TITLE, { w: 720 }),
|
|
121
|
+
text('heading', SLIDE_SEED_HEADING, M, 240, 720, muted),
|
|
122
|
+
text('body', SLIDE_SEED_BODY, M, 290, 720, { lines: 3 }),
|
|
123
|
+
text('heading', SLIDE_SEED_HEADING, M, 480, 720, muted),
|
|
124
|
+
text('body', SLIDE_SEED_BODY, M, 530, 720, { lines: 3 }),
|
|
125
|
+
image(880, 0, SLIDE_WIDTH - 880, SLIDE_HEIGHT),
|
|
126
|
+
],
|
|
127
|
+
};
|
|
128
|
+
const fullImage = {
|
|
129
|
+
id: 'full-image',
|
|
130
|
+
name: SLIDE_NAME_FULL_IMAGE,
|
|
131
|
+
keywords: ['picture', 'photo', 'screenshot', 'visual', 'caption'],
|
|
132
|
+
variant: 'paper',
|
|
133
|
+
zones: [
|
|
134
|
+
title(),
|
|
135
|
+
image(M, 160, CONTENT, 600),
|
|
136
|
+
text('caption', SLIDE_SEED_CAPTION, M, 780, CONTENT, {
|
|
137
|
+
...centred,
|
|
138
|
+
...muted,
|
|
139
|
+
}),
|
|
140
|
+
],
|
|
141
|
+
};
|
|
142
|
+
const twoColumns = {
|
|
143
|
+
id: 'two-columns',
|
|
144
|
+
name: SLIDE_NAME_TWO_COLUMNS,
|
|
145
|
+
keywords: ['columns', 'compare', 'versus', 'before after', 'pros cons'],
|
|
146
|
+
variant: 'paper',
|
|
147
|
+
zones: [
|
|
148
|
+
title(),
|
|
149
|
+
...columns(2).flatMap(({ x, w }) => [
|
|
150
|
+
text('heading', SLIDE_SEED_HEADING, x, 260, w, { lines: 2 }),
|
|
151
|
+
text('body', SLIDE_SEED_BODY, x, 350, w, { lines: 4, ...muted }),
|
|
152
|
+
]),
|
|
153
|
+
],
|
|
154
|
+
};
|
|
155
|
+
const threeColumns = {
|
|
156
|
+
id: 'three-columns',
|
|
157
|
+
name: SLIDE_NAME_THREE_COLUMNS,
|
|
158
|
+
keywords: ['columns', 'three points', 'pillars', 'ideas', 'list'],
|
|
159
|
+
variant: 'paper',
|
|
160
|
+
zones: [
|
|
161
|
+
title(),
|
|
162
|
+
...columns(3).flatMap(({ x, w }, i) => [
|
|
163
|
+
digits(`0${i + 1}`, x, 260),
|
|
164
|
+
text('heading', SLIDE_SEED_HEADING, x, 300, w, { lines: 2 }),
|
|
165
|
+
text('body', SLIDE_SEED_BODY, x, 390, w, { lines: 4, ...muted }),
|
|
166
|
+
]),
|
|
167
|
+
],
|
|
168
|
+
};
|
|
169
|
+
const sixPoints = {
|
|
170
|
+
id: 'six-points',
|
|
171
|
+
name: SLIDE_NAME_SIX_POINTS,
|
|
172
|
+
keywords: ['grid', 'points', 'features', 'benefits', 'list'],
|
|
173
|
+
variant: 'paper',
|
|
174
|
+
zones: [
|
|
175
|
+
title(),
|
|
176
|
+
...[240, 530].flatMap(y => columns(3).flatMap(({ x, w }) => [
|
|
177
|
+
text('heading', SLIDE_SEED_HEADING, x, y, w, { lines: 2 }),
|
|
178
|
+
text('body', SLIDE_SEED_DETAIL, x, y + 90, w, { lines: 2, ...muted }),
|
|
179
|
+
])),
|
|
180
|
+
],
|
|
181
|
+
};
|
|
182
|
+
const imageCards = {
|
|
183
|
+
id: 'image-cards',
|
|
184
|
+
name: SLIDE_NAME_IMAGE_CARDS,
|
|
185
|
+
keywords: ['cards', 'pictures', 'gallery', 'products', 'features'],
|
|
186
|
+
variant: 'paper',
|
|
187
|
+
zones: [
|
|
188
|
+
title(),
|
|
189
|
+
...columns(3).flatMap(({ x, w }) => [
|
|
190
|
+
image(x, 200, w, 300),
|
|
191
|
+
text('heading', SLIDE_SEED_HEADING, x, 528, w, { lines: 2 }),
|
|
192
|
+
text('body', SLIDE_SEED_DETAIL, x, 616, w, { lines: 2, ...muted }),
|
|
193
|
+
]),
|
|
194
|
+
],
|
|
195
|
+
};
|
|
196
|
+
const keyFigures = {
|
|
197
|
+
id: 'key-figures',
|
|
198
|
+
name: SLIDE_NAME_KEY_FIGURES,
|
|
199
|
+
keywords: ['metrics', 'kpi', 'numbers', 'statistics', 'data', 'results'],
|
|
200
|
+
variant: 'paper',
|
|
201
|
+
zones: [
|
|
202
|
+
title(),
|
|
203
|
+
...columns(3).flatMap(({ x, w }) => [
|
|
204
|
+
text('figure', SLIDE_SEED_FIGURE, x, 300, w),
|
|
205
|
+
text('heading', SLIDE_SEED_FIGURE_LABEL, x, 450, w, { lines: 2 }),
|
|
206
|
+
text('body', SLIDE_SEED_DETAIL, x, 540, w, { lines: 2, ...muted }),
|
|
207
|
+
]),
|
|
208
|
+
],
|
|
209
|
+
};
|
|
210
|
+
const timeline = {
|
|
211
|
+
id: 'timeline',
|
|
212
|
+
name: SLIDE_NAME_TIMELINE,
|
|
213
|
+
keywords: ['timeline', 'milestones', 'history', 'schedule', 'dates'],
|
|
214
|
+
variant: 'paper',
|
|
215
|
+
zones: [
|
|
216
|
+
title(),
|
|
217
|
+
line([M, 470], [M + CONTENT, 470]),
|
|
218
|
+
...[0, 1, 2, 3].flatMap(i => {
|
|
219
|
+
const cx = Math.round(M + (CONTENT * (i + 0.5)) / 4);
|
|
220
|
+
const x = cx - 150;
|
|
221
|
+
return [
|
|
222
|
+
dot(cx, 470),
|
|
223
|
+
text('caption', SLIDE_SEED_QUARTER, x, 410, 300, {
|
|
224
|
+
...centred,
|
|
225
|
+
...muted,
|
|
226
|
+
params: { n: i + 1 },
|
|
227
|
+
}),
|
|
228
|
+
text('heading', SLIDE_SEED_MILESTONE, x, 510, 300, centred),
|
|
229
|
+
text('body', SLIDE_SEED_DETAIL, x, 560, 300, { ...centred, ...muted }),
|
|
230
|
+
];
|
|
231
|
+
}),
|
|
232
|
+
],
|
|
233
|
+
};
|
|
234
|
+
const roadmap = {
|
|
235
|
+
id: 'roadmap',
|
|
236
|
+
name: SLIDE_NAME_ROADMAP,
|
|
237
|
+
keywords: ['roadmap', 'plan', 'quarters', 'gantt', 'milestones'],
|
|
238
|
+
variant: 'paper',
|
|
239
|
+
zones: [
|
|
240
|
+
title(),
|
|
241
|
+
...columns(4, 0).flatMap(({ x, w }, i) => [
|
|
242
|
+
text('heading', SLIDE_SEED_QUARTER, x + 24, 220, w - 48, {
|
|
243
|
+
params: { n: i + 1 },
|
|
244
|
+
}),
|
|
245
|
+
...(i > 0 ? [line([x, 210], [x, 800])] : []),
|
|
246
|
+
card(x + 24, 290 + i * 100, w - 48, 64, {
|
|
247
|
+
label: SLIDE_SEED_MILESTONE,
|
|
248
|
+
filled: true,
|
|
249
|
+
}),
|
|
250
|
+
card(x + 24, 380 + i * 100, w - 48, 64, {
|
|
251
|
+
label: SLIDE_SEED_MILESTONE,
|
|
252
|
+
filled: true,
|
|
253
|
+
}),
|
|
254
|
+
]),
|
|
255
|
+
],
|
|
256
|
+
};
|
|
257
|
+
const process = {
|
|
258
|
+
id: 'process',
|
|
259
|
+
name: SLIDE_NAME_PROCESS,
|
|
260
|
+
keywords: ['process', 'steps', 'flow', 'workflow', 'how it works'],
|
|
261
|
+
variant: 'paper',
|
|
262
|
+
zones: [
|
|
263
|
+
title(),
|
|
264
|
+
...columns(5, 57).flatMap(({ x, w }, i, all) => [
|
|
265
|
+
card(x, 340, w, 140, {
|
|
266
|
+
label: SLIDE_SEED_STEP,
|
|
267
|
+
params: { n: i + 1 },
|
|
268
|
+
stroke: 'muted',
|
|
269
|
+
}),
|
|
270
|
+
text('body', SLIDE_SEED_DETAIL, x, 510, w, {
|
|
271
|
+
lines: 2,
|
|
272
|
+
...centred,
|
|
273
|
+
...muted,
|
|
274
|
+
}),
|
|
275
|
+
...(i < all.length - 1
|
|
276
|
+
? [line([x + w + 8, 410], [all[i + 1].x - 8, 410], true)]
|
|
277
|
+
: []),
|
|
278
|
+
]),
|
|
279
|
+
],
|
|
280
|
+
};
|
|
281
|
+
const matrix = {
|
|
282
|
+
id: 'matrix',
|
|
283
|
+
name: SLIDE_NAME_MATRIX,
|
|
284
|
+
keywords: [
|
|
285
|
+
'matrix',
|
|
286
|
+
'quadrant',
|
|
287
|
+
'2x2',
|
|
288
|
+
'prioritisation',
|
|
289
|
+
'prioritization',
|
|
290
|
+
'value effort',
|
|
291
|
+
],
|
|
292
|
+
variant: 'paper',
|
|
293
|
+
zones: [
|
|
294
|
+
title(),
|
|
295
|
+
line([260, 780], [260, 210], true),
|
|
296
|
+
line([260, 780], [M + CONTENT, 780], true),
|
|
297
|
+
text('caption', SLIDE_SEED_AXIS_VALUE, M, 220, 140, muted),
|
|
298
|
+
text('caption', SLIDE_SEED_AXIS_EFFORT, M + CONTENT - 200, 792, 200, {
|
|
299
|
+
align: 'right',
|
|
300
|
+
...muted,
|
|
301
|
+
}),
|
|
302
|
+
...[220, 490].flatMap(y => [300, 910].flatMap(x => [
|
|
303
|
+
card(x, y, 590, 250),
|
|
304
|
+
text('heading', SLIDE_SEED_QUADRANT, x + 32, y + 28, 526),
|
|
305
|
+
text('body', SLIDE_SEED_DETAIL, x + 32, y + 78, 526, muted),
|
|
306
|
+
])),
|
|
307
|
+
],
|
|
308
|
+
};
|
|
309
|
+
const venn = {
|
|
310
|
+
id: 'venn',
|
|
311
|
+
name: SLIDE_NAME_VENN,
|
|
312
|
+
keywords: ['venn', 'overlap', 'intersection', 'circles', 'sweet spot'],
|
|
313
|
+
variant: 'paper',
|
|
314
|
+
zones: [
|
|
315
|
+
title(),
|
|
316
|
+
card(400, 200, 520, 520, { shape: 'ellipse', stroke: 'muted' }),
|
|
317
|
+
card(680, 200, 520, 520, { shape: 'ellipse', stroke: 'muted' }),
|
|
318
|
+
text('heading', SLIDE_SEED_VENN_IDEA, 430, 440, 240, centred),
|
|
319
|
+
text('heading', SLIDE_SEED_VENN_OTHER, 930, 440, 240, centred),
|
|
320
|
+
text('caption', SLIDE_SEED_VENN_OVERLAP, 690, 448, 220, {
|
|
321
|
+
lines: 2,
|
|
322
|
+
...centred,
|
|
323
|
+
...muted,
|
|
324
|
+
}),
|
|
325
|
+
],
|
|
326
|
+
};
|
|
327
|
+
const marketSize = {
|
|
328
|
+
id: 'market-size',
|
|
329
|
+
name: SLIDE_NAME_MARKET_SIZE,
|
|
330
|
+
keywords: ['market', 'tam sam som', 'opportunity', 'sizing', 'circles'],
|
|
331
|
+
variant: 'paper',
|
|
332
|
+
zones: [
|
|
333
|
+
title(),
|
|
334
|
+
...[
|
|
335
|
+
SLIDE_SEED_MARKET_TOTAL,
|
|
336
|
+
SLIDE_SEED_MARKET_SERVICEABLE,
|
|
337
|
+
SLIDE_SEED_MARKET_OBTAINABLE,
|
|
338
|
+
].flatMap((seed, i) => [
|
|
339
|
+
text('heading', seed, M, 250 + i * 170, 560),
|
|
340
|
+
text('body', SLIDE_SEED_DETAIL, M, 300 + i * 170, 560, muted),
|
|
341
|
+
]),
|
|
342
|
+
card(860, 200, 600, 600, { shape: 'ellipse', stroke: 'muted' }),
|
|
343
|
+
card(960, 400, 400, 400, { shape: 'ellipse', stroke: 'muted' }),
|
|
344
|
+
card(1060, 600, 200, 200, { shape: 'ellipse', stroke: 'muted' }),
|
|
345
|
+
text('heading', SLIDE_SEED_FIGURE, 860, 250, 600, centred),
|
|
346
|
+
text('heading', SLIDE_SEED_FIGURE, 960, 450, 400, centred),
|
|
347
|
+
text('heading', SLIDE_SEED_FIGURE, 1060, 680, 200, centred),
|
|
348
|
+
],
|
|
349
|
+
};
|
|
350
|
+
/** One org-chart box: an outline, a name and a role. */
|
|
351
|
+
function person(x, y) {
|
|
352
|
+
return [
|
|
353
|
+
card(x, y, 300, 120),
|
|
354
|
+
text('heading', SLIDE_SEED_PERSON_NAME, x, y + 22, 300, centred),
|
|
355
|
+
text('caption', SLIDE_SEED_PERSON_ROLE, x, y + 70, 300, {
|
|
356
|
+
...centred,
|
|
357
|
+
...muted,
|
|
358
|
+
}),
|
|
359
|
+
];
|
|
360
|
+
}
|
|
361
|
+
const orgChart = {
|
|
362
|
+
id: 'org-chart',
|
|
363
|
+
name: SLIDE_NAME_ORG_CHART,
|
|
364
|
+
keywords: [
|
|
365
|
+
'organisation',
|
|
366
|
+
'organization',
|
|
367
|
+
'hierarchy',
|
|
368
|
+
'reporting',
|
|
369
|
+
'structure',
|
|
370
|
+
],
|
|
371
|
+
variant: 'paper',
|
|
372
|
+
zones: [
|
|
373
|
+
title(),
|
|
374
|
+
...person(650, 220),
|
|
375
|
+
line([800, 340], [800, 410]),
|
|
376
|
+
line([320, 410], [1280, 410]),
|
|
377
|
+
...[170, 650, 1130].flatMap(x => [
|
|
378
|
+
line([x + 150, 410], [x + 150, 480]),
|
|
379
|
+
...person(x, 480),
|
|
380
|
+
]),
|
|
381
|
+
],
|
|
382
|
+
};
|
|
383
|
+
const pricing = {
|
|
384
|
+
id: 'pricing',
|
|
385
|
+
name: SLIDE_NAME_PRICING,
|
|
386
|
+
keywords: ['pricing', 'plans', 'tiers', 'offer', 'packages'],
|
|
387
|
+
variant: 'paper',
|
|
388
|
+
zones: [
|
|
389
|
+
title(SLIDE_SEED_TITLE, centred),
|
|
390
|
+
...columns(3).flatMap(({ x, w }) => [
|
|
391
|
+
card(x, 200, w, 600),
|
|
392
|
+
text('heading', SLIDE_SEED_PLAN, x + 40, 240, w - 80, muted),
|
|
393
|
+
text('title', SLIDE_SEED_PRICE, x + 40, 290, w - 80),
|
|
394
|
+
line([x + 40, 380], [x + w - 40, 380]),
|
|
395
|
+
...[0, 1, 2].map(i => text('body', SLIDE_SEED_FEATURE, x + 40, 410 + i * 60, w - 80)),
|
|
396
|
+
]),
|
|
397
|
+
],
|
|
398
|
+
};
|
|
399
|
+
const logoWall = {
|
|
400
|
+
id: 'logo-wall',
|
|
401
|
+
name: SLIDE_NAME_LOGO_WALL,
|
|
402
|
+
keywords: ['logos', 'clients', 'partners', 'customers', 'trusted by'],
|
|
403
|
+
variant: 'paper',
|
|
404
|
+
zones: [
|
|
405
|
+
title(SLIDE_SEED_TITLE, centred),
|
|
406
|
+
...[300, 480].flatMap(y => columns(5, 52).map(({ x, w }) => image(x, y, w, 120, { label: SLIDE_SEED_LOGO }))),
|
|
407
|
+
],
|
|
408
|
+
};
|
|
409
|
+
const quote = {
|
|
410
|
+
id: 'quote',
|
|
411
|
+
name: SLIDE_NAME_QUOTE,
|
|
412
|
+
keywords: ['quote', 'citation', 'testimonial', 'voice', 'customer'],
|
|
413
|
+
variant: 'inverse',
|
|
414
|
+
zones: [
|
|
415
|
+
text('title', SLIDE_SEED_QUOTE, 200, 300, 1200, { lines: 3, ...centred }),
|
|
416
|
+
text('body', SLIDE_SEED_QUOTE_AUTHOR, 200, 520, 1200, {
|
|
417
|
+
...centred,
|
|
418
|
+
...muted,
|
|
419
|
+
}),
|
|
420
|
+
],
|
|
421
|
+
};
|
|
422
|
+
const testimonials = {
|
|
423
|
+
id: 'testimonials',
|
|
424
|
+
name: SLIDE_NAME_TESTIMONIALS,
|
|
425
|
+
keywords: ['testimonials', 'quotes', 'reviews', 'customers', 'clients'],
|
|
426
|
+
variant: 'paper',
|
|
427
|
+
zones: [
|
|
428
|
+
title(SLIDE_SEED_TESTIMONIALS_TITLE, centred),
|
|
429
|
+
...columns(3).flatMap(({ x, w }) => [
|
|
430
|
+
image(x + (w - 120) / 2, 210, 120, 120, { shape: 'ellipse' }),
|
|
431
|
+
text('body', SLIDE_SEED_QUOTE, x, 370, w, { lines: 4, ...centred }),
|
|
432
|
+
text('caption', SLIDE_SEED_QUOTE_AUTHOR, x, 520, w, {
|
|
433
|
+
...centred,
|
|
434
|
+
...muted,
|
|
435
|
+
}),
|
|
436
|
+
]),
|
|
437
|
+
],
|
|
438
|
+
};
|
|
439
|
+
const team = {
|
|
440
|
+
id: 'team',
|
|
441
|
+
name: SLIDE_NAME_TEAM,
|
|
442
|
+
keywords: ['team', 'people', 'staff', 'leadership', 'about us'],
|
|
443
|
+
variant: 'paper',
|
|
444
|
+
zones: [
|
|
445
|
+
title(SLIDE_SEED_TEAM_TITLE, centred),
|
|
446
|
+
...columns(4).flatMap(({ x, w }) => [
|
|
447
|
+
image(x + (w - 200) / 2, 230, 200, 200, { shape: 'ellipse' }),
|
|
448
|
+
text('heading', SLIDE_SEED_PERSON_NAME, x, 460, w, centred),
|
|
449
|
+
text('body', SLIDE_SEED_PERSON_ROLE, x, 505, w, { ...centred, ...muted }),
|
|
450
|
+
]),
|
|
451
|
+
],
|
|
452
|
+
};
|
|
453
|
+
const contact = {
|
|
454
|
+
id: 'contact',
|
|
455
|
+
name: SLIDE_NAME_CONTACT,
|
|
456
|
+
keywords: ['contact', 'address', 'email', 'phone', 'closing', 'thank you'],
|
|
457
|
+
variant: 'paper',
|
|
458
|
+
zones: [
|
|
459
|
+
image(0, 0, 640, SLIDE_HEIGHT),
|
|
460
|
+
text('title', SLIDE_SEED_CONTACT_TITLE, 736, TITLE_Y, 768),
|
|
461
|
+
...[
|
|
462
|
+
SLIDE_SEED_CONTACT_ADDRESS,
|
|
463
|
+
SLIDE_SEED_CONTACT_PHONE,
|
|
464
|
+
SLIDE_SEED_CONTACT_EMAIL,
|
|
465
|
+
].flatMap((label, i) => [
|
|
466
|
+
text('caption', label, 736, 280 + i * 150, 768, muted),
|
|
467
|
+
text('body', SLIDE_SEED_CONTACT_VALUE, 736, 312 + i * 150, 768),
|
|
468
|
+
]),
|
|
469
|
+
],
|
|
470
|
+
};
|
|
471
|
+
/* ── Placeholder families ─────────────────────────────────────────────── */
|
|
472
|
+
/**
|
|
473
|
+
* The families the first set deferred (README, "Deferred") for want of a
|
|
474
|
+
* chart, a photo or a device frame: built with the same dashed grey zone a
|
|
475
|
+
* picture gets, labelled for what the author drops in. A chart or a device
|
|
476
|
+
* frame is artwork the author brings; the mask only keeps its place.
|
|
477
|
+
*/
|
|
478
|
+
/** A chart placeholder: a fill zone labelled "Chart". */
|
|
479
|
+
function chart(x, y, w, h) {
|
|
480
|
+
return image(x, y, w, h, { label: SLIDE_SEED_CHART });
|
|
481
|
+
}
|
|
482
|
+
/** A device frame: a quiet outline around a screen zone. */
|
|
483
|
+
function device(x, y, w, h, bezel) {
|
|
484
|
+
return [
|
|
485
|
+
card(x, y, w, h, { stroke: 'muted' }),
|
|
486
|
+
image(x + bezel, y + bezel, w - 2 * bezel, h - 2 * bezel, {
|
|
487
|
+
label: SLIDE_SEED_SCREEN,
|
|
488
|
+
}),
|
|
489
|
+
];
|
|
490
|
+
}
|
|
491
|
+
/** Gantt bars in column units: [start, length], staggered like a plan. */
|
|
492
|
+
const GANTT_BARS = [
|
|
493
|
+
[0, 1.2],
|
|
494
|
+
[0.55, 1.9],
|
|
495
|
+
[1.95, 1.8],
|
|
496
|
+
[1.95, 1.8],
|
|
497
|
+
[3, 3],
|
|
498
|
+
[3.8, 2.2],
|
|
499
|
+
[4.4, 1.6],
|
|
500
|
+
[5, 1],
|
|
501
|
+
];
|
|
502
|
+
const gantt = {
|
|
503
|
+
id: 'gantt',
|
|
504
|
+
name: SLIDE_NAME_GANTT,
|
|
505
|
+
keywords: ['gantt', 'plan', 'schedule', 'tasks', 'months', 'timeline'],
|
|
506
|
+
variant: 'paper',
|
|
507
|
+
zones: [
|
|
508
|
+
title(),
|
|
509
|
+
...columns(6, 0).flatMap(({ x, w }, i) => [
|
|
510
|
+
...(i > 0 ? [line([x, 190], [x, 800])] : []),
|
|
511
|
+
text('caption', SLIDE_SEED_MONTH, x, 760, w, {
|
|
512
|
+
...centred,
|
|
513
|
+
...muted,
|
|
514
|
+
params: { n: i + 1 },
|
|
515
|
+
}),
|
|
516
|
+
]),
|
|
517
|
+
...GANTT_BARS.map(([start, length], r) => card(Math.round(M + (start * CONTENT) / 6), 200 + r * 68, Math.round((length * CONTENT) / 6), 56, { label: SLIDE_SEED_TASK, filled: true })),
|
|
518
|
+
],
|
|
519
|
+
};
|
|
520
|
+
const chartText = {
|
|
521
|
+
id: 'chart-text',
|
|
522
|
+
name: SLIDE_NAME_CHART_TEXT,
|
|
523
|
+
keywords: ['chart', 'graph', 'data', 'figures', 'explain', 'bar', 'line'],
|
|
524
|
+
variant: 'paper',
|
|
525
|
+
zones: [
|
|
526
|
+
title(SLIDE_SEED_TITLE, { w: 760 }),
|
|
527
|
+
text('body', SLIDE_SEED_BODY, M, 680, 700, { lines: 3, ...muted }),
|
|
528
|
+
chart(880, 200, 624, 560),
|
|
529
|
+
],
|
|
530
|
+
};
|
|
531
|
+
const threeCharts = {
|
|
532
|
+
id: 'three-charts',
|
|
533
|
+
name: SLIDE_NAME_THREE_CHARTS,
|
|
534
|
+
keywords: ['charts', 'graphs', 'pie', 'donut', 'compare', 'data'],
|
|
535
|
+
variant: 'paper',
|
|
536
|
+
zones: [
|
|
537
|
+
title(SLIDE_SEED_TITLE, centred),
|
|
538
|
+
...columns(3).flatMap(({ x, w }) => [
|
|
539
|
+
chart(x, 220, w, 380),
|
|
540
|
+
text('body', SLIDE_SEED_DETAIL, x, 640, w, {
|
|
541
|
+
lines: 3,
|
|
542
|
+
...centred,
|
|
543
|
+
...muted,
|
|
544
|
+
}),
|
|
545
|
+
]),
|
|
546
|
+
],
|
|
547
|
+
};
|
|
548
|
+
const collage = {
|
|
549
|
+
id: 'collage',
|
|
550
|
+
name: SLIDE_NAME_COLLAGE,
|
|
551
|
+
keywords: ['collage', 'photos', 'pictures', 'gallery', 'text', 'mosaic'],
|
|
552
|
+
variant: 'paper',
|
|
553
|
+
zones: [
|
|
554
|
+
title(SLIDE_SEED_TITLE, { w: 560 }),
|
|
555
|
+
text('body', SLIDE_SEED_BODY, M, 640, 560, { lines: 4, ...muted }),
|
|
556
|
+
image(700, 80, 440, 740),
|
|
557
|
+
image(1190, 80, 314, 350),
|
|
558
|
+
image(1190, 470, 314, 350),
|
|
559
|
+
],
|
|
560
|
+
};
|
|
561
|
+
const bento = {
|
|
562
|
+
id: 'bento',
|
|
563
|
+
name: SLIDE_NAME_BENTO,
|
|
564
|
+
keywords: ['bento', 'photos', 'pictures', 'collage', 'mosaic', 'gallery'],
|
|
565
|
+
variant: 'paper',
|
|
566
|
+
zones: [
|
|
567
|
+
image(M, 80, 940, 350),
|
|
568
|
+
image(1076, 80, 428, 350),
|
|
569
|
+
image(M, 470, 428, 350),
|
|
570
|
+
image(564, 470, 940, 350),
|
|
571
|
+
],
|
|
572
|
+
};
|
|
573
|
+
const imageGrid = {
|
|
574
|
+
id: 'image-grid',
|
|
575
|
+
name: SLIDE_NAME_IMAGE_GRID,
|
|
576
|
+
keywords: ['grid', 'photos', 'pictures', 'gallery', 'six', 'mosaic'],
|
|
577
|
+
variant: 'paper',
|
|
578
|
+
zones: [80, 470].flatMap(y => columns(3, 40).map(({ x, w }) => image(x, y, w, 350))),
|
|
579
|
+
};
|
|
580
|
+
/** A key-figure card: the number, then what it measures. */
|
|
581
|
+
function figureCard(x, y, w, h) {
|
|
582
|
+
return [
|
|
583
|
+
card(x, y, w, h),
|
|
584
|
+
text('figure', SLIDE_SEED_FIGURE, x + 40, y + 30, 320),
|
|
585
|
+
text('body', SLIDE_SEED_FIGURE_LABEL, x + 400, y + 72, w - 440, {
|
|
586
|
+
lines: 2,
|
|
587
|
+
...muted,
|
|
588
|
+
}),
|
|
589
|
+
];
|
|
590
|
+
}
|
|
591
|
+
/** A feature card: a heading, a line of body and a picture. */
|
|
592
|
+
function featureCard(x, y, w, h) {
|
|
593
|
+
return [
|
|
594
|
+
card(x, y, w, h),
|
|
595
|
+
text('heading', SLIDE_SEED_HEADING, x + 40, y + 40, w - 80, { lines: 2 }),
|
|
596
|
+
text('body', SLIDE_SEED_DETAIL, x + 40, y + 140, w - 80, {
|
|
597
|
+
lines: 2,
|
|
598
|
+
...muted,
|
|
599
|
+
}),
|
|
600
|
+
image(x + 40, y + 220, w - 80, h - 260),
|
|
601
|
+
];
|
|
602
|
+
}
|
|
603
|
+
const featureBento = {
|
|
604
|
+
id: 'feature-bento',
|
|
605
|
+
name: SLIDE_NAME_FEATURE_BENTO,
|
|
606
|
+
keywords: ['bento', 'features', 'metrics', 'kpi', 'product', 'highlights'],
|
|
607
|
+
variant: 'paper',
|
|
608
|
+
zones: [
|
|
609
|
+
...featureCard(M, 80, 520, 500),
|
|
610
|
+
...figureCard(660, 80, 844, 190),
|
|
611
|
+
image(660, 310, 300, 270),
|
|
612
|
+
...featureCard(1000, 310, 504, 510),
|
|
613
|
+
...figureCard(M, 620, 864, 200),
|
|
614
|
+
],
|
|
615
|
+
};
|
|
616
|
+
const phone = {
|
|
617
|
+
id: 'phone',
|
|
618
|
+
name: SLIDE_NAME_PHONE,
|
|
619
|
+
keywords: ['phone', 'mobile', 'mockup', 'app', 'device', 'screen'],
|
|
620
|
+
variant: 'paper',
|
|
621
|
+
zones: [
|
|
622
|
+
title(SLIDE_SEED_TITLE, { w: 760 }),
|
|
623
|
+
text('body', SLIDE_SEED_BODY, M, 700, 760, { lines: 2, ...muted }),
|
|
624
|
+
...device(1040, 60, 400, 780, 24),
|
|
625
|
+
],
|
|
626
|
+
};
|
|
627
|
+
const tablet = {
|
|
628
|
+
id: 'tablet',
|
|
629
|
+
name: SLIDE_NAME_TABLET,
|
|
630
|
+
keywords: ['tablet', 'mockup', 'app', 'device', 'screen', 'laptop'],
|
|
631
|
+
variant: 'paper',
|
|
632
|
+
zones: [
|
|
633
|
+
title(SLIDE_SEED_TITLE, { w: 700 }),
|
|
634
|
+
text('body', SLIDE_SEED_BODY, M, 680, 700, { lines: 3, ...muted }),
|
|
635
|
+
...device(900, 90, 700, 720, 36),
|
|
636
|
+
],
|
|
637
|
+
};
|
|
638
|
+
/** Every mask, in the panel's order: a deck reads top to bottom. */
|
|
639
|
+
export const SLIDE_MASKS = [
|
|
640
|
+
cover,
|
|
641
|
+
coverImage,
|
|
642
|
+
section,
|
|
643
|
+
statement,
|
|
644
|
+
agenda,
|
|
645
|
+
textImage,
|
|
646
|
+
fullImage,
|
|
647
|
+
twoColumns,
|
|
648
|
+
threeColumns,
|
|
649
|
+
sixPoints,
|
|
650
|
+
imageCards,
|
|
651
|
+
collage,
|
|
652
|
+
bento,
|
|
653
|
+
imageGrid,
|
|
654
|
+
featureBento,
|
|
655
|
+
phone,
|
|
656
|
+
tablet,
|
|
657
|
+
keyFigures,
|
|
658
|
+
chartText,
|
|
659
|
+
threeCharts,
|
|
660
|
+
timeline,
|
|
661
|
+
roadmap,
|
|
662
|
+
gantt,
|
|
663
|
+
process,
|
|
664
|
+
matrix,
|
|
665
|
+
venn,
|
|
666
|
+
marketSize,
|
|
667
|
+
orgChart,
|
|
668
|
+
pricing,
|
|
669
|
+
logoWall,
|
|
670
|
+
quote,
|
|
671
|
+
testimonials,
|
|
672
|
+
team,
|
|
673
|
+
contact,
|
|
674
|
+
];
|