UNPKG

@aurigma/design-atoms-model

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

39 lines 3.29 kB
import { RectangleItem, ImageItem, PlaceholderItem, BarcodeItem, BoundedTextItem, CurvedTextItem, PathBoundedTextItem, ShapeItem, LineItem, PolylineItem, PlainTextItem, DashedLineItem, AutoScaledTextItem, GridItem, EllipseItem, GroupItem, ClipartItem, ArchedTextItem, LayoutItem, } from "../Product/Items"; /** Check that item is had RectangleItem type */ export const isRectangleItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === RectangleItem.type; /** Check that item is had ImageItem type */ export const isImageItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === ImageItem.type; /** Check that item is had PlaceholderItem type */ export const isPlaceholderItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === PlaceholderItem.type; /** Check that item is had BarcodeItem type */ export const isBarcodeItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === BarcodeItem.type; /** Check that item is had BoundedTextItem type */ export const isBoundedTextItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === BoundedTextItem.type; /** Check that item is had CurvedTextItem type */ export const isCurvedTextItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === CurvedTextItem.type; /** Check that item is had AutoScaledTextItem type */ export const isAutoScaledTextItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === AutoScaledTextItem.type; /** Check that item is had PlainTextItem type */ export const isPlainTextItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === PlainTextItem.type; /** Check that item is had PathBoundedTextItem type */ export const isPathBoundedTextItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === PathBoundedTextItem.type; /** Check that item is had ArchedTextItem type */ export const isArchedTextItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === ArchedTextItem.type; /** Check that item is had LineItem type */ export const isLineItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === LineItem.type; /** Check that item is had DashedLineItem type */ export const isDashedLineItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === DashedLineItem.type; /** Check that item is had PolylineItem type */ export const isPolylineItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === PolylineItem.type; /** Check that item is had ShapeItem type */ export const isShapeItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === ShapeItem.type; export const isGridItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === GridItem.type; /** Check that item is had EllipseItem type */ export const isEllipseItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === EllipseItem.type; /** Check that item is had GroupItem type */ export const isGroupItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === GroupItem.type; /** Check that item is had ClipartItem type */ export const isClipartItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === ClipartItem.type; /** Check that item is had LayoutItem type */ export const isLayoutItem = (i) => (i === null || i === void 0 ? void 0 : i.type) === LayoutItem.type; //# sourceMappingURL=Items.js.map