跳到主要内容

@openclothes/collection

open clothes's collection package bundles all open clothes designs 以及 information about those designs.

It is published on NPM as @openclothes/collection .
The source code for this package is available in our monorepo on Codeberg under packages/collection .

注意

This package does not provide a default export.

Installation

npm install --save @openclothes/collection

Named Exports

about

Holds on object where the key is the design name and the value is an object holding a bunch of information about a Design.

import { about } from '@openclothes/collection'

collection

Holds an array of design names that are included in the package.

import { collection } from '@openclothes/collection'

designs

An object holding all of our designs. The key is the design name, and the value the design instance.

import { designs } from '@openclothes/collection'

designers

An array holding the various designers, which we use to filter designs based on the data in the about export.

import { developers } from '@openclothes/collection'

developers

An array holding the various developers, which we use to filter designs based on the data in the about export.

import { developers } from '@openclothes/collection'

i18n

An object holding English translations for all designs in our collection.

import { i18n } from '@openclothes/collection'

measurements

Holds an object where the key is the design name and the value is an array of all the consolidated measurements for that design. By consolidated, we mean the required measurements, plus the optional measurments.

import { measurements } from '@openclothes/collection'

optional量体参数

Holds an object where the key is the design name and the value is an array of all the optional measurements for that design.

import { optional量体参数 } from '@openclothes/collection'

required量体参数

Holds an object where the key is the design name and the value is an array of all the required measurements for that design.

import { required量体参数 } from '@openclothes/collection'

tags

An array holding the various tags, which we use to filter designs based on the data in the about export.

import { tags } from '@openclothes/collection'

techniques

An array holding the various techniques, which we use to filter designs based on the data in the about export.

import { techniques } from '@openclothes/collection'