yzsp-studio/mediakit-shared-suite / ppt
ppt
Unverified飞书幻灯片:创建和编辑幻灯片。创建演示文稿、读取幻灯片内容、管理幻灯片页面(创建、删除、读取、局部替换)。当用户需要创建或编辑幻灯片、读取或修改单个页面时使用。
scripts/svg_relation_lib/presets/_chrome.py
View on GitHub"""Private chrome helper shared by presets · v1 原样搬 · 不改动"""
from __future__ import annotations
from ..engine import text, line
from ..palettes import Palette
# 全局画布尺寸 · 与 v1 一致
W, H = 900, 336
def _draw_chrome(p, palette: Palette, data, kicker: str):
"""Draw 6-layer chrome using palette + data attrs. duck-type · 只读 data 上的字段"""
figure_title = getattr(data, "figure_title", "")
encoding_note = getattr(data, "encoding_note", "")
figure_caption = getattr(data, "figure_caption", "")
source = getattr(data, "source", "")
p.append(text(20, 24, kicker,
size=9, color=palette.primary,
family=palette.mono_family, bold=True,
letter=palette.kicker_letter_spacing))
p.append(text(20, 48, figure_title, size=17, color=palette.ink,
family=palette.head_family, bold=True,
italic=palette.title_style.endswith("italic")))
if encoding_note:
p.append(text(880, 24, encoding_note, size=9,
color=palette.gray, family=palette.body_family,
italic=True, anchor="end"))
p.append(line(20, 60, W - 20, 60, color=palette.hair, w=1))
p.append(line(20, 300, W - 20, 300, color=palette.hair, w=1))
if figure_caption:
p.append(text(20, 316, figure_caption, size=9,
color=palette.gray, family=palette.body_family,
italic=True))
if source:
p.append(text(880, 328, source, size=8,
color=palette.gray, family=palette.mono_family,
letter=1.2, anchor="end"))
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |