Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_remark
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
ww_remark
Commits
4d09c31d
Commit
4d09c31d
authored
Nov 12, 2019
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add upload-image-width-preview
parent
1f535d89
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
custom-hot-zone.component.ts
src/app/common/custom-hot-zone/custom-hot-zone.component.ts
+8
-8
20-9.png
src/assets/20-9.png
+0
-0
No files found.
src/app/common/custom-hot-zone/custom-hot-zone.component.ts
View file @
4d09c31d
...
@@ -44,7 +44,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -44,7 +44,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
@
ViewChild
(
'
canvas
'
)
canvas
:
ElementRef
;
@
ViewChild
(
'
canvas
'
)
canvas
:
ElementRef
;
@
ViewChild
(
'
wrap
'
)
wrap
:
ElementRef
;
@
ViewChild
(
'
wrap
'
)
wrap
:
ElementRef
;
@
HostListener
(
'
window:resize
'
,
[
'
$event
'
])
//
@HostListener('window:resize', ['$event'])
canvasWidth
=
1280
;
canvasWidth
=
1280
;
canvasHeight
=
720
;
canvasHeight
=
720
;
...
@@ -68,7 +68,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -68,7 +68,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
images
=
new
Map
();
images
=
new
Map
();
animationId
:
any
;
animationId
:
any
;
winResizeEventStream
=
new
Subject
();
//
winResizeEventStream = new Subject();
canvasLeft
;
canvasLeft
;
canvasTop
;
canvasTop
;
...
@@ -95,7 +95,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -95,7 +95,7 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
onResize
(
event
)
{
onResize
(
event
)
{
this
.
winResizeEventStream
.
next
();
//
this.winResizeEventStream.next();
}
}
...
@@ -655,11 +655,11 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
...
@@ -655,11 +655,11 @@ export class CustomHotZoneComponent implements OnInit, OnDestroy, OnChanges {
initListener
()
{
initListener
()
{
this
.
winResizeEventStream
//
this.winResizeEventStream
.
pipe
(
debounceTime
(
500
))
//
.pipe(debounceTime(500))
.
subscribe
(
data
=>
{
//
.subscribe(data => {
this
.
renderAfterResize
();
//
this.renderAfterResize();
});
//
});
if
(
this
.
IsPC
())
{
if
(
this
.
IsPC
())
{
...
...
src/assets/20-9.png
deleted
100644 → 0
View file @
1f535d89
12.7 KB
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