v0.10.0
This commit is contained in:
@@ -8,6 +8,7 @@ from .nodes.display_any import DisplayAny
|
||||
from .nodes.abc_math import AbcMath
|
||||
from .nodes.image_size_extractor import ImageSizeExtractor
|
||||
from .nodes.tencent_translater import TencentTranslater
|
||||
from .nodes.text import Text
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"Custom_Save_Image": CustomSaveImage,
|
||||
@@ -18,6 +19,7 @@ NODE_CLASS_MAPPINGS = {
|
||||
"Abc_Math": AbcMath,
|
||||
"Image_Size_Extractor": ImageSizeExtractor,
|
||||
"Tencent_Translater": TencentTranslater,
|
||||
"Text": Text,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
@@ -29,6 +31,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"Abc_Math": "abc Math",
|
||||
"Image_Size_Extractor": "Image Size Extractor",
|
||||
"Tencent_Translater": "Tencent Translater",
|
||||
"Text": "Text",
|
||||
}
|
||||
|
||||
WEB_DIRECTORY = "web"
|
||||
@@ -0,0 +1,25 @@
|
||||
class Text:
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"text": ("STRING", {
|
||||
"multiline": True,
|
||||
#"default": "text",
|
||||
"dynamicPrompts": False,
|
||||
}),
|
||||
},
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("*",)
|
||||
RETURN_NAMES = ("*",)
|
||||
FUNCTION = "process_text"
|
||||
CATEGORY = "KayTool"
|
||||
#OUTPUT_NODE = True
|
||||
|
||||
def process_text(self, text):
|
||||
|
||||
return (text,)
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "kaytool"
|
||||
description ="This is a custom node toolkit that includes a variety of practical nodes, such as a custom prompt preset node, wireless transmission nodes, Tencent and Baidu AI translator nodes, mathematical operation nodes, image size extraction nodes, display-any nodes, color adjustment nodes, and custom image saving nodes, among others."
|
||||
version = "0.9.3"
|
||||
version = "0.10.0"
|
||||
license = {file = "LICENSE"}
|
||||
|
||||
[project.urls]
|
||||
|
||||
+2
-1
@@ -22,7 +22,8 @@ const NODE_COLORS = {
|
||||
"Color_Adjustment": "pale_blue",
|
||||
"Custom_Save_Image": "black",
|
||||
"Abc_Math": "cyan",
|
||||
"Image_Size_Extractor": "pale_blue"
|
||||
"Image_Size_Extractor": "pale_blue",
|
||||
"Text": "pale_blue"
|
||||
};
|
||||
|
||||
function setNodeColors(node, theme) {
|
||||
|
||||
Reference in New Issue
Block a user