From 205ef9aad8bf78e9f8b1953052239cee80a681e3 Mon Sep 17 00:00:00 2001 From: Raykosan <71210053+Raykosan@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:48:05 +0300 Subject: [PATCH] Adding a new RS Text Overlay Pro node --- Rayko_Text_Overlay_Pro.py | 15 +++++++++++++++ web/rs_overlay_pro.js | 6 ------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Rayko_Text_Overlay_Pro.py b/Rayko_Text_Overlay_Pro.py index c023162..03f0edf 100644 --- a/Rayko_Text_Overlay_Pro.py +++ b/Rayko_Text_Overlay_Pro.py @@ -1,3 +1,18 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2025-2026 Raykosan (RaykoStudio) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from scipy import ndimage import os import torch diff --git a/web/rs_overlay_pro.js b/web/rs_overlay_pro.js index b941175..38754ec 100644 --- a/web/rs_overlay_pro.js +++ b/web/rs_overlay_pro.js @@ -7,7 +7,6 @@ const HEAVY_PARAMS = ['text', 'font_name', 'outline_thickness', 'effect_mode', ' const GLOW_PARAMS = ['enable_glow', 'glow_color', 'glow_size', 'glow_spread', 'glow_opacity']; const SHADOW_PARAMS = ['enable_shadow', 'shadow_color', 'shadow_offset_x', 'shadow_offset_y', 'shadow_opacity', 'shadow_blur']; -// Дефолтные значения для эффектов const DEFAULT_EFFECTS = { outline: { outline_thickness: 0, @@ -623,7 +622,6 @@ app.registerExtension({ this.sidePanel.appendChild(textContent); - // OUTLINE секция (без чекбокса, включается через thickness) const outlineHeader = document.createElement('div'); outlineHeader.style.cssText = 'display:flex;align-items:center;gap:8px;padding:8px 0;cursor:pointer;user-select:none;'; const outlineChevron = document.createElement('span'); @@ -652,7 +650,6 @@ app.registerExtension({ outlineContent.appendChild(div()); this.sidePanel.appendChild(outlineContent); - // GLOW секция (с чекбоксом) const glowHeader = document.createElement('div'); glowHeader.style.cssText = 'display:flex;align-items:center;gap:8px;padding:8px 0;cursor:pointer;user-select:none;'; const glowChevron = document.createElement('span'); @@ -676,7 +673,6 @@ app.registerExtension({ this.textParams.enable_glow = enabled; if (!enabled) { - // Сброс в дефолт this.textParams.glow_color = DEFAULT_EFFECTS.glow.glow_color; this.textParams.glow_size = DEFAULT_EFFECTS.glow.glow_size; this.textParams.glow_spread = DEFAULT_EFFECTS.glow.glow_spread; @@ -709,7 +705,6 @@ app.registerExtension({ glowContent.appendChild(div()); this.sidePanel.appendChild(glowContent); - // SHADOW секция (с чекбоксом) const shadowHeader = document.createElement('div'); shadowHeader.style.cssText = 'display:flex;align-items:center;gap:8px;padding:8px 0;cursor:pointer;user-select:none;'; const shadowChevron = document.createElement('span'); @@ -733,7 +728,6 @@ app.registerExtension({ this.textParams.enable_shadow = enabled; if (!enabled) { - // Сброс в дефолт this.textParams.shadow_color = DEFAULT_EFFECTS.shadow.shadow_color; this.textParams.shadow_offset_x = DEFAULT_EFFECTS.shadow.shadow_offset_x; this.textParams.shadow_offset_y = DEFAULT_EFFECTS.shadow.shadow_offset_y;