question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify boundary in pixels

See original GitHub issue

It would be great if there was an option to specify boundary in pixels

boundary: {top: 0, bottom: 0, left: 0, right: 300px}

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
davidchasecommented, Jun 30, 2015

@desandro i think this has some interest from different people, maybe im wrong #70 in my situation some simple code:

  if (this.position.x > someVar || this.position.x < otherVar){
     this.disable();
  }

so in this case dragging on the x-axis has a stop when users drags item too far left or too far right. but gets tricky when i need to figure how to re-enable dragging once the user is back within range.

with something like an offsetLimit proposed in #70 or like proposed above there’s a boundary setup by variables rather than a dom element such as the parent container

hopefully this makes sense, let me know.

0reactions
desandrocommented, Mar 11, 2015

Closing this issue as it didn’t get enough public interest. Alas! 👻

Read more comments on GitHub >

github_iconTop Results From Across the Web

Efficient way to handle boundary pixels when implementing ...
The most pythonic and efficient way to do handle boundary conditions during image processing would be to use an existing library.
Read more >
Boundary Tracing in Images - MATLAB & Simulink - MathWorks
The bwtraceboundary function returns the row and column coordinates of all the pixels on the border of an object in an image. You...
Read more >
Image Borders — oneIPL Specification documentation
When using a constant border, values for all border pixels shall be set to the constant value specified in the spec parameter of...
Read more >
Find the boundary of a shape in a pixel set in imager - Rdrr.io
Arguments ; px. pixel set ; depth. boundary depth (default 1) ; high_connexity. if FALSE, use 4-point neighbourhood. If TRUE, use 8-point. (default...
Read more >
Boundary tracing - Wikipedia
Most publications about tracing the boundary of a subset S of a digital image I describe algorithms which find a set of pixels...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found