@gregoriusrippenstein/node-red-contrib-introspection 0.0.8 → 0.0.10

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.
@@ -115,7 +115,8 @@
115
115
  var origElem = origElems[idx];
116
116
 
117
117
  ["font-family", "font-size", "font-size-adjust", "font-stretch",
118
- "font-style", "font-variant", "font-weight", "text-anchor"
118
+ "font-style", "font-variant", "font-weight", "text-anchor",
119
+ "dominant-baseline"
119
120
  ].forEach( function(attrname) {
120
121
  elem.setAttribute(attrname,
121
122
  $(origElem).attr(attrname) ||
@@ -318,6 +319,13 @@
318
319
  document.body.removeChild(downloadLink);
319
320
  });
320
321
 
322
+ $('#node-screenshot-copy-to-clipboard-svg').on("click", function (e) {
323
+ e.preventDefault();
324
+ if ( RED.clipboard.copyText(that.editor.getValue()) ) {
325
+ RED.notify("SVG copied to clipboard", { type: "success" });
326
+ }
327
+ });
328
+
321
329
  $("#node-input-format").on("change", function() {
322
330
  var mod = "ace/mode/"+$("#node-input-format").val();
323
331
  that.editor.getSession().setMode({
@@ -405,7 +413,8 @@
405
413
  </div>
406
414
 
407
415
  <div class="form-row">
408
- <button type="button" id="node-screenshot-download-svg" class="red-ui-button red-ui-button-small"><i class="fa fa-download"></i>Download</button>
416
+ <button type="button" id="node-screenshot-download-svg" class="red-ui-button red-ui-button-large"><i class="fa fa-download"></i>Download</button>
417
+ <button type="button" id="node-screenshot-copy-to-clipboard-svg" class="red-ui-button red-ui-button-large"><i class="fa fa-clipboard"></i>Copy to Clipboard</button>
409
418
  </div>
410
419
  </script>
411
420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gregoriusrippenstein/node-red-contrib-introspection",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "keywords": [
5
5
  "node-red"
6
6
  ],