update drag target color

This commit is contained in:
codetypes committed 2024-08-01 19:55:45 +08:00
1 parent bc0f385fd9
commit db4a44a9f8
2 files changed
+37 -12

No files matched your search

+12 -12
View File
@@ -40,20 +40,20 @@ G6.registerNode(
}, },
dragRight: { dragRight: {
"drag-right": { "drag-right": {
fillOpacity: 1, fillOpacity: 0.8,
strokeOpacity: 1, strokeOpacity: 0.8,
}, },
}, },
dragUp: { dragUp: {
"drag-up": { "drag-up": {
fillOpacity: 1, fillOpacity: 0.8,
strokeOpacity: 1, strokeOpacity: 0.8,
}, },
}, },
dragDown: { dragDown: {
"drag-down": { "drag-down": {
fillOpacity: 1, fillOpacity: 0.8,
strokeOpacity: 1, strokeOpacity: 0.8,
}, },
}, },
}, },
@@ -383,9 +383,9 @@ G6.registerNode(
width: w, width: w,
height: h / 2, height: h / 2,
lineWidth: 2, lineWidth: 2,
stroke: "#1668dc", stroke: "#ff0000",
strokeOpacity: 0, strokeOpacity: 0,
fill: "#1668dc", fill: "#ff0000",
fillOpacity: 0, fillOpacity: 0,
radius: [r, r, 0, 0], radius: [r, r, 0, 0],
}, },
@@ -400,9 +400,9 @@ G6.registerNode(
width: w, width: w,
height: h / 2, height: h / 2,
lineWidth: 2, lineWidth: 2,
stroke: "#1668dc", stroke: "#ff0000",
strokeOpacity: 0, strokeOpacity: 0,
fill: "#1668dc", fill: "#ff0000",
fillOpacity: 0, fillOpacity: 0,
radius: [0, 0, r, r], radius: [0, 0, r, r],
}, },
@@ -417,9 +417,9 @@ G6.registerNode(
width: w / 2, width: w / 2,
height: h, height: h,
lineWidth: 2, lineWidth: 2,
stroke: "#1668dc", stroke: "#ff0000",
strokeOpacity: 0, strokeOpacity: 0,
fill: "#1668dc", fill: "#ff0000",
fillOpacity: 0, fillOpacity: 0,
radius: [0, r, r, 0], radius: [0, r, r, 0],
}, },
+25
View File
@@ -17,6 +17,21 @@ export const zhNodeDef = () => {
desc: "始终返回成功", desc: "始终返回成功",
doc: "+ 只能有一个子节点,多个仅执行第一个\n+ 不管子节点是否成功都返回 `success`\n", doc: "+ 只能有一个子节点,多个仅执行第一个\n+ 不管子节点是否成功都返回 `success`\n",
}, },
{
name: "Assert",
type: "Decorator",
children: 1,
status: ["success"],
desc: "断言",
args: [
{
name: "message",
type: "string",
desc: "消息",
},
],
doc: "+ 只能有一个子节点,多个仅执行第一个\n+ 当子节点返回 `failure` 时,抛出异常\n+ 其余情况返回子节点的执行状态\n",
},
{ {
name: "Assign", name: "Assign",
type: "Action", type: "Action",
@@ -37,6 +52,11 @@ export const zhNodeDef = () => {
desc: "常量value", desc: "常量value",
oneof: "输入value", oneof: "输入value",
}, },
{
name: "underscore",
type: "boolean?",
desc: "允许下划线",
},
], ],
doc: "+ 对输入对象设置 `key` 和 `value`\n+ 输入参数1必须为对象,否则返回 `failure`\n+ 如果 `key` 为 `undefined`, 也返回 `failure`\n+ 如果 `value` 为 `undefined` 或 `null`, 则删除 `key` 的值\n", doc: "+ 对输入对象设置 `key` 和 `value`\n+ 输入参数1必须为对象,否则返回 `failure`\n+ 如果 `key` 为 `undefined`, 也返回 `failure`\n+ 如果 `value` 为 `undefined` 或 `null`, 则删除 `key` 的值\n",
}, },
@@ -221,6 +241,10 @@ export const zhNodeDef = () => {
name: "行为树执行失败后", name: "行为树执行失败后",
value: "afterRunTreeFailure", value: "afterRunTreeFailure",
}, },
{
name: "行为树被清理",
value: "treeCleaned",
},
{ {
name: "testOff", name: "testOff",
value: "testOff", value: "testOff",
@@ -240,6 +264,7 @@ export const zhNodeDef = () => {
children: 0, children: 0,
status: ["success"], status: ["success"],
desc: "打印日志", desc: "打印日志",
input: ["日志?"],
args: [ args: [
{ {
name: "message", name: "message",