text editor with position done
This commit is contained in:
@@ -137,6 +137,10 @@ web2d.Element = new Class({
|
||||
return this._peer.getPosition();
|
||||
},
|
||||
|
||||
getNativePosition: function() {
|
||||
return this._peer.getNativePosition();
|
||||
},
|
||||
|
||||
/*
|
||||
* Defines the element stroke properties.
|
||||
* width: stroke width
|
||||
|
@@ -76,6 +76,10 @@ web2d.peer.svg.TextPeer = new Class({
|
||||
return this._position;
|
||||
},
|
||||
|
||||
getNativePosition: function() {
|
||||
return $(this._native).position();
|
||||
},
|
||||
|
||||
setFont: function (font, size, style, weight) {
|
||||
if ($defined(font)) {
|
||||
this._font = new web2d.Font(font, this);
|
||||
|
Reference in New Issue
Block a user