sunrize 2.7.1 → 2.8.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.
Files changed (49) hide show
  1. package/package.json +5 -5
  2. package/src/Application/Document.js +123 -1
  3. package/src/Application/Footer.js +1 -3
  4. package/src/Application/Registry.js +29 -22
  5. package/src/Controls/AddPrototypePopover.js +1 -1
  6. package/src/Controls/AnimationPropertiesPopover.js +3 -3
  7. package/src/Controls/EditNodePopover.js +3 -3
  8. package/src/Controls/EditUserDefinedFieldPopover.js +3 -3
  9. package/src/Controls/ExportNodePopover.js +2 -2
  10. package/src/Controls/ImportNodePopover.js +2 -2
  11. package/src/Controls/MaterialPreviewPopover.js +5 -6
  12. package/src/Controls/SetOrientationPopover.js +1 -1
  13. package/src/Controls/Splitter.js +3 -3
  14. package/src/Controls/TexturePreviewPopover.js +1 -0
  15. package/src/Editors/AnimationEditor.js +16 -8
  16. package/src/Editors/AnimationMemberList.js +1 -0
  17. package/src/Editors/BrowserFrame.js +10 -10
  18. package/src/Editors/Console.js +1 -1
  19. package/src/Editors/Library.js +1 -1
  20. package/src/Editors/MaterialsLibrary.js +9 -4
  21. package/src/Editors/OutlineEditor.js +101 -64
  22. package/src/Editors/OutlineRouteGraph.js +7 -5
  23. package/src/Editors/OutlineView.js +3 -3
  24. package/src/Editors/SceneProperties.js +12 -12
  25. package/src/Editors/ScriptEditor.js +1 -1
  26. package/src/Editors/VideoRecorder.js +415 -51
  27. package/src/Tools/Core/X3DNodeTool.js +4 -5
  28. package/src/Tools/EnvironmentalSensor/X3DEnvironmentalSensorNodeTool.x3d +5 -1
  29. package/src/Tools/Geometry2D/Arc2DTool.js +1 -0
  30. package/src/Tools/Geometry2D/ArcClose2DTool.js +1 -0
  31. package/src/Tools/Geometry2D/Circle2DTool.js +1 -0
  32. package/src/Tools/Geometry2D/Disk2DTool.js +2 -0
  33. package/src/Tools/Geometry2D/Rectangle2DTool.js +1 -0
  34. package/src/Tools/Geometry3D/BoxTool.js +1 -0
  35. package/src/Tools/Geometry3D/ConeTool.js +1 -0
  36. package/src/Tools/Geometry3D/CylinderTool.js +1 -0
  37. package/src/Tools/Geometry3D/SphereTool.js +1 -0
  38. package/src/Tools/Grouping/X3DTransformNodeTool.js +5 -21
  39. package/src/Tools/Grouping/X3DTransformNodeTool.x3d +11 -3
  40. package/src/Tools/Lighting/X3DLightNodeTool.x3d +18 -12
  41. package/src/Tools/Navigation/X3DViewpointNodeTool.x3d +2 -0
  42. package/src/Tools/Rendering/X3DGeometryNodeTool.x3d +1 -1
  43. package/src/Tools/Sound/ListenerPointSourceTool.x3d +8 -2
  44. package/src/Tools/Sound/SoundTool.x3d +10 -0
  45. package/src/Tools/Sound/SpatialSoundTool.x3d +8 -2
  46. package/src/Tools/TextureProjection/X3DTextureProjectorNodeTool.x3d +2 -0
  47. package/src/Undo/Editor.js +33 -21
  48. package/src/assets/html/window.html +1 -1
  49. package/src/assets/themes/default.css +107 -21
@@ -44,8 +44,7 @@ module .exports = class MaterialsLibrary extends LibraryPane
44
44
  const buttons = $("<li></li>")
45
45
  .appendTo (this .#list);
46
46
 
47
- this .#physicalButton = $("<input></input>")
48
- .attr ("title", _("Requires an EnvironmentLight node."))
47
+ this .#physicalButton = $("<input>")
49
48
  .attr ("type", "checkbox")
50
49
  .attr ("id", "use-physical-material")
51
50
  .prop ("checked", this .config .global .convertToPhysical)
@@ -53,11 +52,17 @@ module .exports = class MaterialsLibrary extends LibraryPane
53
52
  .appendTo (buttons);
54
53
 
55
54
  $("<label></label>")
56
- .attr ("title", _("Requires an EnvironmentLight node."))
57
55
  .attr ("for", "use-physical-material")
58
- .text (_("Create Physical Material"))
56
+ .text (_("Create Physical Material*"))
59
57
  .appendTo (buttons);
60
58
 
59
+ const hint = $("<li></li>")
60
+ .appendTo (this .#list);
61
+
62
+ $("<small></small>")
63
+ .text (_("* Requires an EnvironmentLight node."))
64
+ .appendTo (hint);
65
+
61
66
  // Materials
62
67
 
63
68
  const materials = scene .getExportedNode ("Materials");
@@ -219,6 +219,10 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
219
219
  accelerator: "CmdOrCtrl+Backspace",
220
220
  args: ["deleteNodes"],
221
221
  },
222
+ {
223
+ label: _("Add Clone"),
224
+ args: ["addClone", element .attr ("id"), executionContext .getId (), node .getId ()],
225
+ },
222
226
  {
223
227
  label: _("Unlink Clone"),
224
228
  enabled: node .getCloneCount () > 1,
@@ -1169,6 +1173,19 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
1169
1173
  UndoManager .shared .endUndo ();
1170
1174
  }
1171
1175
 
1176
+ addClone (id, executionContextId, nodeId)
1177
+ {
1178
+ const
1179
+ executionContext = this .objects .get (executionContextId),
1180
+ node = this .objects .get (nodeId);
1181
+
1182
+ UndoManager .shared .beginUndo (_("Add Clone"));
1183
+
1184
+ Editor .appendValueToArray (executionContext, executionContext, executionContext .rootNodes, node);
1185
+
1186
+ UndoManager .shared .endUndo ();
1187
+ }
1188
+
1172
1189
  unlinkClone (id, executionContextId, nodeId)
1173
1190
  {
1174
1191
  const
@@ -1701,51 +1718,61 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
1701
1718
 
1702
1719
  async saveDataUrlToFile (id, executionContextId, nodeId)
1703
1720
  {
1704
- const
1705
- executionContext = this .objects .get (executionContextId),
1706
- urlObject = this .objects .get (nodeId),
1707
- index = urlObject ._url .findIndex (fileURL => fileURL .match (/^\s*(?:data|ecmascript|javascript|vrmlscript):/s)),
1708
- dataURL = Editor .decodeURI (urlObject ._url [index]),
1709
- protocol = dataURL .match (/^\s*(?:data|ecmascript|javascript|vrmlscript):/s),
1710
- match = dataURL .match (/^\s*data:(.*?)(?:;charset=(.*?))?(?:;(base64))?,/s),
1711
- isData = protocol [0] === "data:";
1712
-
1713
- if (!((isData && match) || !isData))
1714
- return;
1721
+ try
1722
+ {
1723
+ const
1724
+ executionContext = this .objects .get (executionContextId),
1725
+ urlObject = this .objects .get (nodeId),
1726
+ index = urlObject ._url .findIndex (fileURL => fileURL .match (/^\s*(?:data|ecmascript|javascript|vrmlscript):/s)),
1727
+ dataURL = Editor .decodeURI (urlObject ._url [index]),
1728
+ protocol = dataURL .match (/^\s*(?:data|ecmascript|javascript|vrmlscript):/s),
1729
+ match = dataURL .match (/^\s*data:(.*?)(?:;charset=(.*?))?(?:;(base64))?,/s),
1730
+ isData = protocol [0] === "data:";
1731
+
1732
+ if (!((isData && match) || !isData))
1733
+ return;
1715
1734
 
1716
- // Open dialog.
1735
+ // Open dialog.
1717
1736
 
1718
- const
1719
- mimeType = isData ? match [1] || "text/plain" : this .protocolToMimeType .get (protocol [0]),
1720
- extension = mime .extension (mimeType),
1721
- defaultDirectory = $.try (() => path .dirname (url .fileURLToPath (executionContext .getWorldURL ()))),
1722
- defaultPath = urlObject .getName () && defaultDirectory ? path .join (defaultDirectory, `${urlObject .getName ()}.${extension}`) : defaultDirectory,
1723
- filters = extension
1724
- ? [{ name: _(`${extension .toUpperCase ()} Document`), extensions: [extension] }]
1725
- : [{ name: _("All Files"), extensions: ["*"] }];
1737
+ const
1738
+ name = urlObject .getName () ,
1739
+ mimeType = isData ? match [1] || "text/plain" : this .protocolToMimeType .get (protocol [0]),
1740
+ extension = mime .extension (mimeType),
1741
+ defaultDirectory = $.try (() => path .dirname (url .fileURLToPath (executionContext .getWorldURL ()))),
1742
+ desktop = await electron .ipcRenderer .invoke ("path", "desktop"),
1743
+ defaultPath = name ? path .join (defaultDirectory ?? desktop, `${name}.${extension}`) : (defaultDirectory ?? desktop);
1726
1744
 
1727
- const response = await electron .ipcRenderer .invoke ("file-path", { type: "save", defaultPath, filters });
1745
+ const filters = extension
1746
+ ? [{ name: _(`${extension .toUpperCase ()} Document`), extensions: [extension] }]
1747
+ : [{ name: _("All Files"), extensions: ["*"] }];
1728
1748
 
1729
- if (response .canceled)
1730
- return;
1749
+ const response = await electron .ipcRenderer .invoke ("file-path", { type: "save", defaultPath, filters });
1731
1750
 
1732
- // Create file.
1751
+ if (response .canceled)
1752
+ return;
1733
1753
 
1734
- const
1735
- data = dataURL .substring (dataURL .indexOf (isData ? "," : ":") + 1),
1736
- buffer = Buffer .from (data, isData && match [3] === "base64" ? "base64" : "utf8");
1754
+ // Create file.
1755
+
1756
+ const
1757
+ data = dataURL .substring (dataURL .indexOf (isData ? "," : ":") + 1),
1758
+ buffer = Buffer .from (data, isData && match [3] === "base64" ? "base64" : "utf8");
1737
1759
 
1738
- fs .writeFile (response .filePath, buffer, Function .prototype);
1760
+ fs .writeFileSync (response .filePath, buffer);
1739
1761
 
1740
- // Add undo step.
1762
+ // Add undo step.
1741
1763
 
1742
- const value = urlObject ._url .toSpliced (index, 1, Editor .relativePath (executionContext, response .filePath));
1764
+ const value = urlObject ._url .toSpliced (index, 1, Editor .relativePath (executionContext, response .filePath));
1743
1765
 
1744
- UndoManager .shared .beginUndo (_("Save Data URL to File"));
1766
+ UndoManager .shared .beginUndo (_("Save Data URL to File"));
1745
1767
 
1746
- Editor .setFieldValue (executionContext, urlObject, urlObject ._url, value);
1768
+ Editor .setFieldValue (executionContext, urlObject, urlObject ._url, value);
1747
1769
 
1748
- UndoManager .shared .endUndo ();
1770
+ UndoManager .shared .endUndo ();
1771
+ }
1772
+ catch (error)
1773
+ {
1774
+ console .error (error);
1775
+ }
1749
1776
  }
1750
1777
 
1751
1778
  textTypes = new Set ([
@@ -1851,50 +1878,59 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
1851
1878
 
1852
1879
  async convertNodeToInlineFile (id, executionContextId, nodeId, typeName)
1853
1880
  {
1854
- const
1855
- executionContext = this .objects .get (executionContextId),
1856
- childNode = this .objects .get (nodeId),
1857
- defaultDirectory = $.try (() => path .dirname (url .fileURLToPath (executionContext .getWorldURL ()))),
1858
- defaultPath = childNode .getDisplayName () && defaultDirectory ? path .join (defaultDirectory, `${childNode .getDisplayName ()}.x3d`) : defaultDirectory,
1859
- response = await electron .ipcRenderer .invoke ("file-path", { type: "save", defaultPath });
1881
+ try
1882
+ {
1883
+ const
1884
+ executionContext = this .objects .get (executionContextId),
1885
+ childNode = this .objects .get (nodeId),
1886
+ name = childNode .getDisplayName (),
1887
+ defaultDirectory = $.try (() => path .dirname (url .fileURLToPath (executionContext .getWorldURL ()))),
1888
+ desktop = await electron .ipcRenderer .invoke ("path", "desktop"),
1889
+ defaultPath = name ? path .join (defaultDirectory ?? desktop, `${name}.x3d`) : (defaultDirectory ?? desktop),
1890
+ response = await electron .ipcRenderer .invoke ("file-path", { type: "save", defaultPath });
1860
1891
 
1861
- if (response .canceled)
1862
- return;
1892
+ if (response .canceled)
1893
+ return;
1863
1894
 
1864
- switch (typeName)
1865
- {
1866
- case "Inline":
1867
- UndoManager .shared .beginUndo (_("Convert Node to Inline File"));
1868
- break;
1869
- case "InlineGeometry":
1870
- UndoManager .shared .beginUndo (_("Convert Node to InlineGeometry"));
1871
- break;
1872
- }
1895
+ // Create inline file.
1873
1896
 
1874
- // Create inline file.
1897
+ await Editor .convertNodesToInlineFile (executionContext, [childNode], response .filePath);
1875
1898
 
1876
- await Editor .convertNodesToInlineFile (executionContext, [childNode], response .filePath);
1899
+ // Create Inline node.
1877
1900
 
1878
- // Create Inline node.
1901
+ switch (typeName)
1902
+ {
1903
+ case "Inline":
1904
+ UndoManager .shared .beginUndo (_("Convert Node to Inline File"));
1905
+ break;
1906
+ case "InlineGeometry":
1907
+ UndoManager .shared .beginUndo (_("Convert Node to InlineGeometry"));
1908
+ break;
1909
+ }
1879
1910
 
1880
- await Editor .addComponent (executionContext, "Networking");
1911
+ await Editor .addComponent (executionContext, "Networking");
1881
1912
 
1882
- const inlineNode = executionContext .createNode (typeName) .getValue ();
1913
+ const inlineNode = executionContext .createNode (typeName) .getValue ();
1883
1914
 
1884
- inlineNode ._url = [Editor .relativePath (executionContext, response .filePath)];
1915
+ inlineNode ._url = [Editor .relativePath (executionContext, response .filePath)];
1885
1916
 
1886
- if (childNode .getName ())
1887
- Editor .updateNamedNode (executionContext, childNode .getName (), inlineNode);
1917
+ if (childNode .getName ())
1918
+ Editor .updateNamedNode (executionContext, childNode .getName (), inlineNode);
1888
1919
 
1889
- // Insert Inline node.
1920
+ // Insert Inline node.
1890
1921
 
1891
- Editor .replaceAllOccurrences (executionContext, childNode, inlineNode);
1922
+ Editor .replaceAllOccurrences (executionContext, childNode, inlineNode);
1892
1923
 
1893
- UndoManager .shared .endUndo ();
1924
+ UndoManager .shared .endUndo ();
1894
1925
 
1895
- await this .browser .nextFrame ();
1926
+ await this .browser .nextFrame ();
1896
1927
 
1897
- this .expandTo (inlineNode);
1928
+ this .expandTo (inlineNode);
1929
+ }
1930
+ catch (error)
1931
+ {
1932
+ console .error (error);
1933
+ }
1898
1934
  }
1899
1935
 
1900
1936
  addNormalsToGeometry (id, executionContextId, nodeId)
@@ -2267,7 +2303,8 @@ module .exports = class OutlineEditor extends OutlineRouteGraph
2267
2303
  executionContext = this .objects .get (executionContextId),
2268
2304
  proto = this .objects .get (protoNodeId),
2269
2305
  defaultDirectory = $.try (() => path .dirname (url .fileURLToPath (executionContext .getWorldURL ()))),
2270
- defaultPath = defaultDirectory ? path .join (defaultDirectory, `${proto .getName ()}.x3d`) : undefined,
2306
+ desktop = await electron .ipcRenderer .invoke ("path", "desktop"),
2307
+ defaultPath = path .join (defaultDirectory ?? desktop, `${proto .getName ()}.x3d`),
2271
2308
  response = await electron .ipcRenderer .invoke ("file-path", { type: "save", defaultPath });
2272
2309
 
2273
2310
  if (response .canceled)
@@ -113,10 +113,6 @@ module .exports = class OutlineRouteGraph extends OutlineView
113
113
 
114
114
  updateRouteGraph ()
115
115
  {
116
- const canvases = this .sceneGraph .find (".route-curves");
117
-
118
- canvases .css ("height", "");
119
-
120
116
  // Determine visible routes, those routes have a value of 2.
121
117
 
122
118
  const fields = new Map ();
@@ -132,6 +128,9 @@ module .exports = class OutlineRouteGraph extends OutlineView
132
128
  fields .set (route, (fields .get (route) ?? 0) + 1);
133
129
  }
134
130
 
131
+ this .sceneGraph .find (".field-routes, .single-route, .route-curves")
132
+ .css ("height", "");
133
+
135
134
  this .sceneGraph
136
135
  .find (".field-routes")
137
136
  .each ((i, canvas2d) => this .updateFieldRoutes ($(canvas2d), fields));
@@ -140,6 +139,8 @@ module .exports = class OutlineRouteGraph extends OutlineView
140
139
  .find (".single-route")
141
140
  .each ((i, canvas2d) => this .updateSingleRoute ($(canvas2d), fields));
142
141
 
142
+ const canvases = this .sceneGraph .find (".route-curves");
143
+
143
144
  this .updateRouteCurves (canvases, fields);
144
145
  }
145
146
 
@@ -301,7 +302,8 @@ module .exports = class OutlineRouteGraph extends OutlineView
301
302
  rect1 = canvas1 .get (0) .getBoundingClientRect (),
302
303
  rect2 = canvas2 .get (0) .getBoundingClientRect ();
303
304
 
304
- canvas1 .height (Math .ceil (rect2 .y - rect1 .y));
305
+ if (!canvas1 .is (".route-value"))
306
+ canvas1 .height (Math .ceil (rect2 .y - rect1 .y));
305
307
 
306
308
  canvas1 .prop ("width", canvas1 .width ());
307
309
  canvas1 .prop ("height", canvas1 .height ());
@@ -1400,7 +1400,7 @@ module .exports = class OutlineView extends Interface
1400
1400
  .imported-node[node-id=${node .getId ()}],
1401
1401
  .exported-node[node-id=${node .getId ()}],
1402
1402
  .externproto[node-id=${node .getId ()}]`)
1403
- .find ("> .item .reload-node")
1403
+ .find ("> .item [action=reload-node]")
1404
1404
  .removeClass (["not-started-state", "in-progress-state", "complete-state", "failed-state"])
1405
1405
  .addClass (className);
1406
1406
  }
@@ -2486,7 +2486,7 @@ module .exports = class OutlineView extends Interface
2486
2486
 
2487
2487
  $("<div></div>")
2488
2488
  .addClass (type + "-value-container")
2489
- .append ($("<input></input>"))
2489
+ .append ($("<input>"))
2490
2490
  .appendTo (li);
2491
2491
 
2492
2492
  // Make jsTree.
@@ -2626,7 +2626,7 @@ module .exports = class OutlineView extends Interface
2626
2626
  child .find (".jstree-node")
2627
2627
  .wrapInner ("<div class=\"item no-select\"/>")
2628
2628
  .find (".item")
2629
- .append ("<div class=\"route-curves-wrapper\"><canvas class=\"route-curves\"></canvas></div>");
2629
+ .append ("<div class=\"route-curves-wrapper\"><canvas class=\"route-curves route-value\"></canvas></div>");
2630
2630
 
2631
2631
  this .connectFieldActions (child);
2632
2632
 
@@ -56,7 +56,7 @@ module .exports = new class SceneProperties extends Dialog
56
56
  this .profileAndComponents .table .body = $("<tbody></tbody>") .appendTo (this .profileAndComponents .table);
57
57
  this .profileAndComponents .inputs = { };
58
58
 
59
- this .profileAndComponents .inputs .checkbox = $("<input></input>")
59
+ this .profileAndComponents .inputs .checkbox = $("<input>")
60
60
  .attr ("id", "infer-profile-and-components-checkbox")
61
61
  .attr ("type", "checkbox")
62
62
  .on ("click", () => this .toggleInferProfileAndComponents ());
@@ -81,7 +81,7 @@ module .exports = new class SceneProperties extends Dialog
81
81
  $("<tr></tr>")
82
82
  .append ($("<td></td>")
83
83
  .width ("15px")
84
- .append ($("<input></input>")
84
+ .append ($("<input>")
85
85
  .attr ("type", "checkbox")
86
86
  .attr ("id", `scene-properties-${component .name}`)
87
87
  .attr ("component", component .name)
@@ -92,7 +92,7 @@ module .exports = new class SceneProperties extends Dialog
92
92
  .text (component .title)))
93
93
  .append ($("<td></td>")
94
94
  .width ("15px")
95
- .append ($("<input></input>")
95
+ .append ($("<input>")
96
96
  .attr ("component", component .name)
97
97
  .attr ("level", component .level)
98
98
  .val (component .level)
@@ -128,8 +128,8 @@ module .exports = new class SceneProperties extends Dialog
128
128
 
129
129
  this .units .inputs = new Map (Units .map (unit => [unit .category,
130
130
  {
131
- name: $("<input></input>") .attr ("list", unit .category),
132
- conversionFactor: $("<input></input>") .attr ("category", unit .category),
131
+ name: $("<input>") .attr ("list", unit .category),
132
+ conversionFactor: $("<input>") .attr ("category", unit .category),
133
133
  }]));
134
134
 
135
135
  $("<tr></tr>")
@@ -185,7 +185,7 @@ module .exports = new class SceneProperties extends Dialog
185
185
  this .metaDataOptions = $("<table></table>") .appendTo (this .metaData);
186
186
  this .metaDataOptions .body = $("<tbody></tbody>") .appendTo (this .metaDataOptions);
187
187
 
188
- this .commonMetaData = $("<input></input>")
188
+ this .commonMetaData = $("<input>")
189
189
  .attr ("id", "common-metadata")
190
190
  .attr ("type", "checkbox")
191
191
  .on ("click", () => this .toggleCommonMetaData ());
@@ -247,12 +247,12 @@ module .exports = new class SceneProperties extends Dialog
247
247
  this .worldInfo .table .body = $("<tbody></tbody>") .appendTo (this .worldInfo .table);
248
248
  this .worldInfo .inputs = { };
249
249
 
250
- this .worldInfo .inputs .checkbox = $("<input></input>")
250
+ this .worldInfo .inputs .checkbox = $("<input>")
251
251
  .attr ("id", "world-info-checkbox")
252
252
  .attr ("type", "checkbox")
253
253
  .on ("click", () => this .toggleWorldInfo ());
254
254
 
255
- this .worldInfo .inputs .title = $("<input></input>") .attr ("spellcheck", "true");
255
+ this .worldInfo .inputs .title = $("<input>") .attr ("spellcheck", "true");
256
256
  this .worldInfo .inputs .info = $("<textarea></textarea>") .attr ("spellcheck", "true") .height ("100%") .css ("resize", "none");
257
257
 
258
258
  this .worldInfo .checkboxRow = $("<tr></tr>")
@@ -495,14 +495,14 @@ module .exports = new class SceneProperties extends Dialog
495
495
  .addClass (this .config .file .sortMetaData ? ["disabled"] : [ ])
496
496
  .text ("drag_handle")))
497
497
  .append ($("<td></td>")
498
- .append ($("<input></input>")
498
+ .append ($("<input>")
499
499
  .attr ("index", 0)
500
500
  .attr ("placeholder", _("Insert meta key here."))
501
501
  .attr ("spellcheck", "true")
502
502
  .val (key) .on ("change", (event) => this .changeMetaData (event, key))))
503
503
  .append ($("<td></td>")
504
504
  .addClass ("meta-value")
505
- .append ($("<input></input>")
505
+ .append ($("<input>")
506
506
  .attr ("index", 1)
507
507
  .attr ("placeholder", _("Insert meta value here."))
508
508
  .attr ("spellcheck", "true")
@@ -566,12 +566,12 @@ module .exports = new class SceneProperties extends Dialog
566
566
  $("<tr></tr>")
567
567
  .append ($("<td></td>"))
568
568
  .append ($("<td></td>")
569
- .append ($("<input></input>")
569
+ .append ($("<input>")
570
570
  .attr ("placeholder", _("Add new meta key."))
571
571
  .attr ("spellcheck", "true")
572
572
  .on ("change", event => this .changeMetaData (event, ""))))
573
573
  .append ($("<td></td>")
574
- .append ($("<input></input>")
574
+ .append ($("<input>")
575
575
  .prop ("readonly", true)
576
576
  .attr ("spellcheck", "true")
577
577
  .on ("change", event => this .changeMetaData (event, ""))))
@@ -130,7 +130,7 @@ module .exports = class ScriptEditor extends Interface
130
130
  .addClass (["alternating", "node-list"])
131
131
  .appendTo (this .horizontalSplitterTop);
132
132
 
133
- this .nodeName = $("<input></input>")
133
+ this .nodeName = $("<input>")
134
134
  .addClass ("node-name")
135
135
  .attr ("title", _("Rename node."))
136
136
  .attr ("placeholder", _("Enter node name."))