Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0e91bf9

Browse files
author
minjk-bl
committed
Add new Frame and Info
1 parentce75b25 commit0e91bf9

File tree

19 files changed

+987
-522
lines changed

19 files changed

+987
-522
lines changed

‎visualpython/css/m_apps/frame.css‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@
246246
.vp-inner-popup-addtype {
247247
width:153px;
248248
}
249+
.vp-inner-popup-delete-value {
250+
display: inline-block;
251+
cursor: pointer;
252+
}
249253
.vp-inner-popup-delete {
250254
padding-bottom:20px;
251255
}
@@ -261,6 +265,27 @@
261265
.vp-inner-popup-apply-column {
262266
width:153px;
263267
}
268+
.vp-inner-popup-sortby {
269+
border:0.25px solidvar(--vp-border-gray-color);
270+
width:160px;
271+
padding:5px;
272+
min-height:180px;
273+
}
274+
.vp-inner-popup-sortby-item {
275+
border-bottom:0.25px solidvar(--vp-border-gray-color);
276+
padding:3px;
277+
cursor: pointer;
278+
height:30px;
279+
}
280+
.vp-inner-popup-sortby-up {
281+
float: right;
282+
display: inline-block;
283+
}
284+
.vp-inner-popup-sortby-down {
285+
float: right;
286+
display: inline-block;
287+
288+
}
264289

265290
/* UDF Editor - CodeMirror */
266291
.vp-fr-subset-box {
@@ -293,5 +318,6 @@
293318

294319
.vp-fr-subset-box .vp-ds-button {
295320
width:50px;
321+
min-width:50px;
296322
vertical-align: top;
297323
}

‎visualpython/css/m_apps/information.css‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@
8989
height:30px;
9090
font-size:13px;
9191
}
92-
.vp-information-menu.disabled {
93-
color:var(--vp-gray-color);
94-
cursor: not-allowed;
95-
}
9692
.vp-variable-preview {
9793
margin-top:5px;
9894
align-content: baseline;

‎visualpython/css/m_apps/instance.css‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
.vp-instance-left-box,
1212
.vp-instance-right-box {
1313
height:100%;
14+
align-content: baseline;
1415
}
1516
.vp-instance-base {
1617
display: grid;
@@ -115,7 +116,11 @@
115116
.vp-instance-preview-box {
116117
min-height:352px;
117118
width:100%;
118-
height:calc(100%-30px);
119+
height:400px;
120+
min-height:calc(100%-50px);
121+
}
122+
.vp-instance-preview-content {
123+
height:100%;
119124
}
120125
.vp-instance-preview-content:empty::after {
121126
content:'No preview data';

‎visualpython/css/root.css‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ select.vp-select:disabled {
125125
width:15px;
126126
height:15px;
127127
}
128+
.vp-icon-chevron-down {
129+
background: center/ contain no-repeat url(../img/chevron_big_down.svg);
130+
width:15px;
131+
height:15px;
132+
}
133+
.vp-icon-chevron-up {
134+
background: center/ contain no-repeat url(../img/chevron_big_up.svg);
135+
width:15px;
136+
height:15px;
137+
}
128138
.vp-icon-run {
129139
background: center/ contain no-repeat url(../img/snippets/run.svg);
130140
width:16px;
@@ -446,6 +456,11 @@ button.vp-button {
446456
height:30px;
447457
font-size:13px;
448458
}
459+
.vp-drop-button.disabled,
460+
.vp-dropdown-item.disabled {
461+
color:var(--vp-gray-color);
462+
cursor: not-allowed;
463+
}
449464
/* cursor */
450465
.vp-cursor {
451466
cursor: pointer;
@@ -578,6 +593,13 @@ hr.vp-extra-menu-line {
578593
align-items: baseline;
579594
align-content: space-evenly;
580595
}
596+
.vp-grid-col-100 {
597+
display: grid;
598+
grid-template-columns:100px auto;
599+
grid-row-gap:5px;
600+
align-items: baseline;
601+
align-content: space-evenly;
602+
}
581603
.vp-grid-col-110 {
582604
display: grid;
583605
grid-template-columns:110px auto;

‎visualpython/data/libraries.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2938,7 +2938,7 @@
29382938
"id" :"apps_information",
29392939
"type" :"function",
29402940
"level":1,
2941-
"name" :"Information",
2941+
"name" :"Data Info",
29422942
"tag" :"INFORMATION,APPS",
29432943
"path" :"visualpython - apps - information",
29442944
"desc" :"Data information",

‎visualpython/html/m_apps/instance.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<divclass="vp-bold">
2222
<spanclass="vp-instance-preview-title">Instance Preview</span>
2323
</div>
24-
<divclass="vp-instance-preview-box vp-grid-border-box vp-scrollbar">
25-
<divid="instancePreview"class="vp-instance-preview-content rendered_html vp-center"></div>
24+
<divclass="vp-instance-preview-box vp-grid-border-box">
25+
<divid="instancePreview"class="vp-instance-preview-content rendered_html vp-center vp-scrollbar"></div>
2626
</div>
2727
</div>
2828
</div>

‎visualpython/html/m_apps/pandasOption.html‎

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<body>
22
<divclass="vp-grid-border-box vp-pandas-option-body vp-po-option">
3-
<labelclass="vp-bold">Display</label>
3+
<div>
4+
<labelclass="vp-bold">Display</label>
5+
<labelstyle="float: right;">
6+
<inputtype="checkbox"id="resetDisplay">
7+
<spantitle="Set pandas options to default.">Set default</span>
8+
</label>
9+
</div>
410
<divclass="vp-grid-col-110">
511
<labelfor="min_rows"class="">Min rows</label>
612
<inputtype="number"id="min_rows"class="vp-po-option-item vp-input vp-state"placeholder="10 (min)">
@@ -41,15 +47,15 @@
4147
<labelfor="chop_threshold"class="">Chop threshold</label>
4248
<inputtype="number"class="vp-po-option-item vp-input vp-state"id="chop_threshold"placeholder="None">
4349
</div>
44-
<hrstyle="margin: 5px 0;">
45-
<labelclass="mt5">
46-
<inputtype="checkbox"id="resetDisplay">
47-
<spantitle="Set pandas options to default.">Set default</span>
48-
</label>
4950
</div>
50-
<hrstyle="margin: 5px 0;">
51-
<divclass="vp-grid-border-box vp-po-warning">
52-
<labelclass="vp-bold">Warnings</label>
51+
<divclass="vp-grid-border-box vp-po-warning mt5">
52+
<div>
53+
<labelclass="vp-bold">Warnings</label>
54+
<labelstyle="float: right;">
55+
<inputtype="checkbox"id="resetWarning">
56+
<spantitle="Reset warning option.">Set default</span>
57+
</label>
58+
</div>
5359
<divclass="vp-grid-col-110">
5460
<labelfor="filter_warning"class="">Filter warnings</label>
5561
<selectid="filter_warning"class="vp-po-warning-item vp-select vp-state">
@@ -62,10 +68,5 @@
6268
<optionvalue="once">Once</option>
6369
</select>
6470
</div>
65-
<hrstyle="margin: 5px 0;">
66-
<labelclass="mt5">
67-
<inputtype="checkbox"id="resetWarning">
68-
<spantitle="Reset warning option.">Set default</span>
69-
</label>
7071
</div>
7172
</body>

‎visualpython/html/m_visualize/seaborn.html‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@
223223
<divclass="vp-grid-box sb-option">
224224
<hrstyle="margin:5px;"/>
225225
<labelclass="vp-tab-group-title">Show values</label>
226+
<div>
227+
<labelclass="vp-orange-text vp-italic">NOTE:</label><labelclass="vp-gray-text vp-italic">This function needs Seaborn package upper than v0.12</label>
228+
</div>
226229
<label><inputtype="checkbox"id="showValues"class="vp-state"/><span>Show values on the top of bar</span></label>
227230
<divclass="vp-grid-col-95">
228231
<labelfor="showValuesPrecision">Decimal place</label>
Lines changed: 3 additions & 0 deletions
Loading

‎visualpython/js/board/BoardFrame.js‎

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -976,22 +976,31 @@ define([
976976
letpanelId=vpKernel.getLabPanelId();
977977
if(panelId){
978978
sessionId=panelId;
979+
if(!(sessionIdinthis._blockList)){
980+
this._blockList[sessionId]={
981+
title:'',
982+
blockList:[]
983+
}
984+
}
979985
}
980986
}
981-
varmovingBlock=this._blockList[sessionId].blockList[startIdx];
982-
if(movingBlock){
983-
letgroupBlocks=this.getGroupedBlocks(movingBlock);
984-
this._blockList[sessionId].blockList.splice(startIdx,groupBlocks.length);
985-
this._blockList[sessionId].blockList.splice(endIdx,0, ...groupBlocks);
986-
// move tag
987-
if(parentBlock!=null){
988-
// set this movingBlock as child of parentBlock
989-
movingBlock.setChildBlock(parentBlock.getChildDepth());
990-
}else{
991-
// set group block
992-
movingBlock.setGroupBlock();
987+
varblockList=this._blockList[sessionId].blockList;
988+
if(blockList){
989+
varmovingBlock=blockList[startIdx];
990+
if(movingBlock){
991+
letgroupBlocks=this.getGroupedBlocks(movingBlock);
992+
this._blockList[sessionId].blockList.splice(startIdx,groupBlocks.length);
993+
this._blockList[sessionId].blockList.splice(endIdx,0, ...groupBlocks);
994+
// move tag
995+
if(parentBlock!=null){
996+
// set this movingBlock as child of parentBlock
997+
movingBlock.setChildBlock(parentBlock.getChildDepth());
998+
}else{
999+
// set group block
1000+
movingBlock.setGroupBlock();
1001+
}
1002+
this.reloadBlockList();
9931003
}
994-
this.reloadBlockList();
9951004
}
9961005
}
9971006

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp