Skip to content

Conversation

John905
Copy link
Contributor

@John905 John905 commented May 8, 2018

Update moves reference to glfx-js and webgl-distort to the html rather than trying to pull in the files directly

@John905 John905 closed this May 8, 2018
@jywarren
Copy link
Member

jywarren commented May 8, 2018

Oh, did this not work out? Thanks!

@John905
Copy link
Contributor Author

John905 commented May 8, 2018

I didn't mean to make the pull request for publiclab, I just wanted to update my repository. I still need to test.

@jywarren
Copy link
Member

jywarren commented May 8, 2018 via email

@John905
Copy link
Contributor Author

John905 commented May 8, 2018

Reopened for review

@John905 John905 reopened this May 8, 2018
Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

Awesome looking, here! Tell me what you think!

/* Run on image deseletion. */
removeHooks: function() {
removeHooks: function ()
{
Copy link
Member

Choose a reason for hiding this comment

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

This is looking really nice! Actually we kind of prefer in-line syntax for these -- function() { -- thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can fix that - I'm still in that habit from what I do with C# - I think VS might have done it for me.

q = new L.Point(
Math.cos(angle)*p.x - Math.sin(angle)*p.y,
Math.sin(angle)*p.x + Math.cos(angle)*p.y
Math.cos(angle) * p.x - Math.sin(angle) * p.y,
Copy link
Member

Choose a reason for hiding this comment

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

thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This might have been VS too.

@@ -0,0 +1,186 @@
var gl;
Copy link
Member

Choose a reason for hiding this comment

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

Oof -- are these required for the testing? I think we could push for webgl-distort to include testing rather than testing an external module. I wrote the upstream so that's on me... what do you think? I do agree it's good that it have tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

D'oh! I meant to remove these (canvas and texture) - they're left from when I was playing with bringing in the extra files.

Copy link
Member

Choose a reason for hiding this comment

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

aha do we still need to remove these? Could be almost there!

@John905
Copy link
Contributor Author

John905 commented May 10, 2018

I think this is working as required. Had 2 problems at the end - 1) the overlay corners correspond to a "Z" pattern on the image vs a clockwise pattern for warpable.nodes in map.js. 2) Chrome seems to cache scripting(?) even after an iisreset.

@John905 John905 closed this May 10, 2018
@John905 John905 reopened this May 10, 2018
@jywarren
Copy link
Member

Ooh - good call on the ordering. Is there anywhere we could/should update the documentation on that to make it more clear?

Hm, did you end up removing the tests or is something else failing? I can take a look if you like?

This is going to be awesome.

@John905
Copy link
Contributor Author

John905 commented May 10, 2018

I'll take a look at the docs - I'm not sure if there is an inconsistency in here since the warpables came from a .rb that isn't included.
I took out the two glfx scripts that aren't actually needed and put the refs in index.html - should I update the htmls with those references?

@jywarren
Copy link
Member

jywarren commented May 10, 2018 via email

@John905 John905 force-pushed the FullResOut-John905 branch from 6b0a57f to 8bd9e68 Compare May 10, 2018 21:34
@John905
Copy link
Contributor Author

John905 commented May 10, 2018

Ok, I added in the htmls with the js references. Last time I updated package.json to include glfx-js and webgl-distort as dependencies.

@jywarren
Copy link
Member

Just noticed canvas.js is still in there! Left a comment inline. 👍 almost there!

@John905
Copy link
Contributor Author

John905 commented May 10, 2018

D'oh! I removed it from my main instead of the current branch - think I have it now.

@jywarren
Copy link
Member

OK now i think just have to add the library to this list of includes for the tests to pass:

files: [
{ pattern: 'examples/*.jpg', included: false, served: true },
'node_modules/leaflet/dist/leaflet-src.js',
'node_modules/leaflet/dist/leaflet.css',
'node_modules/leaflet-toolbar/dist/leaflet.toolbar.js',
'node_modules/leaflet-toolbar/dist/leaflet.toolbar.css',
'node_modules/chai/chai.js',
'node_modules/sinon/pkg/sinon.js',
'src/util/*.js',
'src/edit/EditHandle.js',
'src/edit/LockHandle.js',
'src/edit/DistortHandle.js',
'src/edit/RotateHandle.js',
'src/DistortableImageOverlay.js',
'src/edit/DistortableImage.EditToolbar.js',
'src/edit/DistortableImage.Edit.js',
'test/SpecHelper.js',
'test/src/**/*Spec.js'
],

@jywarren
Copy link
Member

Hi, just checking if you've gotten stuck on this at all, or if I could help in any way? Thanks!

@John905
Copy link
Contributor Author

John905 commented Jun 16, 2018

Sorry, I started a new job and lost track of this - I finished it as far as I can tell, but I don't think I submitted a pull request.

jywarren added a commit to jywarren/Leaflet.DistortableImage that referenced this pull request Jun 17, 2018
@jywarren
Copy link
Member

OK - thanks! I opened a clean copy here: #100

Thank you!!!

@jywarren jywarren closed this Jun 17, 2018
jywarren added a commit to jywarren/Leaflet.DistortableImage that referenced this pull request Feb 7, 2019
jywarren added a commit that referenced this pull request Feb 8, 2019
* Fix CI

* clean copy of #97 full res output

* adjustments to changes by @John905

* mostly working

* Update DistortableImage.Edit.js

* working full-res distortion!

* moved file

* version bump

* README updates

* fixes

* build

* more docs

* Minor additional fixes

* jpg/png errors
@jywarren
Copy link
Member

jywarren commented Feb 8, 2019

@John905 we finally completed this!!! See #100 for the final solution, building on your code and with help from several other folks! We just released v0.2.0 with this feature.

jywarren added a commit that referenced this pull request Feb 18, 2019
* Fix CI

* clean copy of #97 full res output

* adjustments to changes by @John905

* mostly working

* Update DistortableImage.Edit.js

* working full-res distortion!

* moved file

* version bump

* README updates

* fixes

* build

* more docs

* Minor additional fixes

* jpg/png errors
jywarren added a commit that referenced this pull request Feb 20, 2019
* Fix CI

* clean copy of #97 full res output

* adjustments to changes by @John905

* mostly working

* Update DistortableImage.Edit.js

* working full-res distortion!

* moved file

* version bump

* README updates

* fixes

* build

* more docs

* Minor additional fixes

* jpg/png errors
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