doc-survival-kit 1.0.0 → 1.1.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 CHANGED
@@ -42,8 +42,29 @@
42
42
  </svg>
43
43
  </button>
44
44
  <button class="diagram-tool" id="toolCloud" onclick="setTool('cloud')" data-i18n-title="diag_tool_cloud">
45
- <svg width="16" height="14" viewBox="0 0 16 14" fill="none" stroke="currentColor" stroke-width="1.5">
46
- <ellipse cx="8" cy="7" rx="7" ry="6"/>
45
+ <svg width="18" height="11" viewBox="0 0 18 11" fill="none" stroke="currentColor" stroke-width="1.5">
46
+ <ellipse cx="9" cy="5.5" rx="8" ry="5"/>
47
+ </svg>
48
+ </button>
49
+ <button class="diagram-tool" id="toolNuage" onclick="setTool('nuage')" data-i18n-title="diag_tool_nuage">
50
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
51
+ <path d="M4.406 3.342A5.53 5.53 0 0 1 8 2c2.69 0 4.923 2 5.166 4.579C14.758 6.804 16 8.137 16 9.773 16 11.569 14.502 13 12.687 13H3.781C1.708 13 0 11.366 0 9.318c0-1.763 1.266-3.223 2.942-3.593.143-.863.698-1.723 1.464-2.383m.653.757c-.757.653-1.153 1.44-1.153 2.056v.448l-.445.049C2.064 6.805 1 7.952 1 9.318 1 10.785 2.23 12 3.781 12h8.906C13.98 12 15 10.988 15 9.773c0-1.216-1.02-2.228-2.313-2.228h-.5v-.5C12.188 4.825 10.328 3 8 3a4.53 4.53 0 0 0-2.941 1.1z"/>
52
+ </svg>
53
+ </button>
54
+ <button class="diagram-tool" id="toolActor" onclick="setTool('actor')" data-i18n-title="diag_tool_actor">
55
+ <svg width="14" height="18" viewBox="0 0 14 18" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round">
56
+ <circle cx="7" cy="3" r="2.5"/>
57
+ <line x1="7" y1="5.5" x2="7" y2="11"/>
58
+ <line x1="2" y1="8" x2="12" y2="8"/>
59
+ <line x1="7" y1="11" x2="3" y2="16"/>
60
+ <line x1="7" y1="11" x2="11" y2="16"/>
61
+ </svg>
62
+ </button>
63
+ <button class="diagram-tool" id="toolTable" onclick="setTool('table')" data-i18n-title="diag_tool_table">
64
+ <svg width="16" height="14" viewBox="0 0 16 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
65
+ <rect x="1" y="1" width="14" height="12" rx="1"/>
66
+ <line x1="1" y1="7" x2="15" y2="7"/>
67
+ <line x1="8" y1="1" x2="8" y2="13"/>
47
68
  </svg>
48
69
  </button>
49
70
  <button class="diagram-tool" id="toolText" onclick="setTool('text')" data-i18n-title="diag_tool_text">T</button>
@@ -106,7 +127,7 @@
106
127
  <button class="color-dot t-rose" onclick="setShapeColor('t-rose')"></button>
107
128
  <button class="color-dot t-teal" onclick="setShapeColor('t-teal')"></button>
108
129
  <span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
109
- <button class="diagram-color-edit" onclick="startTextEdit(selectedId)" data-i18n-title="diag_edit_text">✎</button>
130
+ <button id="btnEditText" class="diagram-color-edit" onclick="startTextEdit(selectedId)" data-i18n-title="diag_edit_text">✎</button>
110
131
  <span style="width:1px;background:#e7e5e4;margin:0 4px;align-self:stretch;"></span>
111
132
  <button class="diagram-color-edit diagram-color-font" onclick="changeShapeFontSize(1)" title="Agrandir la police">Aa+</button>
112
133
  <button class="diagram-color-edit diagram-color-font" onclick="changeShapeFontSize(-1)" title="Réduire la police">Aa−</button>
@@ -225,6 +246,28 @@
225
246
  </div>
226
247
  </div>
227
248
 
249
+ <!-- Boutons overlay tableau (positionnés par JS sur le canvas) -->
250
+ <button id="tcBtnAddCol" onclick="addTableCol()" title="Ajouter une colonne"
251
+ style="display:none;position:fixed;z-index:150;width:22px;height:22px;cursor:pointer;
252
+ border:1px solid #d6d3d1;border-radius:4px;background:rgba(255,255,255,0.95);
253
+ box-shadow:0 1px 3px rgba(0,0,0,0.12);font-size:.85rem;color:#57534e;padding:0;
254
+ align-items:center;justify-content:center;">+</button>
255
+ <button id="tcBtnRemoveCol" onclick="removeTableCol()" title="Supprimer la dernière colonne"
256
+ style="display:none;position:fixed;z-index:150;width:22px;height:22px;cursor:pointer;
257
+ border:1px solid #d6d3d1;border-radius:4px;background:rgba(255,255,255,0.95);
258
+ box-shadow:0 1px 3px rgba(0,0,0,0.12);font-size:.85rem;color:#57534e;padding:0;
259
+ align-items:center;justify-content:center;">−</button>
260
+ <button id="tcBtnAddRow" onclick="addTableRow()" title="Ajouter une ligne"
261
+ style="display:none;position:fixed;z-index:150;width:22px;height:22px;cursor:pointer;
262
+ border:1px solid #d6d3d1;border-radius:4px;background:rgba(255,255,255,0.95);
263
+ box-shadow:0 1px 3px rgba(0,0,0,0.12);font-size:.85rem;color:#57534e;padding:0;
264
+ align-items:center;justify-content:center;">+</button>
265
+ <button id="tcBtnRemoveRow" onclick="removeTableRow()" title="Supprimer la dernière ligne"
266
+ style="display:none;position:fixed;z-index:150;width:22px;height:22px;cursor:pointer;
267
+ border:1px solid #d6d3d1;border-radius:4px;background:rgba(255,255,255,0.95);
268
+ box-shadow:0 1px 3px rgba(0,0,0,0.12);font-size:.85rem;color:#57534e;padding:0;
269
+ align-items:center;justify-content:center;">−</button>
270
+
228
271
  <script src="i18n/fr.js"></script>
229
272
  <script src="i18n/en.js"></script>
230
273
  <script src="i18n/i18n.js"></script>