( frame: FileFormat.Rect, path: Pick<FileFormat.ShapePath, 'isClosed' | 'points'>, resizingConstraint?: ResizeConstraints, )
| 110 | }; |
| 111 | |
| 112 | export const makeShapePath = ( |
| 113 | frame: FileFormat.Rect, |
| 114 | path: Pick<FileFormat.ShapePath, 'isClosed' | 'points'>, |
| 115 | resizingConstraint?: ResizeConstraints, |
| 116 | ): FileFormat.ShapePath => ({ |
| 117 | _class: 'shapePath', |
| 118 | frame, |
| 119 | do_objectID: generateID(), |
| 120 | isFlippedHorizontal: false, |
| 121 | isFlippedVertical: false, |
| 122 | isLocked: false, |
| 123 | isVisible: true, |
| 124 | layerListExpandedType: FileFormat.LayerListExpanded.Undecided, |
| 125 | name: 'Path', |
| 126 | nameIsFixed: false, |
| 127 | resizingConstraint: makeResizeConstraint(resizingConstraint), |
| 128 | resizingType: FileFormat.ResizeType.Stretch, |
| 129 | rotation: 0, |
| 130 | shouldBreakMaskChain: false, |
| 131 | booleanOperation: FileFormat.BooleanOperation.NA, |
| 132 | edited: false, |
| 133 | ...path, |
| 134 | isFixedToViewport: false, |
| 135 | pointRadiusBehaviour: FileFormat.PointsRadiusBehaviour.Rounded, |
| 136 | exportOptions: { |
| 137 | _class: 'exportOptions', |
| 138 | exportFormats: [], |
| 139 | includedLayerIds: [], |
| 140 | layerOptions: 0, |
| 141 | shouldTrim: false, |
| 142 | }, |
| 143 | }); |
| 144 | |
| 145 | export const makeRectShapeLayer = ( |
| 146 | x: number, |
no test coverage detected