@shijiu/jsview-vue 2.1.435 → 2.1.448-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/jsview-vue.mjs
CHANGED
|
@@ -2615,8 +2615,8 @@ class ConditionPackBuilder {
|
|
|
2615
2615
|
* OnNexusEvent
|
|
2616
2616
|
* 响应 actRef 关联的 action 所发出的内部状态信息
|
|
2617
2617
|
*
|
|
2618
|
-
* @param {NexusNode} nexusRecv
|
|
2619
|
-
* @param {number} detailEventType
|
|
2618
|
+
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,被fireNexusEvent调用
|
|
2619
|
+
* @param {number} detailEventType 监听的事件类型, 类比与分机号,和fireNexusEvent发出的id约定, 自定义内容要求1000以上
|
|
2620
2620
|
*/
|
|
2621
2621
|
onNexusEvent(nexusRecv, detailEventType) {
|
|
2622
2622
|
if (!this._CheckCommonInfo()) {
|
|
@@ -3148,6 +3148,8 @@ class StatePackBuilder {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
/*
|
|
3150
3150
|
* fireNexusEvent 发出Nexus event
|
|
3151
|
+
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,在onNexusEvent监听
|
|
3152
|
+
* @param {number} detailEventType 监听的事件类型, 类比与分机号,和onNexusEvent约定, 自定义内容要求1000以上
|
|
3151
3153
|
*/
|
|
3152
3154
|
fireNexusEvent(nexusRecv, detailEventType) {
|
|
3153
3155
|
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.FireNexusEvent(detailEventType, nexusRecv.token));
|
|
@@ -15526,7 +15528,7 @@ class CanvasTexture extends TextureBase {
|
|
|
15526
15528
|
}
|
|
15527
15529
|
/**
|
|
15528
15530
|
* drawColor
|
|
15529
|
-
*
|
|
15531
|
+
* 将整个Canvas绘制成指定颜色
|
|
15530
15532
|
*
|
|
15531
15533
|
* @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
|
|
15532
15534
|
*/
|
|
@@ -15570,7 +15572,7 @@ class CanvasTexture extends TextureBase {
|
|
|
15570
15572
|
}
|
|
15571
15573
|
}
|
|
15572
15574
|
/**
|
|
15573
|
-
*
|
|
15575
|
+
* circlePath
|
|
15574
15576
|
* 获得CirclePath操作对象,通过 stroke 或者 fill 来完成绘制
|
|
15575
15577
|
*
|
|
15576
15578
|
* @param {Number} centerX 圆心x
|
|
@@ -15609,8 +15611,9 @@ class CanvasTexture extends TextureBase {
|
|
|
15609
15611
|
});
|
|
15610
15612
|
}
|
|
15611
15613
|
/**
|
|
15612
|
-
*
|
|
15613
|
-
*
|
|
15614
|
+
* drawLinearGradientRect
|
|
15615
|
+
* 用渐变色填充一个整个Canvas区域
|
|
15616
|
+
* TODO: 后续如果有需求填充Canvas中子区域内容时,再加一个参数来指定填充区域
|
|
15614
15617
|
*
|
|
15615
15618
|
* @param {int} fromX 绘制起点X
|
|
15616
15619
|
* @param {int} fromY 绘制起点Y
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@ class CanvasTexture extends TextureBase {
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* drawColor
|
|
41
|
-
*
|
|
41
|
+
* 将整个Canvas绘制成指定颜色
|
|
42
42
|
*
|
|
43
43
|
* @param {String} color 颜色设定,例如rgba(red:0~255, green:0~255, blue:0~255, alpla:0~1.0), 或则 #AARRGGBB
|
|
44
44
|
*/
|
|
@@ -85,7 +85,7 @@ class CanvasTexture extends TextureBase {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* circlePath
|
|
89
89
|
* 获得CirclePath操作对象,通过 stroke 或者 fill 来完成绘制
|
|
90
90
|
*
|
|
91
91
|
* @param {Number} centerX 圆心x
|
|
@@ -126,8 +126,9 @@ class CanvasTexture extends TextureBase {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
129
|
+
* drawLinearGradientRect
|
|
130
|
+
* 用渐变色填充一个整个Canvas区域
|
|
131
|
+
* TODO: 后续如果有需求填充Canvas中子区域内容时,再加一个参数来指定填充区域
|
|
131
132
|
*
|
|
132
133
|
* @param {int} fromX 绘制起点X
|
|
133
134
|
* @param {int} fromY 绘制起点Y
|
|
@@ -113,7 +113,7 @@ class ConditionPackBuilder {
|
|
|
113
113
|
this._CommonInfoValid = false;
|
|
114
114
|
let direction = 0;
|
|
115
115
|
if (xEnable) { direction |= 1; }
|
|
116
|
-
if (yEnable) { direction |= 2; }
|
|
116
|
+
if (yEnable) { direction |= 2; }
|
|
117
117
|
|
|
118
118
|
return this._BuildPack(ConditionSetBuilder.StartMove(direction, this._CommonInfo));
|
|
119
119
|
}
|
|
@@ -140,8 +140,8 @@ class ConditionPackBuilder {
|
|
|
140
140
|
* OnNexusEvent
|
|
141
141
|
* 响应 actRef 关联的 action 所发出的内部状态信息
|
|
142
142
|
*
|
|
143
|
-
* @param {NexusNode} nexusRecv
|
|
144
|
-
* @param {number} detailEventType
|
|
143
|
+
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,被fireNexusEvent调用
|
|
144
|
+
* @param {number} detailEventType 监听的事件类型, 类比与分机号,和fireNexusEvent发出的id约定, 自定义内容要求1000以上
|
|
145
145
|
*/
|
|
146
146
|
onNexusEvent(nexusRecv: NexusNode, detailEventType: number): Object | null {
|
|
147
147
|
// CommonInfo 只能使用一次,规避多次使用问题
|
|
@@ -93,6 +93,8 @@ class StatePackBuilder {
|
|
|
93
93
|
|
|
94
94
|
/*
|
|
95
95
|
* fireNexusEvent 发出Nexus event
|
|
96
|
+
* @param {NexusNode} nexusRecv 由 FreeMoveFunc.newNexus() 创建, 作为通讯句柄,类似电话号,在onNexusEvent监听
|
|
97
|
+
* @param {number} detailEventType 监听的事件类型, 类比与分机号,和onNexusEvent约定, 自定义内容要求1000以上
|
|
96
98
|
*/
|
|
97
99
|
fireNexusEvent(nexusRecv: NexusNode, detailEventType: number) {
|
|
98
100
|
return CmdPackBuilder.InitStateCmdPack(StateCmdBuilder.FireNexusEvent(detailEventType, nexusRecv.token));
|