@eva/inspector-decorator
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,14 +5,19 @@ 'use strict'; | ||
function getIDEPropsPropertyObj(target, propertyKey) { | ||
//@ts-ignore | ||
if (!target.constructor.IDEProps) { | ||
//@ts-ignore | ||
target.constructor.IDEProps = {}; | ||
} | ||
if (!target.constructor.IDEProps[propertyKey]) { | ||
target.constructor.IDEProps[propertyKey] = {}; | ||
} | ||
var propertyObj = target.constructor.IDEProps[propertyKey]; | ||
return propertyObj; | ||
} | ||
function type(type) { | ||
return function (target, propertyKey) { | ||
var prop = getIDEPropsPropertyObj(target, propertyKey); | ||
//@ts-ignore | ||
if (!target.constructor.IDEProps) { | ||
//@ts-ignore | ||
target.constructor.IDEProps = {}; | ||
} | ||
if (!target.constructor.IDEProps[propertyKey]) { | ||
target.constructor.IDEProps[propertyKey] = {}; | ||
} | ||
var prop = target.constructor.IDEProps[propertyKey]; | ||
//@ts-ignore | ||
prop.key = propertyKey; | ||
@@ -23,2 +28,11 @@ prop.type = type; | ||
function step(step) { | ||
return function (target, propertyKey) { | ||
var prop = getIDEPropsPropertyObj(target, propertyKey); | ||
//@ts-ignore | ||
prop.step = step; | ||
}; | ||
} | ||
exports.step = step; | ||
exports.type = type; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.type=function(r){return function(o,t){o.constructor.IDEProps||(o.constructor.IDEProps={}),o.constructor.IDEProps[t]||(o.constructor.IDEProps[t]={});var s=o.constructor.IDEProps[t];s.key=t,s.type=r}}; | ||
"use strict";function t(t,r){return t.constructor.IDEProps||(t.constructor.IDEProps={}),t.constructor.IDEProps[r]||(t.constructor.IDEProps[r]={}),t.constructor.IDEProps[r]}Object.defineProperty(exports,"__esModule",{value:!0}),exports.step=function(r){return function(o,e){t(o,e).step=r}},exports.type=function(r){return function(o,e){var n=t(o,e);n.key=e,n.type=r}}; |
@@ -0,13 +1,18 @@ | ||
function getIDEPropsPropertyObj(target, propertyKey) { | ||
//@ts-ignore | ||
if (!target.constructor.IDEProps) { | ||
//@ts-ignore | ||
target.constructor.IDEProps = {}; | ||
} | ||
if (!target.constructor.IDEProps[propertyKey]) { | ||
target.constructor.IDEProps[propertyKey] = {}; | ||
} | ||
var propertyObj = target.constructor.IDEProps[propertyKey]; | ||
return propertyObj; | ||
} | ||
function type(type) { | ||
return function (target, propertyKey) { | ||
var prop = getIDEPropsPropertyObj(target, propertyKey); | ||
//@ts-ignore | ||
if (!target.constructor.IDEProps) { | ||
//@ts-ignore | ||
target.constructor.IDEProps = {}; | ||
} | ||
if (!target.constructor.IDEProps[propertyKey]) { | ||
target.constructor.IDEProps[propertyKey] = {}; | ||
} | ||
var prop = target.constructor.IDEProps[propertyKey]; | ||
//@ts-ignore | ||
prop.key = propertyKey; | ||
@@ -18,2 +23,10 @@ prop.type = type; | ||
export { type }; | ||
function step(step) { | ||
return function (target, propertyKey) { | ||
var prop = getIDEPropsPropertyObj(target, propertyKey); | ||
//@ts-ignore | ||
prop.step = step; | ||
}; | ||
} | ||
export { step, type }; |
@@ -6,14 +6,19 @@ this.EVA = this.EVA || {}; | ||
function getIDEPropsPropertyObj(target, propertyKey) { | ||
//@ts-ignore | ||
if (!target.constructor.IDEProps) { | ||
//@ts-ignore | ||
target.constructor.IDEProps = {}; | ||
} | ||
if (!target.constructor.IDEProps[propertyKey]) { | ||
target.constructor.IDEProps[propertyKey] = {}; | ||
} | ||
var propertyObj = target.constructor.IDEProps[propertyKey]; | ||
return propertyObj; | ||
} | ||
function type(type) { | ||
return function (target, propertyKey) { | ||
var prop = getIDEPropsPropertyObj(target, propertyKey); | ||
//@ts-ignore | ||
if (!target.constructor.IDEProps) { | ||
//@ts-ignore | ||
target.constructor.IDEProps = {}; | ||
} | ||
if (!target.constructor.IDEProps[propertyKey]) { | ||
target.constructor.IDEProps[propertyKey] = {}; | ||
} | ||
var prop = target.constructor.IDEProps[propertyKey]; | ||
//@ts-ignore | ||
prop.key = propertyKey; | ||
@@ -24,2 +29,11 @@ prop.type = type; | ||
function step(step) { | ||
return function (target, propertyKey) { | ||
var prop = getIDEPropsPropertyObj(target, propertyKey); | ||
//@ts-ignore | ||
prop.step = step; | ||
}; | ||
} | ||
exports.step = step; | ||
exports.type = type; | ||
@@ -26,0 +40,0 @@ |
@@ -1,1 +0,1 @@ | ||
this.EVA=this.EVA||{},this.EVA.inspector=this.EVA.inspector||{},this.EVA.inspector.decorator=function(t){"use strict";return t.type=function(t){return function(r,o){r.constructor.IDEProps||(r.constructor.IDEProps={}),r.constructor.IDEProps[o]||(r.constructor.IDEProps[o]={});var s=r.constructor.IDEProps[o];s.key=o,s.type=t}},Object.defineProperty(t,"__esModule",{value:!0}),t}({}); | ||
this.EVA=this.EVA||{},this.EVA.inspector=this.EVA.inspector||{},this.EVA.inspector.decorator=function(t){"use strict";function r(t,r){return t.constructor.IDEProps||(t.constructor.IDEProps={}),t.constructor.IDEProps[r]||(t.constructor.IDEProps[r]={}),t.constructor.IDEProps[r]}return t.step=function(t){return function(o,n){r(o,n).step=t}},t.type=function(t){return function(o,n){var s=r(o,n);s.key=n,s.type=t}},Object.defineProperty(t,"__esModule",{value:!0}),t}({}); |
{ | ||
"name": "@eva/inspector-decorator", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"scripts": { | ||
@@ -25,2 +25,3 @@ "dev": "rollup -c rollup.config.dev.js -w", | ||
"@rollup/plugin-node-resolve": "^11.2.0", | ||
"@types/jest": "^26.0.24", | ||
"@types/pixi.js": "^4.8.9", | ||
@@ -65,5 +66,3 @@ "@typescript-eslint/eslint-plugin": "^1.13.0", | ||
"node": ">=14.14.0" | ||
}, | ||
"dependencies": { | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
384042
8246
42
14