From 2817b2b2531165da65f8ef9c42da87612c92acb3 Mon Sep 17 00:00:00 2001 From: codeSafari10 Date: Tue, 27 Aug 2024 00:33:31 +0530 Subject: [PATCH 1/2] add shape polygon point to styles Signed-off-by: codeSafari10 --- schemas/constructs/core.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/schemas/constructs/core.json b/schemas/constructs/core.json index 75ba180e17..10eb906015 100644 --- a/schemas/constructs/core.json +++ b/schemas/constructs/core.json @@ -474,6 +474,10 @@ "description": "The opacity of the area outside the viewport texture. Selector needs to be *core*", "minimum": 0, "maximum": 1 + }, + "shape-polygon-points": { + "type": "string", + "description": "The points that describe the shape of the node when shape is polygon. The points are given as a space-separated list of x, y pairs, e.g. '0 0 1 1 2 2'." } } } From 30124cfe4e912c330209ed5cbcd4ce0654419787 Mon Sep 17 00:00:00 2001 From: codeSafari10 Date: Tue, 27 Aug 2024 00:36:18 +0530 Subject: [PATCH 2/2] update description Signed-off-by: codeSafari10 --- schemas/constructs/core.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/constructs/core.json b/schemas/constructs/core.json index 10eb906015..b47e6d2312 100644 --- a/schemas/constructs/core.json +++ b/schemas/constructs/core.json @@ -477,7 +477,7 @@ }, "shape-polygon-points": { "type": "string", - "description": "The points that describe the shape of the node when shape is polygon. The points are given as a space-separated list of x, y pairs, e.g. '0 0 1 1 2 2'." + "description": "An array (or a space-separated string) of numbers ranging on [-1, 1], representing alternating x and y values (i.e. x1 y1 x2 y2, x3 y3 ...). This represents the points in the polygon for the node’s shape. The bounding box of the node is given by (-1, -1), (1, -1), (1, 1), (-1, 1). The node’s position is the origin (0, 0 )" } } }