Quote from lolo on August 18, 2025, 4:51 pmТак я могу получить путь svg
So I can go the svg way
fabGetProperty "Container7" "blobObject" "path" [returnPath]Но когда я пытаюсь изменить путь объект пропадает
But when I try to change the path the object disappears
fabSetProperty "Container7" "blobObject" "path" [blobPathData]если я рисую новый путь, то объект создается
if i draw a new path then the object is createdкак мне правильно заменить путь?
How can I replace the path correctly?
Так я могу получить путь svg
So I can go the svg way
fabGetProperty "Container7" "blobObject" "path" [returnPath]
Но когда я пытаюсь изменить путь объект пропадает
But when I try to change the path the object disappears
fabSetProperty "Container7" "blobObject" "path" [blobPathData]
если я рисую новый путь, то объект создается
if i draw a new path then the object is created
как мне правильно заменить путь?
How can I replace the path correctly?
Quote from luishp on August 21, 2025, 10:23 am@lolo (using AI):
EN
I checked the plugin docs for FabricJS in VisualNEO Web. The reference confirms:
You can create a path with
fabNewPath "containerId" "name" "path" x y "fill"
(e.g.'M 0 0 L 200 100 L 170 200 z'
).You can read a property with
fabGetProperty "containerId" "name" "property" [result]
. (And, by symmetry with the docs and your snippet,fabSetProperty
is the way to set properties.).Why your object might “disappear” after setting
"path"
:
The new
[blobPathData]
isn’t a valid SVG path string (must start withM
, coordinates numeric, commands spaced), so Fabric fails to render it.The geometry changes and the object ends up off-canvas (e.g., negative coordinates or huge path).
After changing the path, Fabric’s bounds/controls need updating.
Try this sequence:
Validate and set the path
fabSetProperty "Container7" "blobObject" "path" "[blobPathData]"
Recompute position/visibility
fabCenterObject "Container7" "blobObject"
fabBringToFront "Container7" "blobObject"
If your path lacks a close command, try adding
Z
/z
(for closed shape) and test again.Ensure the path is a string, not JSON of points or URL-encoded.
To help you precisely, please share a minimal example:
The exact
returnPath
you get fromfabGetProperty … "path" [returnPath]
.The exact
[blobPathData]
you set.The 3–4 lines you run in order.
With that, I can spot whether it’s a formatting issue or you need to recenter after the change. (Docs: commandsfabNewPath
,fabGetProperty
.)
RU
Я посмотрел документацию плагина FabricJS для VisualNEO Web. Там указано, что:
Создавать путь можно командой
fabNewPath "containerId" "name" "path" x y "fill"
(пример:'M 0 0 L 200 100 L 170 200 z'
).Считать свойство —
fabGetProperty "containerId" "name" "property" [result]
. (И по аналогии, для записи используетсяfabSetProperty
.)Почему объект «пропадает» после смены
"path"
:
Новая строка
[blobPathData]
— невалидный SVG-путь (не начинается сM
, неверные числа/пробелы), и Fabric его не рисует.Геометрия изменилась, и объект ушёл за пределы холста (отрицательные координаты, очень большие значения).
После смены пути нужно обновить позиционирование/границы.
Попробуйте так:
Валидируйте и примените путь
fabSetProperty "Container7" "blobObject" "path" "[blobPathData]"
Обновите положение/видимость
fabCenterObject "Container7" "blobObject"
fabBringToFront "Container7" "blobObject"
Если фигура должна быть замкнутой — добавьте
Z
/z
в конце.Убедитесь, что путь — это строка, а не массив точек/URL-код.
Чтобы я точно подсказал решение, пришлите минимальный пример:
Точное значение
returnPath
, полученное черезfabGetProperty … "path" [returnPath]
.Точное значение
[blobPathData]
, которое вы устанавливаете.3–4 строки команд по порядку.
Тогда я выявлю: формат ли это строки, или нужно просто перерасположить объект. (Документация:fabNewPath
,fabGetProperty
.)
@lolo (using AI):
EN
I checked the plugin docs for FabricJS in VisualNEO Web. The reference confirms:
You can create a path with fabNewPath "containerId" "name" "path" x y "fill"
(e.g. 'M 0 0 L 200 100 L 170 200 z'
).
You can read a property with fabGetProperty "containerId" "name" "property" [result]
. (And, by symmetry with the docs and your snippet, fabSetProperty
is the way to set properties.).
Why your object might “disappear” after setting "path"
:
The new [blobPathData]
isn’t a valid SVG path string (must start with M
, coordinates numeric, commands spaced), so Fabric fails to render it.
The geometry changes and the object ends up off-canvas (e.g., negative coordinates or huge path).
After changing the path, Fabric’s bounds/controls need updating.
Try this sequence:
Validate and set the path
fabSetProperty "Container7" "blobObject" "path" "[blobPathData]"
Recompute position/visibility
fabCenterObject "Container7" "blobObject"
fabBringToFront "Container7" "blobObject"
If your path lacks a close command, try adding Z
/z
(for closed shape) and test again.
Ensure the path is a string, not JSON of points or URL-encoded.
To help you precisely, please share a minimal example:
The exact returnPath
you get from fabGetProperty … "path" [returnPath]
.
The exact [blobPathData]
you set.
The 3–4 lines you run in order.
With that, I can spot whether it’s a formatting issue or you need to recenter after the change. (Docs: commands fabNewPath
, fabGetProperty
.)
RU
Я посмотрел документацию плагина FabricJS для VisualNEO Web. Там указано, что:
Создавать путь можно командой fabNewPath "containerId" "name" "path" x y "fill"
(пример: 'M 0 0 L 200 100 L 170 200 z'
).
Считать свойство — fabGetProperty "containerId" "name" "property" [result]
. (И по аналогии, для записи используется fabSetProperty
.)
Почему объект «пропадает» после смены "path"
:
Новая строка [blobPathData]
— невалидный SVG-путь (не начинается с M
, неверные числа/пробелы), и Fabric его не рисует.
Геометрия изменилась, и объект ушёл за пределы холста (отрицательные координаты, очень большие значения).
После смены пути нужно обновить позиционирование/границы.
Попробуйте так:
Валидируйте и примените путь
fabSetProperty "Container7" "blobObject" "path" "[blobPathData]"
Обновите положение/видимость
fabCenterObject "Container7" "blobObject"
fabBringToFront "Container7" "blobObject"
Если фигура должна быть замкнутой — добавьте Z
/z
в конце.
Убедитесь, что путь — это строка, а не массив точек/URL-код.
Чтобы я точно подсказал решение, пришлите минимальный пример:
Точное значение returnPath
, полученное через fabGetProperty … "path" [returnPath]
.
Точное значение [blobPathData]
, которое вы устанавливаете.
3–4 строки команд по порядку.
Тогда я выявлю: формат ли это строки, или нужно просто перерасположить объект. (Документация: fabNewPath
, fabGetProperty
.)
Quote from lolo on August 22, 2025, 9:52 pm@luishp
Я пытаюсь создать генератор blob
Похоже есть только один вариант, удалять и создавать новый объектI'm trying to create a blob generator
It seems there is only one option, delete and create a new object
Я пытаюсь создать генератор blob
Похоже есть только один вариант, удалять и создавать новый объект
I'm trying to create a blob generator
It seems there is only one option, delete and create a new object
Quote from lolo on August 23, 2025, 10:43 amЯ сделал путем удаления и создания нового объекта, в принципе все нормально
I did it by deleting and creating a new object, in principle everything is fine
Я сделал путем удаления и создания нового объекта, в принципе все нормально
I did it by deleting and creating a new object, in principle everything is fine