diff --git a/geonode_mapstore_client/client/js/components/MediaViewer/Media.jsx b/geonode_mapstore_client/client/js/components/MediaViewer/Media.jsx index b9d3008942..08018eabee 100644 --- a/geonode_mapstore_client/client/js/components/MediaViewer/Media.jsx +++ b/geonode_mapstore_client/client/js/components/MediaViewer/Media.jsx @@ -60,7 +60,7 @@ const mediaDefaultProps = { unsupported: {} }; -const Media = ({resource}) => { +const Media = ({resource, ...props}) => { const mediaTypes = getResourceTypesInfo(); const { @@ -75,6 +75,7 @@ const Media = ({resource}) => { - + }> diff --git a/geonode_mapstore_client/client/js/plugins/MediaViewer.jsx b/geonode_mapstore_client/client/js/plugins/MediaViewer.jsx index 30939c661d..3771dc73bc 100644 --- a/geonode_mapstore_client/client/js/plugins/MediaViewer.jsx +++ b/geonode_mapstore_client/client/js/plugins/MediaViewer.jsx @@ -24,12 +24,21 @@ const ConnectedMediaViewer = connect( })) )(MediaViewerComponent); +/** +* @module plugins/MediaViewer +*/ -function MediaViewer() { +/** + * Plugin for Media Viewer + * @name MediaViewer + * @prop {string} cfg.gltf.environmentFiles path to an hdr environment file for the 3d scene (format gltf) + * @prop {string} cfg.pcd.environmentFiles path to an hdr environment file for the 3d scene (format pcd) + */ +function MediaViewer(props) { return (
- +
); } diff --git a/geonode_mapstore_client/client/js/plugins/Save.jsx b/geonode_mapstore_client/client/js/plugins/Save.jsx index 18baa9cce3..72aadaefe4 100644 --- a/geonode_mapstore_client/client/js/plugins/Save.jsx +++ b/geonode_mapstore_client/client/js/plugins/Save.jsx @@ -40,25 +40,6 @@ import { getMessageById } from '@mapstore/framework/utils/LocaleUtils'; /** * Plugin for Save modal * @name Save - * @prop {object} cfg.thumbnailOptions the thumbnail is scaled based on the following configuration - * @prop {number} cfg.thumbnailOptions.width final width of thumbnail - * @prop {number} cfg.thumbnailOptions.height final height of thumbnail - * @prop {string} cfg.thumbnailOptions.type type format of thumbnail 'image/jpeg' or 'image/png' - * @prop {number} cfg.thumbnailOptions.quality image quality if type is 'image/jpeg', value between 0 and 1 - * @prop {bool} cfg.thumbnailOptions.contain if contain is true the thumbnail is contained in the width and height provided, if contain is false the image will cover the provided width and height - * @example - * { - * "name": "Save", - * "cfg": { - * "thumbnailOptions": { - * "width": 300, - * "height": 250, - * "type": "image/jpeg", - * "quality": 0.9, - * "contain": false - * } - * } - * } */ function Save(props) { return props.saving ? (