@gyldendal/kobber-scene
Advanced tools
Comparing version 0.3.2 to 0.3.3
{ | ||
"name": "@gyldendal/kobber-scene", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"license": "MIT", | ||
@@ -34,4 +34,4 @@ "type": "module", | ||
"type": "git", | ||
"url": "https://github.com/GyldendalDigital/kobber" | ||
"url": "https://github.com/GyldendalDigital/kobber/tree/main/packages/kobber-scene" | ||
} | ||
} |
# Kobber scene | ||
Components for rendering scene objects from CMS. | ||
Components for rendering scene objects from Gyldendal's CMS. | ||
See [Scene.stories.tsx](./src/Scene.stories.tsx) for examples. | ||
See [Scene.stories.tsx](src/Scene.stories.tsx) for examples. | ||
@@ -14,7 +14,7 @@ Can be imported as web components or react components: | ||
Enums that match data from CMS are defined in [types.ts](./src/types.ts) | ||
Enums that match data from CMS are defined in [types.ts](src/types.ts) | ||
## Calculate padding | ||
Pass CMS-data and other variables through the [`calculatePadding`](./src/calculatePadding.ts)-function and pass it to `kobber-scene-boundary` to apply css paddings. | ||
Pass CMS-data and other variables through the [`calculatePadding`](src/calculatePadding.ts)-function and pass it to `kobber-scene-boundary` to apply css paddings. | ||
@@ -47,3 +47,3 @@ ```javascript | ||
To apply the same rules, pass `scene.rows` through [groupRowsByPresentation](./src/groupRowsByPresentation.ts) and render each `rowGroup` as [in Skolestudio](https://gyldendaldigital.visualstudio.com/Skolestudio/_git/Skolestudio/?path=%2Fclient%2Fapps%2Fapp%2Fsrc%2Fcommon%2Fscene%2FScene.tsx&version=GBmaster&_a=contents). | ||
To apply the same rules, pass `scene.rows` through [groupRowsByPresentation](src/groupRowsByPresentation.ts) and render each `rowGroup` as [in Skolestudio](https://gyldendaldigital.visualstudio.com/Skolestudio/_git/Skolestudio/?path=%2Fclient%2Fapps%2Fapp%2Fsrc%2Fcommon%2Fscene%2FScene.tsx&version=GBmaster&_a=contents). | ||
@@ -50,0 +50,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32586