Skip to content

Conversation

EricXie-02
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Sep 27, 2023

Deploy Preview for wonderful-blackwell-a043b5 failed.

Name Link
🔨 Latest commit 43322d4
🔍 Latest deploy log https://app.netlify.com/projects/wonderful-blackwell-a043b5/deploys/68c442e5c5a4f70007c057ca

"url": "http://localhost:8080",
"url": "http://localhost:8081",
"webRoot": "${workspaceFolder}/src",
"tmpDir": "/home/ericx/Desktop/FirefoxTemp",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use relative path directories to ensure that paths don't get broken

"cSpell.words": ["registryref"],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did you change this ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a duplicate file ?

@@ -1,3 +1,11 @@
(function() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

What are you using this for ?

Comment on lines +204 to +205
"x-span": bounds.width,
"y-span": bounds.height,
Copy link
Collaborator

Choose a reason for hiding this comment

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

An you verify whether _xspan and _yspan are not retrieving the right values. If thats the case please create getters for those two properties to return the width and height of the bounds

Comment on lines +338 to +340
console.log(render);
console.log(featureid);
console.log(render.bounds);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unnecessary logging, please remove


/**
* Gets the mirrorByX of the component
* @returns {Number} Returns the degree of rotation
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it returning degrees of rotation ?

addComponent(component: Component): void {
if (component instanceof Component) {
this.__components.push(component);
console.log("component",component)
Copy link
Collaborator

Choose a reason for hiding this comment

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

unnecessary loggin

deriveRenderName(): string {
if (!ComponentAPI.library[this.type]) {
console.error("Type unrecognized, defaulting to template.");
this._type = "Template";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any particular reason for removing this ? I'm more curious than anything else

Copy link
Collaborator

Choose a reason for hiding this comment

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

What are you using this for ?

Comment on lines +43 to +45
//Commented out due to additional parameter added to method
// const render = ComponentPortRenderer2D.renderComponentPort(componentport, [0,0], 0, 0, 0, zfactor);
// componentportrenders.push(render);
Copy link
Collaborator

Choose a reason for hiding this comment

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

So we are not rendering the component ports now ?

Copy link
Collaborator

@rkrishnasanka rkrishnasanka left a comment

Choose a reason for hiding this comment

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

Looks good overall, however some small modifications need to change. Especially if x and y span properties are not returning the right values, we need to make sure that they working correctly (since this is being used in more places other than export).

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.

2 participants