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

working on initialize and linking groupdefs #820

Merged
merged 10 commits into from
Jul 31, 2019

Conversation

jberg
Copy link
Collaborator

@jberg jberg commented Jul 24, 2019

No description provided.

@jberg jberg changed the title move images to initialize [WIP] create maki objects in initialize Jul 30, 2019
Copy link
Owner

@captbaritone captbaritone left a comment

Choose a reason for hiding this comment

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

So exciting to see this coming along.

If you want, I'm happy to merge this (or whatever you have locally) in whatever state you want. We can always iterate.


function uuid () {
return '_' + Math.random().toString(36).substr(2, 9);
}
Copy link
Owner

Choose a reason for hiding this comment

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

This could probably just be:

let id = 0;
function getId() {
  return id++;
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

haha, had intended on coming back to that with something less hacky ..... but yea, really no reason I can just increment! haha

retArr.push(arr[i]);
}
return arr.map((v) => parseFloat(v));
}
Copy link
Owner

Choose a reason for hiding this comment

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

retArr is never used?

function splitValues(str) {
    return str.split(",").map(parseFloat);
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lol, nice catch. yay extra for loop hah!

})
);
}
// remove comments other trimmed nodes
resolvedChildren = resolvedChildren.filter(item => item !== undefined);
Copy link
Owner

Choose a reason for hiding this comment

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

I personally prefer to use a new variable name in cases like this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yea, me too. I was starting to feel like the naming was getting silly like now I add filteredResolvedChildren or something, but probably better than mutating things :D

@jberg jberg changed the base branch from initialize to master July 31, 2019 23:24
@jberg jberg requested a review from captbaritone July 31, 2019 23:35
@jberg jberg changed the title [WIP] create maki objects in initialize working on initialize and linking groupdefs Jul 31, 2019
@captbaritone captbaritone merged commit 0d16df9 into captbaritone:master Jul 31, 2019
captbaritone pushed a commit that referenced this pull request Nov 30, 2019
* move images to initialize

* return nodes from initialize, lookup groupdefs

* fix attributes when copying groupdefs

* position groups with x/y

* more parsers for classic modern skin

* if img doesn't exist just return the node without adding to registry

* dont need nested node

* simplify ids

* simplify splitValues

* new variable with name
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