doc-survival-kit 1.1.0 → 2.0.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/diagram.html +46 -0
- package/diagram.js +550 -116
- package/diagrammes.js +863 -216
- package/images/img_1774709818351.png +0 -0
- package/images/img_1774711114086.png +0 -0
- package/images/img_1774711575731.png +0 -0
- package/images/img_1774712426980.png +0 -0
- package/package.json +1 -1
- package/style.css +79 -18
package/diagram.html
CHANGED
|
@@ -91,6 +91,12 @@
|
|
|
91
91
|
<path d="M4 7V4.5a3 3 0 0 1 6 0"/>
|
|
92
92
|
</svg>
|
|
93
93
|
</button>
|
|
94
|
+
<!-- Retour au diagramme précédent -->
|
|
95
|
+
<button class="diagram-tool diagram-back-btn" id="btnDiagBack" onclick="goBackDiagram()" title="Retour au diagramme précédent" style="display:none">
|
|
96
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
97
|
+
<path d="M9 2 L3 7 L9 12"/>
|
|
98
|
+
</svg>
|
|
99
|
+
</button>
|
|
94
100
|
<span class="diagram-sep">|</span>
|
|
95
101
|
|
|
96
102
|
<!-- Titre (prend l'espace restant) -->
|
|
@@ -126,6 +132,7 @@
|
|
|
126
132
|
<button class="color-dot t-sky" onclick="setShapeColor('t-sky')"></button>
|
|
127
133
|
<button class="color-dot t-rose" onclick="setShapeColor('t-rose')"></button>
|
|
128
134
|
<button class="color-dot t-teal" onclick="setShapeColor('t-teal')"></button>
|
|
135
|
+
<button class="color-dot t-white" onclick="setShapeColor('t-white')"></button>
|
|
129
136
|
<span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
|
|
130
137
|
<button id="btnEditText" class="diagram-color-edit" onclick="startTextEdit(selectedId)" data-i18n-title="diag_edit_text">✎</button>
|
|
131
138
|
<span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
|
|
@@ -186,6 +193,40 @@
|
|
|
186
193
|
<path d="M7 2 Q11 6 11 9 A4 4 0 0 1 3 9 Q3 6 7 2 Z"/>
|
|
187
194
|
</svg>
|
|
188
195
|
</button>
|
|
196
|
+
<span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
|
|
197
|
+
<button class="diagram-color-edit" id="btnRotateLeft" onclick="rotateShape(-15)" title="Rotation antihoraire (−15°)">
|
|
198
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
199
|
+
<path d="M4 7A4 4 0 1 0 10 3 L5 3"/>
|
|
200
|
+
<polyline points="7,1.5 5,3 7,4.5"/>
|
|
201
|
+
</svg>
|
|
202
|
+
</button>
|
|
203
|
+
<button class="diagram-color-edit" id="btnRotateRight" onclick="rotateShape(15)" title="Rotation horaire (+15°)">
|
|
204
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
205
|
+
<path d="M10 7A4 4 0 1 1 4 3 L9 3"/>
|
|
206
|
+
<polyline points="7,1.5 9,3 7,4.5"/>
|
|
207
|
+
</svg>
|
|
208
|
+
</button>
|
|
209
|
+
<span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
|
|
210
|
+
<button class="diagram-color-edit" id="btnOrderBack" onclick="changeShapeOrder(-1)" title="Reculer d'un niveau">
|
|
211
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
212
|
+
<rect x="1" y="5" width="8" height="8" rx="1"/>
|
|
213
|
+
<rect x="5" y="1" width="8" height="8" rx="1" stroke-opacity="0.35"/>
|
|
214
|
+
</svg>
|
|
215
|
+
</button>
|
|
216
|
+
<button class="diagram-color-edit" id="btnOrderFront" onclick="changeShapeOrder(1)" title="Avancer d'un niveau">
|
|
217
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
218
|
+
<rect x="1" y="5" width="8" height="8" rx="1" stroke-opacity="0.35"/>
|
|
219
|
+
<rect x="5" y="1" width="8" height="8" rx="1"/>
|
|
220
|
+
</svg>
|
|
221
|
+
</button>
|
|
222
|
+
<span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
|
|
223
|
+
<button class="diagram-color-edit" id="btnShapeLink" onclick="toggleShapeLink()" title="Lier à un diagramme enfant" style="display:none">
|
|
224
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
|
|
225
|
+
<path d="M5.5 9.5H4a3 3 0 0 1 0-6h1.5"/>
|
|
226
|
+
<path d="M8.5 4.5H10a3 3 0 0 1 0 6H8.5"/>
|
|
227
|
+
<line x1="4.5" y1="7" x2="9.5" y2="7"/>
|
|
228
|
+
</svg>
|
|
229
|
+
</button>
|
|
189
230
|
</div>
|
|
190
231
|
|
|
191
232
|
<!-- Canvas SVG -->
|
|
@@ -268,6 +309,11 @@
|
|
|
268
309
|
box-shadow:0 1px 3px rgba(0,0,0,0.12);font-size:.85rem;color:#57534e;padding:0;
|
|
269
310
|
align-items:center;justify-content:center;">−</button>
|
|
270
311
|
|
|
312
|
+
<!-- Panneau de sélection de lien -->
|
|
313
|
+
<div id="linkPickerPanel" style="display:none;position:fixed;z-index:300;background:#fff;border:1px solid #e7e5e4;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,0.12);min-width:180px;max-width:260px;overflow:hidden;">
|
|
314
|
+
<div id="linkPickerList" style="max-height:200px;overflow-y:auto;"></div>
|
|
315
|
+
</div>
|
|
316
|
+
|
|
271
317
|
<script src="i18n/fr.js"></script>
|
|
272
318
|
<script src="i18n/en.js"></script>
|
|
273
319
|
<script src="i18n/i18n.js"></script>
|