{ "name": "smartCity-building", "version": "1.0.4", "description": "smartCity-building子组件", "main": "index.js", "scripts": { "build": "cube build ./ --output=../../datavComponent --remote=pandav --smart" }, "keywords": [ "map", "subcoms" ], "dependencies": { "eventemitter3": "3.0.0", "safely-merge": "1.0.1", "lodash": "4.17.11" }, "pandav": { "cn_name": "3D建筑", "level": 1, "protocol": 2, "type": [ "smartCity-v1_subcoms_building" ], "parent": { "supportTypes": [ "smartCity-v1" ], "supportNames": [] }, "events": { "click": { "name": "鼠标点击" } }, "publicHandler": {}, "api_data": { "source": [] }, "apis": { "source": { "description": "数据接口", "handler": "render", "fields": {} } }, "config": { "options": { "type": "menu", "children": { "baseConfig": { "name": "基础配置", "type": "menuChild", "mode": "single", "children": { "system": { "name": "坐标系", "type": "radio", "default": "WGS84", "optionCol": 12, "options": [ { "label": "WGS84", "value": "WGS84" }, { "label": "GCJ02", "value": "GCJ02" } ] }, "showLevel": { "name": "可见级别", "type": "slider", "mode": "double", "default": [ 0, 20 ], "step": 0.1, "min": 0, "max": 20, "showCurrentRange": true }, "altitude": { "name": "抬升高度", "default": 0, "type": "number" } } }, "styleConfig": { "name": "样式配置", "type": "menuChild", "mode": "single", "children": { "bloom": { "name": "辉光", "type": "switch", "default": false, "statusText": true, "description": "主体组件开启辉光时才有效" }, "url": { "name": "数据", "type": "json", "default": "/PdViewAsset/user/3D城市建筑.geojson" }, "floorField": { "name": "层高字段", "default": "height", "type": "text" }, "itemHeight": { "name": "每层高度", "default": 1, "type": "number" }, "styleType": { "name": "样式类别", "type": "radio", "default": "default", "optionCol": 12, "options": [ { "label": "默认", "value": "default" }, { "label": "自定义", "value": "custom" } ] }, "styleName": { "type": "imageSelect", "name": "样式", "default": "style4", "show": [ [ "styleType", "$eq", "default" ] ], "range": [ { "name": "落日黄", "value": "style1", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/落日黄.png" }, { "name": "薄荷绿", "value": "style2", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/薄荷绿.png" }, { "name": "浅色", "value": "style3", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/浅色2.png" }, { "name": "蓝绿", "value": "style4", "url": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/蓝绿.png" } ] }, "serises": { "name": "样式配置", "type": "tabs", "show": [ [ "styleType", "$eq", "custom" ] ], "default": [ { "floorRange": { "min": 0, "max": 100 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(17, 20, 25, 0.1)" }, { "offset": 100, "color": "rgba(63, 70, 83, 0.4)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#747D8E", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "#fff" } }, { "floorRange": { "min": 100, "max": 500 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(93, 152, 217, 0.8)" }, { "offset": 100, "color": "rgba(47, 86, 113, 0.4)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#BEDFF3", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "#fff" } } ], "template": { "name": "样式<%=i+1%>", "type": "object", "children": { "floorRange": { "name": "层数范围", "type": "suite", "children": { "min": { "name": ">=", "default": 0, "col": 12, "type": "number" }, "max": { "name": "<", "default": 10, "col": 12, "type": "number" } } }, "sideConfig": { "name": "侧边", "fold": false, "type": "group", "children": { "uvType": { "name": "uv类型", "type": "radio", "default": "default", "optionCol": 12, "options": [ { "label": "默认", "value": "default" }, { "label": "实际尺寸", "value": "trueSize" } ] }, "mapTrueSize": { "show": [ [ "uvType", "$eq", "trueSize" ] ], "name": "尺寸", "default": 80, "type": "number" }, "fillType": { "name": "填充方式", "type": "radio", "default": "gradient", "optionCol": 12, "options": [ { "label": "颜色", "value": "gradient" }, { "label": "材质贴图", "value": "pattern" } ] }, "color": { "show": [ [ "fillType", "$eq", "gradient" ] ], "name": "颜色", "type": "fill", "description": "顶部颜色 -> 底部颜色,仅支持颜色,不支持角度", "components": [ "linearGradient" ], "default": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "rgba(255, 221, 0, 1)" }, { "offset": 100, "color": "rgba(255, 110, 0, 1)" } ], "angle": 0 } } }, "map": { "show": [ [ "fillType", "$eq", "pattern" ] ], "name": "材质贴图", "type": "image", "default": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "name": "顶部", "fold": false, "type": "group", "children": { "color": { "name": "颜色", "type": "color", "default": "rgba(255, 185, 0, 1)" }, "offset_s": { "name": "内凹", "default": 0, "type": "number" }, "offset_h": { "name": "沉降", "default": 0, "type": "number" } } }, "wireConfig": { "name": "线框", "type": "group", "fold": false, "enableHide": true, "children": { "show": { "default": false }, "color": { "name": "颜色", "type": "color", "default": "#FFF" } } } } } }, "defaultStyle": { "name": "默认样式", "type": "hidden", "default": { "style1": [ { "floorRange": { "min": 0, "max": 100 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(63,63,57,0)" }, { "offset": 100, "color": "RGBA(70,70,70,0.5)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "RGBA(196,202,204,0.46)", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } }, { "floorRange": { "min": 100, "max": 180 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(31,66,90,0.08)" }, { "offset": 100, "color": "RGBA(172,77,3,0.92)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#fcbf80", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } }, { "floorRange": { "min": 180, "max": 500 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(36,50,59,0.08)" }, { "offset": 100, "color": "RGBA(255,46,0,0.94)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#fc8d67", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } } ], "style2": [ { "floorRange": { "min": 0, "max": 100 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(19,44,61,0.1)" }, { "offset": 100, "color": "RGBA(38,65,76,0.53)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "RGBA(70,114,136,0.5)", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } }, { "floorRange": { "min": 100, "max": 500 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(31,66,90,0.08)" }, { "offset": 100, "color": "RGBA(109,220,255,0.92)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#c5f6ff", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } } ], "style3": [ { "floorRange": { "min": 0, "max": 100 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(58,65,70,0.1)" }, { "offset": 100, "color": "RGBA(32,56,75,0.88)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#8a979e", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } }, { "floorRange": { "min": 100, "max": 500 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(26,42,53,0.08)" }, { "offset": 100, "color": "RGBA(15,34,48,0.88)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#bedff3", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } } ], "style4": [ { "floorRange": { "min": 0, "max": 100 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(17,20,25,0.1)" }, { "offset": 100, "color": "RGBA(63,70,83,0.4)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#747d8e", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } }, { "floorRange": { "min": 100, "max": 500 }, "sideConfig": { "uvType": "default", "mapTrueSize": 80, "fillType": "gradient", "color": { "type": "linearGradient", "value": { "stops": [ { "offset": 0, "color": "RGBA(93,152,217,0.8)" }, { "offset": 100, "color": "RGBA(47,86,113,0.4)" } ], "angle": 0, "map": "/civ_pandaview_component/pandabi-component/assets/components/smartCity/建筑材质贴图.png" } } }, "topConfig": { "color": "#bedff3", "offset_s": 0, "offset_h": 0 }, "wireConfig": { "show": false, "color": "RGBA(255,255,255,0.4)" } } ] } } } } } } } } }