跳到主要内容

lily

注意

This design is part of the open clothes collection

Named exports

Constructor

To create a new lily Design, import the constructur as such:

import { Lily } from '@openclothes/lily'

Then you can instantiate it by passing a settings object:

const pattern = new Lily(settings)

Design config

You can access the design configuration without instantiating a design. It is available as the designConfig property of the design constructor:

import { Lily } from '@openclothes/lily'

// Access the design config from the constructor
const dConf = Lily.designConfig

Pattern config

You can access the pattern configuration without instantiating a design. It is available as the patternConfig property of the design constructor:

import { Lily } from '@openclothes/lily'

// Access the pattern config from the constructor
const pConf = Lily.patternConfig

Metadata

You can access the design's metadata through the about named export:

import { about } from '@openclothes/lily'

I18n

You can access the design's internationalization data through the i18n named export:

import { i18n } from '@openclothes/lily'

Parts

back

The part itself

You can access this part as the back named export:

import { back } from '@openclothes/lily'

front

The part itself

You can access this part as the front named export:

import { front } from '@openclothes/lily'

waistband

The part itself

You can access this part as the waistband named export:

import { waistband } from '@openclothes/lily'