@gregoriusrippenstein/node-red-contrib-introspection 0.0.3 → 0.0.4
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/README.md +5 -5
- package/nodes/15-screenshot.html +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,20 +34,20 @@ Double click on the top-level node and all nodes in the pathway are highlighted.
|
|
|
34
34
|
|
|
35
35
|
Drag the node into a flow, double-click on the node and the tray opens -depending on the size of the flow, this might take a moment. Once the tray is opened, the SVG is shown in the editor window (I took the code from the template node hence the syntax dropdown). Below the editor window is the download button. Pressing that will download the SVG as it is in the editor window, so making changes in that window will be reflected in the downloaded content.
|
|
36
36
|
|
|
37
|
-
The SVG code can also be copied and pasted into something like [drawsvg.org](https://drawsvg.org/drawsvg.html) hence select-all-copy-paste is
|
|
37
|
+
The SVG code can also be copied and pasted into something like [drawsvg.org](https://drawsvg.org/drawsvg.html) hence select-all-copy-paste is provided by having the editor window.
|
|
38
38
|
|
|
39
39
|
Improvements over [svgexport.io](https://svgexport.io) browser plugin:
|
|
40
40
|
|
|
41
|
-
- Respects the 'hide' CSS class that is used to hide specific elements, this the svgexport plugin cannot know.
|
|
41
|
+
- Respects the 'hide' CSS class that is used to hide specific elements, this is something that the svgexport plugin cannot know.
|
|
42
42
|
- Compliments the setting of visibility on the 'g' element with opacity=0. The SVG Standard ignores visibility on 'g' elements but browsers don't seem to care, Inkscape does care.
|
|
43
43
|
- Image data (i.e. icons) is inlined using `data:image/XXXX;base64,` - this is good for things such as Inkscape that can't resolve relative urls. PNG, JPEG and SVG are supported.
|
|
44
44
|
- It also retrieves font details and includes them in the SVG. This makes the font italic, even if it's not the correct font family (because font might not be installed on system).
|
|
45
45
|
|
|
46
46
|
Disappointments:
|
|
47
47
|
|
|
48
|
-
- Font-awesome icons, because they use the font-awesome font, aren't inlined and therefore aren't available in external tools
|
|
48
|
+
- Font-awesome icons, because they use the font-awesome font, aren't inlined and therefore aren't available in external tools. If the font-awesome fonts are installed on the system icons do work in Inkscape and browser.
|
|
49
49
|
- Because a double click is required, any highlights in the workflow are lost (i.e. link-in/out highlights showing the other tab names disappears)
|
|
50
|
-
- Limited testing:
|
|
50
|
+
- Limited testing: Firefox & Opera (on mac), your mileage might vary
|
|
51
51
|
- No error checking - network requests are assumed to work
|
|
52
52
|
|
|
53
53
|
## Examples
|
|
@@ -64,7 +64,7 @@ Example screenshot:
|
|
|
64
64
|
|
|
65
65
|
## License
|
|
66
66
|
|
|
67
|
-
[Do whatever but don't do evil](/LICENSE)
|
|
67
|
+
[*Do whatever but don't do evil* license](/LICENSE)
|
|
68
68
|
|
|
69
69
|
## Contribution & Ideas
|
|
70
70
|
|
package/nodes/15-screenshot.html
CHANGED
|
@@ -239,6 +239,9 @@
|
|
|
239
239
|
getDataAndCallbackWhenDone( imageColl.item(imageColl.length-1),
|
|
240
240
|
imageColl.length-1,
|
|
241
241
|
cb );
|
|
242
|
+
} else {
|
|
243
|
+
const serializer = new XMLSerializer();
|
|
244
|
+
that.editor.setValue( serializer.serializeToString(doc) );
|
|
242
245
|
}
|
|
243
246
|
|
|
244
247
|
// handle the download button under the editor window.
|