修改合并工程显示问题
This commit is contained in:
@ -121,6 +121,19 @@ export const useTreeNode = () => {
|
||||
// render: () => {},
|
||||
allowChildren: true,
|
||||
},
|
||||
folder: {
|
||||
rightMenus: [
|
||||
'addDirectory',
|
||||
'addResource',
|
||||
'pictureLocation',
|
||||
'importPanorama',
|
||||
'edit',
|
||||
'del'
|
||||
],
|
||||
// detailFun: get_detail_null,
|
||||
// render: () => {},
|
||||
allowChildren: true,
|
||||
},
|
||||
tileset: {
|
||||
rightMenus: [
|
||||
'edit',
|
||||
@ -440,7 +453,7 @@ export const useTreeNode = () => {
|
||||
const cusNodeIcon = async (node) => {
|
||||
let availablePort = await ipcRenderer.invoke('get-available-port');
|
||||
let type
|
||||
if(node.sourcePath || node.sourceType === 'vector') {
|
||||
if (node.sourcePath || node.sourceType === 'vector') {
|
||||
let path = node.sourcePath ? node.sourcePath : JSON.parse(node.params).path
|
||||
// 获取最后一个点的位置
|
||||
const lastDotIndex = path.lastIndexOf('.');
|
||||
@ -468,12 +481,12 @@ export const useTreeNode = () => {
|
||||
name = "lineDrawing";
|
||||
|
||||
let strokeWidth = 0.1
|
||||
if(type === 'ellipse') {
|
||||
if (type === 'ellipse') {
|
||||
strokeWidth = 1.5;
|
||||
}
|
||||
|
||||
// return (type === 'directory' || type === 'FeatureCollection') ? undefined : `http://localhost:${availablePort}/icon/${name}.png`;
|
||||
return (type === 'directory' || type === 'FeatureCollection') ? undefined : `
|
||||
return (type === 'directory' || type === 'FeatureCollection' || type === 'folder') ? undefined : `
|
||||
<svg class="svg-icon" style="color: rgba(var(--color-base2), 1);margin-top: 1px;width:100%;height:100%;fill: currentColor !important;stroke: currentColor !important;stroke-width: ${strokeWidth} !important;shape-rendering: geometricPrecision;">
|
||||
<use xlink:href="#icon-${name}" />
|
||||
</svg>
|
||||
@ -537,7 +550,7 @@ export const useTreeNode = () => {
|
||||
allNodes = allNodes.concat(treeObj.transformToArray(node))
|
||||
})
|
||||
allNodes.forEach((node: any) => {
|
||||
if(node.sourceType !== 'FeatureCollection' && node.sourceType !== 'Feature') {
|
||||
if (node.sourceType !== 'FeatureCollection' && node.sourceType !== 'Feature') {
|
||||
_idSet.add(node.id)
|
||||
}
|
||||
treeObj.removeNode(node)
|
||||
|
||||
Reference in New Issue
Block a user