- Docs (JSDoc): Further on preferring void

This commit is contained in:
Brett Zamir
2019-04-16 08:59:16 +08:00
parent 894fed3e80
commit d84f39cb3f
62 changed files with 576 additions and 575 deletions

View File

@@ -13,7 +13,7 @@ let svgCanvas = null;
/**
* @param {string} data
* @param {string} error
* @returns {undefined}
* @returns {void}
*/
function handleSvgData (data, error) {
if (error) {
@@ -27,7 +27,7 @@ function handleSvgData (data, error) {
/**
* Set the canvas with an example SVG string.
* @returns {undefined}
* @returns {void}
*/
function loadSvg () {
const svgexample = '<svg width="640" height="480" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><g><title>Layer 1</title><rect stroke-width="5" stroke="#000000" fill="#FF0000" id="svg_1" height="35" width="51" y="35" x="32"/><ellipse ry="15" rx="24" stroke-width="5" stroke="#000000" fill="#0000ff" id="svg_2" cy="60" cx="66"/></g></svg>';
@@ -36,7 +36,7 @@ function loadSvg () {
/**
*
* @returns {undefined}
* @returns {void}
*/
function saveSvg () {
svgCanvas.getSvgString()(handleSvgData);
@@ -44,7 +44,7 @@ function saveSvg () {
/**
* Perform a PNG export.
* @returns {undefined}
* @returns {void}
*/
function exportPNG () {
svgCanvas.getUIStrings()(function (uiStrings) {
@@ -62,7 +62,7 @@ function exportPNG () {
/**
* Perform a PDF export.
* @returns {undefined}
* @returns {void}
*/
function exportPDF () {
svgCanvas.getUIStrings()(function (uiStrings) {