Comments (4)
why did you open a new issue?!
the rect has already an unique id.
from draw2d.
Because you are closing the ones that are in my opinion not solved jet.
the rect has already an unique id.
How can I use this id?
I want to assing a data from a database to the rects.
I want to create a pattern with drag and drop, assign data to every rect and connection in this pattern, save this pattern and reload it again.
is this possible with draw2d?
from draw2d.
You can add comments even on closed issues
your code has a syntax error
init: function (attr, setter, getter) {
this._super(extend({
bgColor: this.DEFAULT_COLOR,
color: this.DEFAULT_COLOR.darker(),
width: 50,
height: 50,
id="thisIsMyID"
}, attr), setter, getter)
this.createPort("output")
this.installEditPolicy(new draw2d.policy.figure.RectangleSelectionFeedbackPolicy())
},
id="..." is wrong - use :
you can use figure.setUserData(....) as well. please read the API docu for details.
what did you mean with pattern?
from draw2d.
I used it with : id:"thisIsMyID", made a mistake when tried to reproduce it.
Thank for the tip with the figure.setUserData(....), must have missed it. Am kinda edgy today...
sry for that
I think my problem is, that I can't see the id with the browser, therefore I had assumed that the rect did not get the id. Tried it with alert and it worked.
from draw2d.
Related Issues (20)
- Adding build script for Windows
- Is there a way to create Nodes with gradient fill?
- extends function not set with jason reader HOT 1
- How to disable click to add vertex to a polygon HOT 6
- Using own svg as content HOT 1
- draw2d.org website shows camping electric calculator? HOT 1
- How to Use ManhattanConnectionRouter with explicit waypoints HOT 1
- npm audit report HOT 2
- Make implicit dependencies in lib/*.exec.js explicit. HOT 3
- How to develop a custom "input" shape? HOT 2
- Wrong link HOT 2
- Missing Documentation HOT 1
- where is the old documentation ? HOT 2
- Custom html shape
- Grid doesn't fill in after zooming
- Selecting multiple, move, then move one item causes crash
- Can't connect ports together from the same object
- The version of its xmldom dependency is deprecated
- Scrolling breaks draw2d
- Clicking on draw2d canvas doesn't take focus away from inputs
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 draw2d.