forked from CITKParus/P8-Panels
WEB APP: P8PSVG - атрибут "title" в описании структуры интерактивного элемента для контроля свойств, пример с "fillOpacity"
This commit is contained in:
parent
bee69dc692
commit
c4aaff428b
@ -24,6 +24,7 @@ const STYLES = {
|
||||
//Структура элемента изображения
|
||||
const P8P_SVG_ITEM_SHAPE = PropTypes.shape({
|
||||
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
||||
title: PropTypes.any,
|
||||
backgroundColor: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)])
|
||||
});
|
||||
|
||||
|
@ -103,6 +103,7 @@ const Svg = ({ title }) => {
|
||||
onClick={handleSVGClick}
|
||||
onItemClick={handleSVGItemClick}
|
||||
canvasStyle={STYLES.SVG}
|
||||
fillOpacity={"0.4"}
|
||||
/>
|
||||
) : null}
|
||||
</Grid>
|
||||
|
Loading…
x
Reference in New Issue
Block a user