Skip to content

Commit c6f1e11

Browse files
committed
Added smith chart save to cloud
1 parent 6bbac3f commit c6f1e11

8 files changed

Lines changed: 2341 additions & 2117 deletions

File tree

filterAnalyzer/index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22
<html lang="en">
33

44
<head>
5+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css" integrity="sha384-Juol1FqnotbkyZUT5Z7gUPjQ9gzlwCENvUZTpQBAPxtusdwFLRy382PSDx5UUJ4/" crossorigin="anonymous">
6+
7+
<!-- The loading of KaTeX is deferred to speed up page rendering -->
8+
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js" integrity="sha384-97gW6UIJxnlKemYavrqDHSX3SiygeOwIZhwyOKRfSaf0JWKRVj9hLASHgFTzT+0O" crossorigin="anonymous"></script>
9+
510
<meta charset="utf-8">
611
<meta name="viewport" content="width=device-width, initial-scale=1">
712
<title>Circuit Solver</title>
813
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css" rel="stylesheet"
914
integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
1015
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
11-
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
12-
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
1316
<script src="js/algebrite.bundle-for-browser-min.js"></script>
1417

1518
<!-- <link type="text/css" rel="stylesheet" href="application.css" /> -->

filterAnalyzer/modules/View.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export class View extends draw2d.Canvas {
1313
console.log("height, width",canvasHolder.offsetHeight,wrapperWidth)
1414
super(id, wrapperWidth, canvasHolder.offsetHeight);
1515
this.rCounter = 0;
16+
this.cCounter = 0;
17+
this.lCounter = 0;
1618
this.elements = [];
1719
this.dropCb = dropCB;
1820
// this.setScrollArea("#"+id);
@@ -37,7 +39,6 @@ export class View extends draw2d.Canvas {
3739
{
3840
console.log("yolo")
3941
var type = $(droppedDomNode).data("shape");
40-
this.rCounter = this.rCounter + 1;
4142
// console.log(this.rCounter);
4243
// var figure = eval("new "+type+"();");
4344

@@ -55,13 +56,15 @@ export class View extends draw2d.Canvas {
5556
e.createPort("hybrid",inputLocator);
5657
e.createPort("hybrid",outputLocator);
5758
e.id = `R${this.rCounter}`;
59+
this.rCounter = this.rCounter + 1;
5860
} else if (type=="cap") {
5961
var e = new shapeCap({x:x, y:y});
6062
var inputLocator = new draw2d.layout.locator.InputPortLocator();
6163
var outputLocator = new draw2d.layout.locator.OutputPortLocator();
6264
e.createPort("hybrid",inputLocator);
6365
e.createPort("hybrid",outputLocator);
64-
e.id = `R${this.rCounter}`;
66+
e.id = `C${this.cCounter}`;
67+
this.cCounter = this.cCounter + 1;
6568
} else if (type=="vin") {
6669
var e = new shapeVin({x:x, y:y});
6770
var inputLocator = new draw2d.layout.locator.InputPortLocator();

0 commit comments

Comments
 (0)