Revert documentation (caused a bug)

This commit is contained in:
barsdeveloper
2022-03-10 21:13:55 +01:00
parent 3409edff89
commit 9861b5cc00
38 changed files with 151 additions and 326 deletions

View File

@@ -1,5 +1,6 @@
import IEntity from "./IEntity"
export default class GuidEntity extends IEntity {
static attributes = {
@@ -15,11 +16,9 @@ export default class GuidEntity extends IEntity {
values.forEach(n => {
guid += ("0".repeat(8) + n.toString(16).toUpperCase()).slice(-8)
})
return new GuidEntity({ valud: guid })
return new GuidEntity({ value: guid })
}
/** @type {String} */ value
toString() {
return this.value
}

View File

@@ -5,10 +5,9 @@ export default class IEntity {
constructor(options = {}) {
/**
*
* @param {String[]} prefix
* @param {Object} target
* @param {Object} properties
* @param {String[]} prefix
* @param {Object} target
* @param {Object} properties
*/
const defineAllAttributes = (prefix, target, properties) => {
let fullKey = prefix.concat("")
@@ -23,7 +22,7 @@ export default class IEntity {
}
/*
* The value can either be:
* - Array: can contain multiple values, its property is assigned multiple times like (X=1, X=4, X="Hello World")
* - Array: can contain multiple values, its property is assigned multiple times like (X=1, X=4, X="Hello World")
* - TypeInitialization: contains the maximum amount of information about the attribute.
* - A type: the default value will be default constructed object without arguments.
* - A proper value.

View File

@@ -16,8 +16,6 @@ export default class IntegerEntity extends IEntity {
this.value = Math.round(this.value)
}
/** @type {Number} */ value
valueOf() {
return this.value
}

View File

@@ -9,10 +9,4 @@ export default class KeyBindingEntity extends IEntity {
Key: String,
CommandName: String,
}
/** @type {Boolean} */ bCtrlDown
/** @type {Boolean} */ bAltDown
/** @type {Boolean} */ bShiftDown
/** @type {String} */ Key
/** @type {String} */ CommandName
}

View File

@@ -8,8 +8,4 @@ export default class LocalizedTextEntity extends IEntity {
key: String,
value: String
}
/** @type {String} */ namespace
/** @type {String} */ key
/** @type {String} */ value
}

View File

@@ -25,20 +25,6 @@ export default class ObjectEntity extends IEntity {
CustomProperties: [PinEntity]
}
/** @type {ObjectReferenceEntity} */ Class
/** @type {String} */ Name
/** @type {Boolean} */ bIsPureFunc
/** @type {VariableReferenceEntity} */ VariableReference
/** @type {FunctionReferenceEntity} */ FunctionReference
/** @type {FunctionReferenceEntity} */ EventReference
/** @type {ObjectReferenceEntity} */ TargetType
/** @type {IntegerEntity} */ NodePosX
/** @type {IntegerEntity} */ NodePosY
/** @type {GuidEntity} */ NodeGuid
/** @type {IntegerEntity} */ ErrorType
/** @type {String} */ ErrorMsg
/** @type {PinEntity[]} */ CustomProperties
/**
* @returns {String} The name of the node
*/

View File

@@ -6,7 +6,4 @@ export default class ObjectReferenceEntity extends IEntity {
type: String,
path: String
}
/** @type {String} */ type
/** @type {String} */ path
}

View File

@@ -2,8 +2,6 @@ import IEntity from "./IEntity"
export default class PathSymbolEntity extends IEntity {
//value
static attributes = {
value: String
}

View File

@@ -52,23 +52,6 @@ export default class PinEntity extends IEntity {
bOrphanedPin: false,
}
/** @type {GuidEntity} */ PinId
/** @type {String} */ PinName
/** @type {LocalizedTextEntity} */ PinFriendlyName
/** @type {String} */ PinToolTip
/** @type {String} */ Direction
/** @type {PinTypeObjectType} */ PinType
/** @type {PinReferenceEntity[]} */ LinkedTo
/** @type {String} */ DefaultValue
/** @type {String} */ AutogeneratedDefaultValue
/** @type {GuidEntity} */ PersistentGuid
/** @type {Boolean} */ bHidden
/** @type {Boolean} */ bNotConnectable
/** @type {Boolean} */ bDefaultValueIsReadOnly
/** @type {Boolean} */ bDefaultValueIsIgnored
/** @type {Boolean} */ bAdvancedView
/** @type {Boolean} */ bOrphanedPin
isInput() {
return !this.bHidden && this.Direction !== "EGPD_Output"
}
@@ -82,8 +65,7 @@ export default class PinEntity extends IEntity {
}
/**
*
* @param {PinReferenceEntity} pinReferenceEntity
* @param {PinReferenceEntity} pinReferenceEntity
*/
connectTo(pinReferenceEntity) {
/** @type {PinReferenceEntity[]} */

View File

@@ -8,7 +8,4 @@ export default class PinReferenceEntity extends IEntity {
objectName: PathSymbolEntity,
pinGuid: GuidEntity
}
/** @type {PathSymbolEntity} */ objectName
/** @type {GuidEntity} */ pinGuid
}

View File

@@ -11,8 +11,8 @@ export default class TypeInitialization {
}
/**
* @param {typeof Object} type
* @param {boolean} showDefault
* @param {typeof Object} type
* @param {boolean} showDefault
* @param {*} value
*/
constructor(type, showDefault = true, value = undefined) {

View File

@@ -8,8 +8,4 @@ export default class VariableReferenceEntity extends IEntity {
MemberGuid: GuidEntity,
bSelfContext: false
}
/** @type {String} */ MemberName
/** @type {GuidEntity} */ MemberGuid
/** @type {Boolean} */ bSelfContext
}