@kubric/editable-entity-processors
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @kubric/editable-entity-processors

Weekly Downloads

4

Version

1.2.2

License

none

Unpacked Size

26.6 kB

Total Files

8

Last publish

Collaborators

  • kubedev