You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/Developers/Embedded3DViewer.rst
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,10 @@ To configure the 3D viewer for Kitodo.Presentation, a ``dlf-3d-viewer.yml`` file
71
71
- :field: supportedModelFormats (required)
72
72
:description: Specify single or multiple supported model formats of the viewer.
73
73
74
+
- :field: requiredParameters
75
+
:description: Specify single or multiple required parameters of the viewer. (Viewer parameters are passed in URL using the array ``viewerParam`` e.g. ``viewerParam[parameterName]=parameterValue``)
76
+
77
+
74
78
Example
75
79
^^^^^^^^^^^^^^^^^^^^^^^^^
76
80
@@ -82,6 +86,9 @@ Example
82
86
supportedModelFormats:
83
87
- glf
84
88
- ply
89
+
requiredParameter:
90
+
- foo
91
+
- bar
85
92
86
93
Placeholders
87
94
-------
@@ -106,3 +113,6 @@ Placeholders can be used within the file which is define under the ``base`` key
106
113
- :field: modelResource
107
114
:description: Resource part of the ``modelUrl`` with the filename to be loaded from the endpoint. For example, if your resource is hosted at "https://example.com/my-model.glb", the value would be "my-model.glb".
108
115
116
+
- :field: viewerParam.``parameterName``
117
+
:description: Value of URL parameter ``viewerParam[parameterName]`` (Please define the parameter as requiredParameter in ``dlf-3d-viewer.yml`` file)
0 commit comments