Comments (10)
@ugurdogrusoz The mouse cursor for that is set in the node-resize extension, through the ocanvas library. I tried to use a custom image, but this library doesn't seem to have support for that. Only for the defaults cursors. I emailed the developer to ask him. If nothing is done on this library's part, I think it may be overly difficult to do that.
from newt.
@ugurdogrusoz @royludo Setting a custom image in PNG format works (I could not get an SVG image to work). @royludo try: canvas.mouse.cursor("url('http://image.flaticon.com/icons/png/128/70/70358.png')");
Edit: It probably depends on the version of SVG. A working SVG example: https://gist.github.com/jhermsmeier/4565167
from newt.
@kinimesi ha, I should have thought about that. I'll find some nice png image, I don't even know why we went for svg. Thanks.
from newt.
@royludo SVG images are scalable, that is why we prefer them.
I think that is a good one: http://www.flaticon.com/free-icon/cancel_97603
In order to make SVG files work we need to add width and height values into it.
from newt.
Let's please decrease the size of this icon by 1/4 or 1/3 to be compatible with other grapple icons.
from newt.
I think grapples for resize are even smaller on Mac, you might want to make disable icon even smaller
from newt.
OK I checked with Windows as well. The situation is (using Chrome on both):
- inactive cursor is smaller than others on Windows
- inactive cursor is larger than others on Mac
So I don't know what to suggest. How come different cursors are used on Windows and Mac?
from newt.
There is no way to get current cursor size and set disabled grapple icon size accordingly. I set it to 15x15, which looks reasonable on Windows and Mac. See 66ee87d
from newt.
Should we fill inside of current icon? It is transparent right now.
from newt.
yes let's make it non-transparent.
i think what we have is fine regarding icon dimensions.
from newt.
Related Issues (20)
- Tests fail
- To-do for local database integration
- SBML samples in Newt
- SBML help
- Bump Newt version to 4.0.0
- Error on saving imported sbml file HOT 2
- Prepare a legend for SBML HOT 7
- SBML annotations
- SBML import
- Reactome integration
- Removing submaps/compartments is not possible HOT 2
- Validate Map feature does not work in daily build. HOT 1
- Citations HOT 1
- Release a hotfix
- Test Newt 4 and prepare release notes HOT 2
- Merge SBML branch to unstable HOT 1
- state variables glyphs are not loaded properly from SBGN-ML when their state sub-element is prefixed
- conversion of SBGN -> SBML not working HOT 1
- Newt 4 issues HOT 6
- Invalid query error HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from newt.