diff --git a/esm/FederView/BaseView.js b/esm/FederView/BaseView.js index 949005b..37e247a 100644 --- a/esm/FederView/BaseView.js +++ b/esm/FederView/BaseView.js @@ -61,8 +61,9 @@ export default class BaseView { // left: `${canvas.width - 10}px`, left: '16px', top: '10px', - width: '260px', - // height: '250px', + width: '280px', + 'max-height': `${height - 20}px`, + overflow: 'auto', borderColor: whiteColor, backgroundColor: panelBackgroundColor, }; @@ -81,7 +82,6 @@ export default class BaseView { 'max-width': '180px', 'max-height': `${height - 20}px`, overflow: 'auto', - // height: '400px', borderColor: ZYellow, backgroundColor: panelBackgroundColor, }; @@ -99,11 +99,6 @@ export default class BaseView { width: '240px', display: 'flex', pointerEvents: 'none', - // height: '500px', - // borderStyle: 'dashed', - // borderColor: ZYellow, - // borderWidth: '1px', - // backgroundColor: panelBackgroundColor, }; Object.assign(hoveredPanel.style, hoveredPanelStyle); dom.appendChild(hoveredPanel); @@ -120,7 +115,6 @@ export default class BaseView { } .panel { padding: 6px 8px; - point-events: none; font-size: 12px; } .hide { diff --git a/package.json b/package.json index 31d7333..be078ec 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@zilliz/feder", "author": "ued@zilliz.com", - "version": "0.1.3", + "version": "0.1.4", "description": "visualization packages for vector space", "main": "dist/index.js", "files": [ diff --git a/test/bundle.js b/test/bundle.js index eb633f1..600e6b9 100644 --- a/test/bundle.js +++ b/test/bundle.js @@ -13658,7 +13658,9 @@ ${indentData}`); position: "absolute", left: "16px", top: "10px", - width: "260px", + width: "280px", + "max-height": `${height - 20}px`, + overflow: "auto", borderColor: whiteColor, backgroundColor: panelBackgroundColor }; @@ -13704,7 +13706,6 @@ ${indentData}`); } .panel { padding: 6px 8px; - point-events: none; font-size: 12px; } .hide {