Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
JM-15
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
JM-15
Commits
94ba8007
Commit
94ba8007
authored
Sep 26, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 输入字体大小 表单配置项
parent
8fe25eee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
27 deletions
+13
-27
form.component.ts
src/app/form/form.component.ts
+5
-5
Unit.ts
src/app/play/Unit.ts
+1
-1
play.component.ts
src/app/play/play.component.ts
+7
-21
No files found.
src/app/form/form.component.ts
View file @
94ba8007
...
...
@@ -36,11 +36,11 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
],
label
:
'
比对
'
,
},
{
name
:
'
提交按钮
'
,
rect
:
true
,
isFixed
:
true
},
//
{
//
name: '提交按钮',
//
rect: true,
//
isFixed: true
//
},
]
...
...
src/app/play/Unit.ts
View file @
94ba8007
...
...
@@ -2232,7 +2232,7 @@ export class ScrollView extends MySprite {
}
// console.log('maxW: ', maxW);
console
.
log
(
'
maxH:
'
,
maxH
);
//
console.log('maxH: ', maxH);
// console.log('this.y: ', this.y);
// console.log(this.getBoundingBox().height);
this
.
content
.
width
=
maxW
;
...
...
src/app/play/play.component.ts
View file @
94ba8007
...
...
@@ -657,7 +657,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this
.
relink
();
this
.
gameStart
();
//
this.gameStart();
// this.initBtn();
...
...
@@ -1705,7 +1705,7 @@ export class PlayComponent implements OnInit, OnDestroy {
event
.
preventDefault
()
}
if
(
this
.
result
Panel
)
{
if
(
this
.
result
Sv
)
{
this
.
resultSv
.
onTouchMove
(
this
.
mx
,
this
.
my
);
return
;
...
...
@@ -1898,10 +1898,12 @@ export class PlayComponent implements OnInit, OnDestroy {
label
.
addMaskSpr
(
rect
);
}
inputFontSize
=
40
;
emptyRectDown
(
targetRect
)
{
if
(
!
targetRect
.
label
)
{
const
label
=
this
.
getFillLabel
();
label
.
fontSize
=
this
.
inputFontSize
;
label
.
disH
=
0
;
label
.
offW
=
0
;
label
.
textBaseline
=
'
top
'
...
...
@@ -1929,31 +1931,15 @@ export class PlayComponent implements OnInit, OnDestroy {
const
rect
=
{
x
,
y
,
width
,
height
};
const
style
=
{
'
font-size
'
:
56
/
this
.
canvasScale
*
this
.
bg
.
scaleX
+
'
px
'
,
'
font-size
'
:
this
.
inputFontSize
/
this
.
canvasScale
*
this
.
bg
.
scaleX
+
'
px
'
,
'
color
'
:
'
#000000
'
,
'
font-family
'
:
'
Aileron-Bold
'
,
'
line-height
'
:
56
/
this
.
canvasScale
*
this
.
bg
.
scaleX
+
'
px
'
,
'
line-height
'
:
this
.
inputFontSize
/
this
.
canvasScale
*
this
.
bg
.
scaleX
+
'
px
'
,
}
this
.
showInputView
(
style
,
rect
,
targetRect
.
label
.
text
||
''
,
(
value
)
=>
{
targetRect
.
label
.
text
=
value
;
})
return
;
// emptyRect.label.visible = false;
// console.log('emptyRect.label: ', emptyRect.label);
// const label = this.getFillLabel();
// label.textAlign = 'center';
// label.text = emptyRect.label.text;
// this.renderArr.push(label);
// label['targetLabel'] = emptyRect.label;
// label['fillRect'] = emptyRect.label.fillRect;
// this.curMoveItem = label;
// this.mapMove(null)
// return;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment