{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/adobe-illustrator/refs/heads/main/json-schema/adobe-illustrator-scripting-path-item-schema.json", "title": "PathItem", "description": "PathItem from Adobe Illustrator API", "type": "object", "properties": { "id": { "type": "string", "description": "Unique identifier of the path item.", "example": "example_value" }, "name": { "type": "string", "description": "Name of the path item.", "example": "Example Artboard" }, "closed": { "type": "boolean", "description": "Whether the path is closed.", "example": true }, "filled": { "type": "boolean", "description": "Whether the path has a fill.", "example": true }, "fillColor": { "$ref": "#/components/schemas/Color" }, "stroked": { "type": "boolean", "description": "Whether the path has a stroke.", "example": true }, "strokeColor": { "$ref": "#/components/schemas/Color" }, "strokeWidth": { "type": "number", "description": "Stroke width in points.", "example": 72.0 }, "strokeCap": { "type": "string", "description": "Stroke cap style.", "enum": [ "ButtEndCap", "RoundEndCap", "ProjectingEndCap" ], "example": "ButtEndCap" }, "strokeJoin": { "type": "string", "description": "Stroke join style.", "enum": [ "MiterEndJoin", "RoundEndJoin", "BevelEndJoin" ], "example": "MiterEndJoin" }, "strokeDashes": { "type": "array", "description": "Dash pattern for the stroke.", "items": { "type": "number" } }, "opacity": { "type": "number", "description": "Opacity as a percentage (0-100).", "minimum": 0, "maximum": 100, "example": 72.0 }, "blendingMode": { "type": "string", "description": "Blending mode.", "example": "example_value" }, "position": { "type": "array", "description": "Position [x, y] in points.", "items": { "type": "number" }, "minItems": 2, "maxItems": 2 }, "width": { "type": "number", "description": "Width in points.", "example": 72.0 }, "height": { "type": "number", "description": "Height in points.", "example": 72.0 }, "pathPoints": { "type": "array", "description": "Array of path points defining the path shape.", "items": { "$ref": "#/components/schemas/PathPoint" } }, "area": { "type": "number", "description": "Area of the path in square points.", "example": 72.0 }, "length": { "type": "number", "description": "Length of the path in points.", "example": 72.0 }, "guides": { "type": "boolean", "description": "Whether this path item is a guide.", "example": true }, "clipping": { "type": "boolean", "description": "Whether this path item is a clipping path.", "example": true }, "layer": { "type": "string", "description": "Name of the containing layer.", "example": "example_value" } } }