@logicflow/vue-node-registry
Advanced tools
Comparing version 1.0.1 to 1.0.2
# @logicflow/vue-node-registry | ||
## 1.0.2 | ||
### Patch Changes | ||
- Release New Version,移除多余 console | ||
- Updated dependencies | ||
- @logicflow/core@2.0.2 | ||
## 1.0.1 | ||
@@ -4,0 +13,0 @@ |
@@ -28,3 +28,3 @@ var __extends = (this && this.__extends) || (function () { | ||
import { HtmlNodeModel } from '@logicflow/core'; | ||
import { cloneDeep } from 'lodash-es'; | ||
import { cloneDeep, isNil } from 'lodash-es'; | ||
var VueNodeModel = /** @class */ (function (_super) { | ||
@@ -36,11 +36,11 @@ __extends(VueNodeModel, _super); | ||
VueNodeModel.prototype.setAttributes = function () { | ||
console.log('this.properties', this.properties); | ||
// DONE: 解决 width、height、radius 为 0 时的问题 | ||
var _a = this.properties, width = _a.width, height = _a.height, radius = _a.radius; | ||
if (width) { | ||
if (!isNil(width)) { | ||
this.width = width; | ||
} | ||
if (height) { | ||
if (!isNil(height)) { | ||
this.height = height; | ||
} | ||
if (radius) { | ||
if (!isNil(radius)) { | ||
this.radius = radius; | ||
@@ -50,3 +50,2 @@ } | ||
VueNodeModel.prototype.getTextStyle = function () { | ||
// const { x, y, width, height } = this | ||
var _a = this.properties, _b = _a.refX, refX = _b === void 0 ? 0 : _b, _c = _a.refY, refY = _c === void 0 ? 0 : _c, textStyle = _a.textStyle; | ||
@@ -53,0 +52,0 @@ var style = _super.prototype.getTextStyle.call(this); |
@@ -38,11 +38,11 @@ "use strict"; | ||
VueNodeModel.prototype.setAttributes = function () { | ||
console.log('this.properties', this.properties); | ||
// DONE: 解决 width、height、radius 为 0 时的问题 | ||
var _a = this.properties, width = _a.width, height = _a.height, radius = _a.radius; | ||
if (width) { | ||
if (!(0, lodash_es_1.isNil)(width)) { | ||
this.width = width; | ||
} | ||
if (height) { | ||
if (!(0, lodash_es_1.isNil)(height)) { | ||
this.height = height; | ||
} | ||
if (radius) { | ||
if (!(0, lodash_es_1.isNil)(radius)) { | ||
this.radius = radius; | ||
@@ -52,3 +52,2 @@ } | ||
VueNodeModel.prototype.getTextStyle = function () { | ||
// const { x, y, width, height } = this | ||
var _a = this.properties, _b = _a.refX, refX = _b === void 0 ? 0 : _b, _c = _a.refY, refY = _c === void 0 ? 0 : _c, textStyle = _a.textStyle; | ||
@@ -55,0 +54,0 @@ var style = _super.prototype.getTextStyle.call(this); |
{ | ||
"name": "@logicflow/vue-node-registry", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "LogicFlow Vue Component Node Registry", | ||
@@ -23,3 +23,3 @@ "main": "lib/index.js", | ||
"vue": "^2.0.0 || >=3.0.0", | ||
"@logicflow/core": "2.0.1" | ||
"@logicflow/core": "2.0.2" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependenciesMeta": { | ||
"vue": "^3.0.0", | ||
"@logicflow/core": "2.0.1" | ||
"@logicflow/core": "2.0.2" | ||
}, | ||
@@ -36,0 +36,0 @@ "author": { |
import LogicFlow, { HtmlNodeModel } from '@logicflow/core' | ||
import { cloneDeep } from 'lodash-es' | ||
import { cloneDeep, isNil } from 'lodash-es' | ||
@@ -21,11 +21,11 @@ export type CustomProperties = { | ||
setAttributes() { | ||
console.log('this.properties', this.properties) | ||
// DONE: 解决 width、height、radius 为 0 时的问题 | ||
const { width, height, radius } = this.properties as CustomProperties | ||
if (width) { | ||
if (!isNil(width)) { | ||
this.width = width | ||
} | ||
if (height) { | ||
if (!isNil(height)) { | ||
this.height = height | ||
} | ||
if (radius) { | ||
if (!isNil(radius)) { | ||
this.radius = radius | ||
@@ -36,3 +36,2 @@ } | ||
getTextStyle(): LogicFlow.TextNodeTheme { | ||
// const { x, y, width, height } = this | ||
const { | ||
@@ -39,0 +38,0 @@ refX = 0, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
215775
44
881