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

Guide tool #424

Draft
wants to merge 25 commits into
base: webpack-build
Choose a base branch
from
Draft

Guide tool #424

wants to merge 25 commits into from

Conversation

zyrrron
Copy link
Collaborator

@zyrrron zyrrron commented Oct 15, 2021

No description provided.

MurrayLF and others added 20 commits October 8, 2021 14:52
…ixes (CIDARLAB#402)

* Root commit

* Object naming fix, viewManagerDelegate instances

* paperLayers handling fix

* Menu fixes/additions

Co-authored-by: Liam Murray <[email protected]>
Co-authored-by: Liam Murray <[email protected]>
Co-authored-by: Liam Murray <[email protected]>
Co-authored-by: Liam Murray <[email protected]>
This commit fixes the style issues introduced in eef85e7 according to the output
from standardjs and prettier.

Details: https://deepsource.io/gh/CIDARLAB/3DuF/transform/fafe459c-d2c2-4997-9138-a80a3172f322/

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Created new visualizer for guide tool

Moved all old guide code generating errors into the old folder under guide
@@ -62,6 +62,7 @@
"vue-select": "^3.13.0",
"vuetify": "^2.5.8",
"vuex": "^3.6.2",
"webpack-build": "^1.0.1",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why this got added to the dependencies, please revert this back to whats in webpack-build branch.

@@ -6,7 +6,7 @@

<script>
import Visualiser from "./components/Visualiser.vue";
import LayoutSidebar from "./views/layouts/SplitLayout.vue";
import LayoutSidebar from "./views/layouts/GuideToolLayout.vue";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to create a router and make sure your app is navigable.

  • Add vue router
  • Add button on the design page

Comment on lines +394 to 400
let newlayers = [];
newlayers[0] = new Layer({ z_offset: 0, flip: false }, this.currentDevice.generateNewName("LayerFlow"), LogicalLayerType.FLOW, groupNum.toString());
newlayers[1] = new Layer({ z_offset: 0, flip: false }, this.currentDevice.generateNewName("LayerControl"), LogicalLayerType.CONTROL, groupNum.toString());
newlayers[2] = new Layer({ z_offset: 0, flip: false }, this.currentDevice.generateNewName("LayerIntegration"), LogicalLayerType.INTEGRATION, groupNum.toString());
// Add model layers to current device
//Add model layers to current device
Registry.currentDevice.createNewLayerBlock(newlayers);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can revert these changes, there's no use for them

@@ -7,29 +7,42 @@
</template>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can revert all the changes in this file too

Comment on lines +7 to 8
<v-text-field v-model="componentName" label="Name" type="input" />
<v-btn x-small depressed @click="cancelRename">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can revert these changes too

@@ -4,7 +4,7 @@
<thead v-show="showRename">
<v-col>
<v-row align-start>
<v-text-field v-model="connectionName" label="Name" type="input"> </v-text-field>
<v-text-field v-model="connectionName" label="Name" type="input" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can revert this

protected _ComponentInfo: Component;

// state: 0 means false, 1 means true, 2 means no state now
protected _State: number;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change into Enum : TRUE, FALSE, DONT_CARE

Comment on lines +7 to +9
protected _StateList: Array<ComponentState>;
protected _ModeId: number;
protected _ModeDescription: string;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to camelCase : _StateList -> _stateList

this._ModeId = value;
}
// return Mode ID from current Device state
get ModeId() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convert all setters and getters into camelCase

}

// add a constraint list into _StateListAll
addElement(NewELement: DeviceState) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argument name should be newState that would be easier to read.

Also do JSDoc standard formatting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants