Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
viitto
pptist
Commits
dda84f3b
Commit
dda84f3b
authored
Jun 21, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整鼠标和导入的渐变色调整
parent
b5884533
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
17 additions
and
17 deletions
+17
-17
CustomElement.md
doc/CustomElement.md
+1
-1
text.ts
src/utils/psdParser/text.ts
+1
-1
BaseAudioElement.vue
...iews/components/element/AudioElement/BaseAudioElement.vue
+1
-1
index.vue
src/views/components/element/AudioElement/index.vue
+1
-1
index.vue
src/views/components/element/ChartElement/index.vue
+2
-2
index.vue
src/views/components/element/ImageElement/index.vue
+1
-1
index.vue
src/views/components/element/LatexElement/index.vue
+2
-2
index.vue
src/views/components/element/LineElement/index.vue
+1
-1
index.vue
src/views/components/element/ShapeElement/index.vue
+2
-2
index.vue
src/views/components/element/TableElement/index.vue
+2
-2
BaseTextElement.vue
src/views/components/element/TextElement/BaseTextElement.vue
+1
-1
index.vue
src/views/components/element/TextElement/index.vue
+2
-2
No files found.
doc/CustomElement.md
View file @
dda84f3b
...
@@ -147,7 +147,7 @@ const handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => {
...
@@ -147,7 +147,7 @@ const handleSelectElement = (e: MouseEvent | TouchEvent, canMove = true) => {
.element-content
{
.element-content
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
.drag-handler
{
.drag-handler
{
position
:
absolute
;
position
:
absolute
;
...
...
src/utils/psdParser/text.ts
View file @
dda84f3b
...
@@ -176,7 +176,7 @@ const extractRotation = (matrix:any) => {
...
@@ -176,7 +176,7 @@ const extractRotation = (matrix:any) => {
const
getGradient
=
(
obj
:
any
)
=>
{
const
getGradient
=
(
obj
:
any
)
=>
{
const
{
GrFl
}
=
obj
.
data
const
{
GrFl
}
=
obj
.
data
const
angle
=
GrFl
.
Angl
.
value
-
90
const
angle
=
GrFl
.
Angl
.
value
-
90
let
linear
=
`linear-gradient(
${
angle
}
deg `
let
linear
=
`linear-gradient(
${
-
angle
}
deg `
let
intr
=
GrFl
.
Grad
.
Intr
let
intr
=
GrFl
.
Grad
.
Intr
GrFl
.
Grad
.
Clrs
.
forEach
((
x
:
any
,
i
:
number
)
=>
{
GrFl
.
Grad
.
Clrs
.
forEach
((
x
:
any
,
i
:
number
)
=>
{
const
clrStr
=
JSON
.
stringify
(
x
[
'Clr '
]).
split
(
','
)
const
clrStr
=
JSON
.
stringify
(
x
[
'Clr '
]).
split
(
','
)
...
...
src/views/components/element/AudioElement/BaseAudioElement.vue
View file @
dda84f3b
...
@@ -53,6 +53,6 @@ const audioIconSize = computed(() => {
...
@@ -53,6 +53,6 @@ const audioIconSize = computed(() => {
align-items
:
center
;
align-items
:
center
;
}
}
.audio-icon
{
.audio-icon
{
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
</
style
>
</
style
>
src/views/components/element/AudioElement/index.vue
View file @
dda84f3b
...
@@ -113,7 +113,7 @@ const handleSelectElement = (e: MouseEvent | TouchEvent) => {
...
@@ -113,7 +113,7 @@ const handleSelectElement = (e: MouseEvent | TouchEvent) => {
align-items
:
center
;
align-items
:
center
;
}
}
.audio-icon
{
.audio-icon
{
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
.audio-player
{
.audio-player
{
position
:
absolute
;
position
:
absolute
;
...
...
src/views/components/element/ChartElement/index.vue
View file @
dda84f3b
...
@@ -74,7 +74,7 @@ const openDataEditor = () => {
...
@@ -74,7 +74,7 @@ const openDataEditor = () => {
position
:
absolute
;
position
:
absolute
;
&
.lock
.element-content
{
&
.lock
.element-content
{
cursor
:
default
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
}
}
.rotate-wrapper
{
.rotate-wrapper
{
...
@@ -85,6 +85,6 @@ const openDataEditor = () => {
...
@@ -85,6 +85,6 @@ const openDataEditor = () => {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
</
style
>
</
style
>
src/views/components/element/ImageElement/index.vue
View file @
dda84f3b
...
@@ -185,7 +185,7 @@ const handleClip = (data: ImageClipedEmitData | null) => {
...
@@ -185,7 +185,7 @@ const handleClip = (data: ImageClipedEmitData | null) => {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
.image-content
{
.image-content
{
width
:
100%
;
width
:
100%
;
...
...
src/views/components/element/LatexElement/index.vue
View file @
dda84f3b
...
@@ -69,7 +69,7 @@ const openLatexEditor = () => {
...
@@ -69,7 +69,7 @@ const openLatexEditor = () => {
position
:
absolute
;
position
:
absolute
;
&
.lock
.element-content
{
&
.lock
.element-content
{
cursor
:
default
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
}
}
.rotate-wrapper
{
.rotate-wrapper
{
...
@@ -80,7 +80,7 @@ const openLatexEditor = () => {
...
@@ -80,7 +80,7 @@ const openLatexEditor = () => {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
svg
{
svg
{
transform-origin
:
0
0
;
transform-origin
:
0
0
;
...
...
src/views/components/element/LineElement/index.vue
View file @
dda84f3b
...
@@ -128,6 +128,6 @@ const path = computed(() => {
...
@@ -128,6 +128,6 @@ const path = computed(() => {
}
}
.line-path
,
.line-point
{
.line-path
,
.line-point
{
pointer-events
:
all
;
pointer-events
:
all
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
</
style
>
</
style
>
src/views/components/element/ShapeElement/index.vue
View file @
dda84f3b
...
@@ -190,7 +190,7 @@ const startEdit = () => {
...
@@ -190,7 +190,7 @@ const startEdit = () => {
pointer-events
:
none
;
pointer-events
:
none
;
&
.lock
.element-content
{
&
.lock
.element-content
{
cursor
:
default
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
cursor
:
default
;
}
}
&
.format-painter
.element-content
{
&
.format-painter
.element-content
{
cursor
:
url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIuNzUgMTMuNzY0VjEuNDIxYS4zLjMgMCAwMS40NDgtLjI2bDEwLjkxIDYuMTk3YS4zLjMgMCAwMS0uMTE2LjU1OWwtNC4xOTYuNDQyIDIuNTgyIDQuNDcyYS4zLjMgMCAwMS0uMTEuNDFsLTMuMTg0IDEuODM4YS4zLj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mZiIvPjxwYXRoIGQ9Ik0yNC41NDMgMy45NjFzLTEuMDMgMS4yMDItMi40OTQgMS44OTFjLTEuMDA2LjQ3NC0yLjE4MS41ODUtMi43MzQuNjI3LS4yLjAxNC0uMzQ0LjIwOS0uMjc3LjM5OC4yOTMuODIgMS4xMTIgMi44MDEgMi42NTggNC4zNDcgMi4xMjYgMi4xMjYgMy42NTkgMi45NjggNC4xNDIgMy4yMDIuMS4wNDguMjE1LjAzLjI5OS0uMDQxLjM4NS0uMzI2IDEuNS0xLjI3NyAyLjIxLTEuOTg2Ljg5MS0uODkgMi4xODYtMi40NDggMi4xODYtMi40NDhtLjQ4LjA1NWEuMy4zIDAgMDEtLjQyNSAwbC02LjI2My02LjI2M2EuMy4zIDAgMDEwLS40MjRsLjY4LS42OGExLjUgMS41IDAgMDEyLjEyMiAwbDEuMzU2IDEuMzU2IDEuNjA0LTIuMDIxYTEuNjI5IDEuNjI5IDAgMTEyLjI3OSAyLjI5NkwzMC4zNCA1Ljg1MmwxLjM1MyAxLjM1M2ExLjUgMS41IDAgMDEwIDIuMTIxbC0uNjguNjh6IiBzdHJva2U9IiMzMzMiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=)
2
5
,
default
!
important
;
...
@@ -204,7 +204,7 @@ const startEdit = () => {
...
@@ -204,7 +204,7 @@ const startEdit = () => {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
svg
{
svg
{
transform-origin
:
0
0
;
transform-origin
:
0
0
;
...
...
src/views/components/element/TableElement/index.vue
View file @
dda84f3b
...
@@ -167,7 +167,7 @@ const updateSelectedCells = (cells: string[]) => {
...
@@ -167,7 +167,7 @@ const updateSelectedCells = (cells: string[]) => {
position
:
absolute
;
position
:
absolute
;
&
.lock
.element-content
{
&
.lock
.element-content
{
cursor
:
default
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
}
}
.rotate-wrapper
{
.rotate-wrapper
{
...
@@ -178,7 +178,7 @@ const updateSelectedCells = (cells: string[]) => {
...
@@ -178,7 +178,7 @@ const updateSelectedCells = (cells: string[]) => {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
.table-mask
{
.table-mask
{
@include
absolute-0
();
@include
absolute-0
();
...
...
src/views/components/element/TextElement/BaseTextElement.vue
View file @
dda84f3b
...
@@ -87,7 +87,7 @@ const { shadowStyle } = useElementShadow(shadow)
...
@@ -87,7 +87,7 @@ const { shadowStyle } = useElementShadow(shadow)
padding
:
10px
;
padding
:
10px
;
line-height
:
1
.5
;
line-height
:
1
.5
;
word-break
:
break-word
;
word-break
:
break-word
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
.text
{
.text
{
position
:
relative
;
position
:
relative
;
...
...
src/views/components/element/TextElement/index.vue
View file @
dda84f3b
...
@@ -206,7 +206,7 @@ watch(isHandleElement, () => {
...
@@ -206,7 +206,7 @@ watch(isHandleElement, () => {
position
:
absolute
;
position
:
absolute
;
&
.lock
.element-content
{
&
.lock
.element-content
{
cursor
:
default
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
}
}
}
}
.rotate-wrapper
{
.rotate-wrapper
{
...
@@ -218,7 +218,7 @@ watch(isHandleElement, () => {
...
@@ -218,7 +218,7 @@ watch(isHandleElement, () => {
padding
:
10px
;
padding
:
10px
;
line-height
:
1
.5
;
line-height
:
1
.5
;
word-break
:
break-word
;
word-break
:
break-word
;
cursor
:
move
;
cursor
:
url('https://im.oytour.com/trip/cusor/c7ca2e93ad449598be9ead2d132dd05b.svg')
,
default
;
.text
{
.text
{
position
:
relative
;
position
:
relative
;
...
...
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