mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-18 18:38:05 +08:00
Remove valid types
This commit is contained in:
@@ -177,7 +177,7 @@
|
||||
}
|
||||
|
||||
function inputTooltip(value: FrontendGraphInput): string {
|
||||
return dataTypeTooltip(value) + "\n\n" + inputConnectedToText(value) + "\n\n" + validTypesText(value);
|
||||
return dataTypeTooltip(value) + "\n\n" + inputConnectedToText(value) + "\n\n";
|
||||
}
|
||||
|
||||
function outputTooltip(value: FrontendGraphOutput): string {
|
||||
@@ -188,10 +188,10 @@
|
||||
return `Data Type: ${value.resolvedType}`;
|
||||
}
|
||||
|
||||
function validTypesText(value: FrontendGraphInput): string {
|
||||
const validTypes = value.validTypes.length > 0 ? value.validTypes.map((x) => `• ${x}`).join("\n") : "None";
|
||||
return `Valid Types:\n${validTypes}`;
|
||||
}
|
||||
// function validTypesText(value: FrontendGraphInput): string {
|
||||
// const validTypes = value.validTypes.length > 0 ? value.validTypes.map((x) => `• ${x}`).join("\n") : "None";
|
||||
// return `Valid Types:\n${validTypes}`;
|
||||
// }
|
||||
|
||||
function outputConnectedToText(output: FrontendGraphOutput): string {
|
||||
if (output.connectedTo.length === 0) return "Connected to nothing";
|
||||
|
||||
@@ -195,8 +195,6 @@ export class FrontendGraphInput {
|
||||
|
||||
readonly resolvedType!: string;
|
||||
|
||||
readonly validTypes!: string[];
|
||||
|
||||
readonly connectedTo!: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user