1.2.2 • Published 2 months ago

@kubric/editable-entity-processors v1.2.2

Weekly downloads
-
License
-
Repository
github
Last release
2 months ago

@kubric/editable-entity-processors

Table of Contents

Installation

Ensure you have Node.js 10 or later installed. Then run the following:

# via npm
npm install @kubric/editable-entity-processors

# or yarn
yarn add @kubric/editable-entity-processors

Usage

import parameterProcessor, {ENTITY} from '@kubric/editable-entity-processors';

const definedParams = {
  // custom params
}

const {parameters, features} = parameterProcessor(definedParams, {
  [ENTITY.PRODUCT_IMAGE_ENTITY]: 'https://some.url',
  [ENTITY.IMAGE_HEIGHT_ENTITY]: 100,
  [ENTITY.IMAGE_WIDTH_ENTITY]: 100,
  [ENTITY.QUALITY_ENTITY]: 'preview',
  [ENTITY.ISLANDSCAPE_ENTITY]: 1,
});

References

https://kubric.slite.com/api/s/note/E68noyDw4HREMQpR9pWpAM/Sticker-shot-config

Build

npm run build will build the library

Tests

npm test will run the tests and print the results

1.2.2

2 months ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago