summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunil Shetye2022-01-13 21:56:50 +0530
committerSunil Shetye2022-01-13 21:57:30 +0530
commitd59c4f4856e36019b5fc49731a201496e3bc06b7 (patch)
treee82fb524f3b836f700306586228663c04d378e74
parentdcaa6492255103693d323efa65839b9ab52fa399 (diff)
downloadCommon-Interface-Project-d59c4f4856e36019b5fc49731a201496e3bc06b7.tar.gz
Common-Interface-Project-d59c4f4856e36019b5fc49731a201496e3bc06b7.tar.bz2
Common-Interface-Project-d59c4f4856e36019b5fc49731a201496e3bc06b7.zip
remove semicolons in comments also
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js26
-rw-r--r--blocks/eda-frontend/src/components/SchematicEditor/Helper/SideBar.js2
-rw-r--r--blocks/eda-frontend/src/utils/Queue.js4
3 files changed, 16 insertions, 16 deletions
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
index 3c21fbd0..c698d61f 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js
@@ -210,7 +210,7 @@ export default function LoadGrid (container, sidebar, outline) {
style.fontSize = '9'
style.movable = '0'
style.strokeWidth = strokeWidth
- // style['rounded'] = '1';
+ // style['rounded'] = '1'
// Sets join node size
style.startSize = joinNodeSize
@@ -218,9 +218,9 @@ export default function LoadGrid (container, sidebar, outline) {
style = graph.getStylesheet().getDefaultVertexStyle()
style.gradientDirection = 'south'
- // style['gradientColor'] = '#909090';
+ // style['gradientColor'] = '#909090'
style.strokeColor = strokeColor
- // style['fillColor'] = '#e0e0e0';
+ // style['fillColor'] = '#e0e0e0'
style.fillColor = 'none'
style.fontColor = fontColor
style.fontStyle = '1'
@@ -302,7 +302,7 @@ export default function LoadGrid (container, sidebar, outline) {
}) */
mxEvent.disableContextMenu(container)
- };
+ }
// Computes the position of edge to edge connection points.
mxGraphView.prototype.updateFixedTerminalPoint = function (edge, terminal, source, constraint) {
@@ -540,7 +540,7 @@ export default function LoadGrid (container, sidebar, outline) {
return style
}
- function ResistorShape () { };
+ function ResistorShape () { }
ResistorShape.prototype = new mxCylinder()
ResistorShape.prototype.constructor = ResistorShape
@@ -600,19 +600,19 @@ export default function LoadGrid (container, sidebar, outline) {
// Adds the waypoints
if (hints != null && hints.length > 0) {
// FIXME: First segment not movable
- /* hint = state.view.transformControlPoint(state, hints[0]);
- mxLog.show();
+ /* hint = state.view.transformControlPoint(state, hints[0])
+ mxLog.show()
mxLog.debug(hints.length, 'hints0.y=' + hint.y, pt.y)
if (horizontal && Math.floor(hint.y) != Math.floor(pt.y))
{
- mxLog.show();
- mxLog.debug('add waypoint');
+ mxLog.show()
+ mxLog.debug('add waypoint')
- pt = new mxPoint(pt.x, hint.y);
- result.push(pt);
- pt = pt.clone();
- //horizontal = !horizontal;
+ pt = new mxPoint(pt.x, hint.y)
+ result.push(pt)
+ pt = pt.clone()
+ horizontal = !horizontal
} */
for (let i = 0; i < hints.length; i++) {
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/SideBar.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/SideBar.js
index b33d5765..768478a1 100644
--- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/SideBar.js
+++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/SideBar.js
@@ -39,7 +39,7 @@ export function AddComponent (component, imgref) {
// NOTE: For non-HTML labels the image must be displayed via the style
// rather than the label markup, so use 'image=' + image for the style.
// as follows: v1 = graph.insertVertex(parent, null, label,
- // pt.x, pt.y, 120, 120, 'image=' + image);
+ // pt.x, pt.y, 120, 120, 'image=' + image)
// ***IMP
// GET THE SIZE OF SVG FOROM METADATA AND THEN DIVIDE BOTH WIDTH AND HEIGHT BE SAME RATIO
diff --git a/blocks/eda-frontend/src/utils/Queue.js b/blocks/eda-frontend/src/utils/Queue.js
index 4ffea3d5..7f960819 100644
--- a/blocks/eda-frontend/src/utils/Queue.js
+++ b/blocks/eda-frontend/src/utils/Queue.js
@@ -1,3 +1,3 @@
/* eslint-disable */
-//code.stephenmorley.org
-export function Queue(){let a=[],b=0;this.getLength=function(){return a.length-b};this.isEmpty=function(){return 0===a.length};this.enqueue=function(b){a.push(b)};this.dequeue=function(){if(0!==a.length){const c=a[b];if(2*(++b)>=a.length){a=a.slice(b);b=0};return c}};this.peek=function(){return 0<a.length?a[b]:void 0}}; \ No newline at end of file
+// code.stephenmorley.org
+export function Queue(){let a=[],b=0;this.getLength=function(){return a.length-b};this.isEmpty=function(){return 0===a.length};this.enqueue=function(b){a.push(b)};this.dequeue=function(){if(0!==a.length){const c=a[b];if(2*(++b)>=a.length){a=a.slice(b);b=0};return c}};this.peek=function(){return 0<a.length?a[b]:void 0}} \ No newline at end of file