بنقرة واحدة
diagramas-svg
Crea y mantiene diagramas SVG con estilos consistentes para el proyecto UNTREF AyP2
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Crea y mantiene diagramas SVG con estilos consistentes para el proyecto UNTREF AyP2
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Crea applets HTML/JS autocontenidos para visualización interactiva en el apunte AyP2
Crea y mantiene ejercicios del repositorio taller-tad. Documenta la estructura de directorios, convenciones de README y el flujo para agregar nuevos capítulos.
Crea y mantiene esqueletos del repositorio data-structures. Documenta la estructura de paquetes, convenciones de nombres, estilo de código y README.
| name | diagramas-svg |
| description | Crea y mantiene diagramas SVG con estilos consistentes para el proyecto UNTREF AyP2 |
| license | CC-BY-SA-4.0 |
| compatibility | opencode |
Consultar ESTILOS.md §4 para paletas de colores, fuentes, grosores y clases CSS estándar.
Usar clases CSS en <defs><style> para mantener consistencia. Orden recomendado:
<defs> con <style> y <marker><rect> de fondo<text> título<g> con elementos del diagramaLas definiciones de color y fuente están en ESTILOS.md §4. Acá solo la semántica:
| Clase | Uso |
|---|---|
.title | Título principal (20px, sans-serif, text-anchor middle) |
.code | Texto en nodos (16px, monoespaciado, text-anchor middle) |
.code-example | Código fuera de nodos (18px, monoespaciado, text-anchor start) |
.variable-node | Nodos que representan variables (fill azul) |
.value-node | Nodos que representan valores (fill rojo) |
.arrow | Flechas/aristas con marker-end #arrowhead |
.note | Notas en cursiva (14px, sans-serif) |
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 360">
<defs>
<style>
.title { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 20px; text-anchor: middle; fill: #333333; }
.code { font-family: menlo, consola, 'DejaVu Sans Mono'; font-size: 16px; fill: #333333; text-anchor: middle; }
.variable-node { fill: #e1f5ff; stroke: #4682b4; stroke-width: 2; }
.value-node { fill: #ffe1e1; stroke: #e9967a; stroke-width: 2; }
.arrow { stroke: #333333; stroke-width: 2; marker-end: url(#arrowhead); }
</style>
<marker id="arrowhead" markerWidth="6" markerHeight="5" refX="6" refY="2.5" orient="auto">
<polygon points="0 0, 6 2.5, 0 5" fill="#333333" />
</marker>
</defs>
<rect width="100%" height="100%" fill="#f0f2f5" rx="8"/>
<!-- elementos del diagrama -->
</svg>
| Clase | Uso |
|---|---|
.edge | Arista entre nodos (ABB, AVL) |
.tree-edge | Arista gruesa (árbol genérico) |
.op-node | Nodo de operación (+, −, *, etc.) |
.num-node | Nodo de número o valor |
.node-circle | Círculo de nodo (r=18, stroke-width 2.5) |
.node-text | Texto interior (monospace 14px bold, centrado) |
.fb-label | Etiqueta factor de balanceo (sans-serif 12px) |
.fb-bal | FB balanceado (verde) |
.fb-unbal | FB desbalanceado (rojo) |
.annotation-text | Anotaciones externas |
.pointer-line | Línea de puntero desde anotación |
.dashed-line | Línea punteada para marcar niveles |
Los colores de cada clase están en ESTILOS.md §4 (tablas "Paleta de colores — Light/Dark").
0 0 700 360 para 5 niveles; reducir altura a 300 o 280 para 3-4 niveles, mantener ancho 700.r="18"x="cx + r + 6", text-anchor: start)x="cx - r - 6", text-anchor: end)fb-bal; desbalanceado: clase fb-unbal<defs>
<style>
.edge { stroke: #333333; stroke-width: 2; fill: none; }
.op-node { fill: #e1f5ff; stroke: #4682b4; stroke-width: 2.5; }
.num-node { fill: #ffe1e1; stroke: #e9967a; stroke-width: 2.5; }
.text { fill: #333333; font-family: monospace; font-size: 22px; font-weight: bold; text-anchor: middle; dominant-baseline: central; }
</style>
</defs>
<line class="edge" x1="260" y1="50" x2="100" y2="140"/>
<circle class="op-node" cx="260" cy="50" r="24"/>
<text class="text" x="260" y="50">+</text>
<circle class="num-node" cx="100" cy="140" r="24"/>
<text class="text" x="100" y="140">a</text>
_light.svg y _dark.svgcontenidos/_static/figures/slice-append-entangled-1_light.svg)#f0f2f5#e1f5ff, #ffe1e1)#4682b4, #e9967a)#333333_light.svg → _dark.svg#f0f2f5 → #1e1e1e#2d3748, #4a5568)#63b3ed, #fc8181)#333333 → #e0e0e0_light.svg y _dark.svg<defs> con <style> y clases CSSESTILOS.md §4)marker-end apuntando a #arrowhead.code-example usa guión, no guión bajo