Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding zig zag mixer #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added component.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/app/featureSets/featureSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ import Node from "../library/node";
import DropletGeneratorT from "../library/dropletGeneratorT";
import DropletGeneratorFlowFocus from "../library/dropletGeneratorFlowFocus";
import LogicArray from "../library/logicArray";
import NewComponent from "../library/zigzagmixer.js";

export default class FeatureSet {
constructor(definitions, tools, render2D, render3D, setString) {
Expand Down Expand Up @@ -123,7 +124,8 @@ export default class FeatureSet {
DropletGenFlow: { object: new DropletGeneratorFlowFocus(), key: null },
LogicArray: { object: new LogicArray(), key: "FLOW" },
LogicArray_control: { object: new LogicArray(), key: "CONTROL" },
LogicArray_cell: { object: new LogicArray(), key: "CELL" }
LogicArray_cell: { object: new LogicArray(), key: "CELL" },
"NewComponent": {"object": new NewComponent(), "key":"FLOW" },"NewComponent_control": {"object": new NewComponent(), "key":"CONTROL"}
};

// this.__checkDefinitions();
Expand Down
63 changes: 63 additions & 0 deletions src/app/library/zigzapmixer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import Template from "./template";
import paper from "paper";

export default class NewComponent extends Template{
constructor(){
super();
}

__setupDefinitions() {
/*
3Duf contains many versions of mixers (regular mixer, circular mixer).
However, one type of mixer missing is the SHARP ZIGZAG mixer. This feature
is included in qRT-PCR devices.
*/


this.__unique = {

};

this._heritanle = {

};

this.__defaults = {

};

this.__units = {


};

this.__minimum = {


};

this.__maximum = {


};

this.__placementTool = "Existing Tools | Custom Tool";

this.__featureParams = {
"<Drawing Code Variable Name>" : "<Parameter Name>"
};

this.__targetParams = {
"<Drawing Code Variable Name>" : "<Parameter Name>"
};

}

render2D(params, key) {

}

render2DTarget(key, params){

}
}