Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
YM4-13
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
YM4-13
Commits
43228064
Commit
43228064
authored
Oct 10, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
07320d5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
audio-recorder.component.scss
src/app/common/audio-recorder/audio-recorder.component.scss
+4
-0
custom-hot-zone.component.ts
src/app/common/custom-hot-zone/custom-hot-zone.component.ts
+5
-3
play.component.ts
src/app/play/play.component.ts
+2
-2
No files found.
src/app/common/audio-recorder/audio-recorder.component.scss
View file @
43228064
...
...
@@ -105,4 +105,8 @@
.d-flex
{
display
:
flex
;
}
.anticon
{
vertical-align
:
0
;
}
\ No newline at end of file
src/app/common/custom-hot-zone/custom-hot-zone.component.ts
View file @
43228064
...
...
@@ -35,8 +35,10 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
@
Input
()
fontName
:
string
=
"
FuturaBT-Medium
"
;
@
Input
()
fontColor
:
string
=
"
#000
"
;
@
Input
()
customBackground
:
boolean
=
true
;
@
Input
()
enableResize
:
boolean
=
true
;
@
Output
()
save
=
new
EventEmitter
();
@
ViewChild
(
'
canvas
'
)
canvas
:
ElementRef
;
@
ViewChild
(
'
wrap
'
)
wrap
:
ElementRef
;
@
HostListener
(
'
window:resize
'
,
[
'
$event
'
])
...
...
@@ -325,17 +327,17 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy {
if
(
item
)
{
if
(
this
.
checkClickTarget
(
item
))
{
if
(
item
.
lineDashFlag
&&
this
.
checkClickTarget
(
item
.
arrow
))
{
if
(
item
.
type
==
"
Text
"
){
if
(
!
this
.
enableResize
){
return
}
this
.
changeItemSize
(
item
);
}
else
if
(
item
.
lineDashFlag
&&
this
.
checkClickTarget
(
item
.
arrowTop
))
{
if
(
item
.
type
==
"
Text
"
){
if
(
!
this
.
enableResize
){
return
}
this
.
changeItemTopSize
(
item
);
}
else
if
(
item
.
lineDashFlag
&&
this
.
checkClickTarget
(
item
.
arrowRight
))
{
if
(
item
.
type
==
"
Text
"
){
if
(
!
this
.
enableResize
){
return
}
this
.
changeItemRightSize
(
item
);
...
...
src/app/play/play.component.ts
View file @
43228064
...
...
@@ -334,7 +334,7 @@ export class PlayComponent implements OnInit, OnDestroy {
y
:
(
65
*
this
.
g_mapScale
)
/
2
}
})
element
.
ref
.
x
=
this
.
g_partTitle_x
-
20
*
this
.
g_mapScale
+
(
57
*
this
.
g_mapScale
)
/
2
;
element
.
ref
.
x
=
this
.
g_partTitle_x
-
12
*
this
.
g_mapScale
+
(
57
*
this
.
g_mapScale
)
/
2
;
let
text
=
this
.
g_cartoon
.
createLabel
(
this
.
g_formData
.
title
.
NO
,
"
BerlinSansFBDemi-Bold
"
,
"
#FFFFFF
"
,
48
)
element
.
ref
.
addChild
(
text
)
...
...
@@ -803,7 +803,7 @@ export class PlayComponent implements OnInit, OnDestroy {
}
})
let
number_text
=
this
.
g_cartoon
.
createCartoonElementLabelFunc
(
`question-index-
${
side
}
-
${
index
}
`
,
index
+
""
,
"
TCB___
"
,
"
#FFF
"
,
36
,
(
w
,
h
)
=>
{
let
number_text
=
this
.
g_cartoon
.
createCartoonElementLabelFunc
(
`question-index-
${
side
}
-
${
index
}
`
,
(
index
+
1
)
+
""
,
"
TCB___
"
,
"
#FFF
"
,
36
,
(
w
,
h
)
=>
{
return
{
x
:
0
,
y
:
2
...
...
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