diff --git a/yfiles/index.d.ts b/yfiles/index.d.ts index dafc4e8e2a..ed861941bb 100644 --- a/yfiles/index.d.ts +++ b/yfiles/index.d.ts @@ -15,7 +15,7 @@ ***************************************************************************/ declare namespace yfiles{ - namespace lang{ + namespace lang{ interface ClassConstructor { new ():T; } @@ -154,15 +154,15 @@ declare namespace system{ * var MyList = yfiles.lang.Class('MyList', { * $extends: my.AbstractList, * $with: [my.Iterable, my.Collection], - * + * * constructor: function() { // the constructor function * }, - * + * * add: function(obj) { ... }, * size: { // transformed into a property * 'get': function() { return ...; } * }, - * + * * $static: { * create: function() { ... } * } @@ -172,7 +172,7 @@ declare namespace system{ * list.add("hello"); * list.size === 1; // true * - * + * *

* The constructor property can be either a function (in case of a single constructor) or an object that is transformed * into named constructors. @@ -193,7 +193,7 @@ declare namespace system{ * myrect = new Rect.FromPoint({x: 10, y: 10}, 50, 50); * myrect instanceof Rect; // true * - * + * *

* Named constructors can call other constructors and can be written like any other constructor, i.e. this will be a new * instance of the class that is being constructed. @@ -207,7 +207,7 @@ declare namespace system{ *

      * Rect.$super.toString.call(this);
      * 
- * + * *

* If you do not specify the parent class of a new class, then {@link yfiles.lang.Object_Interface} will be used as its base type. The parent * class of {@link yfiles.lang.Object_Interface} is the standard JavaScript Object.prototype. @@ -281,13 +281,13 @@ declare namespace system{ * //yfiles.lang.Class.injectInterfaces(myHitTestable, [yfiles.drawing.IHitTestable.$class, yfiles.support.ILookup.$class]); * //As well as using a variable number of arguments, such as: * //yfiles.lang.Class.injectInterfaces(myHitTestable, yfiles.drawing.IHitTestable, yfiles.support.ILookup); - * + * * //This is true now: * yfiles.drawing.IHitTestable.isInstance(myHitTestable); * //And the object can be used where an interface instance is expected: * graphEditorInputMode.clickInputMode.validClickHitTestable = myHitTestable; * - * + * *

* It is also possible to modify an object prototype, e.g. in TypeScript: Class definition: *

@@ -298,7 +298,7 @@ declare namespace system{ * } * } * - * + * *

* Usage: *

@@ -313,7 +313,7 @@ declare namespace system{ * //And the object can be used where an interface instance is expected: * graphEditorInputMode.clickInputMode.validClickHitTestable = myHitTestable; * - * + * * @param {Object} obj The object to modify. * @param {...Object} traits Array or variable number of {@link yfiles.lang.Trait}s, {@link yfiles.lang.Class} objects of traits or fully qualified string names of * traits. @@ -431,7 +431,7 @@ declare namespace system{ /** * This methods creates an instance of the struct in which all of its values are set to their default values without using * any of its constructors. - * @returns {Object} + * @returns {Object} * @static */ static createDefault():Object; @@ -469,7 +469,7 @@ declare namespace system{ * }); * if(state === RequestState.FAILED) { ... } * - * + * * @class yfiles.lang.Enum */ export interface Enum extends Object{} @@ -635,7 +635,7 @@ declare namespace system{ * var attr = yfiles.lang.Attribute.getCustomAttribute(MyClass.$class, MyAttribute.$class); * console.log(attr.message + ' ' + attr.recipient); // 'hello world' * - * + * *

* Even though MyAttribute is invoked at the definition of MyClass, no attribute is created until the reflection API is * used (in the above example: using getCustomAttribute). @@ -849,7 +849,7 @@ declare namespace system{ /** * Compares this object to the given object of the same type. * @param {Object} obj The object to compare this to. - * @returns {number} + * @returns {number} *