Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wangjin-front-end
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
张媛
wangjin-front-end
Commits
444aea85
Commit
444aea85
authored
Jul 06, 2021
by
张媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
canvas组件添加
parent
b62a3705
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
PolygonSystemCom.tsx
src/canvasCom/polygonSystemCom/PolygonSystemCom.tsx
+4
-1
polygonSystem.stories.tsx
src/canvasStories/polygonSystem.stories.tsx
+2
-0
No files found.
src/canvasCom/polygonSystemCom/PolygonSystemCom.tsx
View file @
444aea85
...
...
@@ -18,6 +18,8 @@ interface TestProps {
labels
:
Array
<
string
>
;
/**坐标系统样式*/
style
:
any
;
/**坐标值 */
value
:
string
;
}
export
const
PolygonSystemCom
=
(
args
:
TestProps
)
=>
{
createStage
();
...
...
@@ -34,7 +36,8 @@ export const PolygonSystemCom = (args:TestProps)=>{
);
stage
.
removeAllChildren
();
stage
.
addChild
(
polygonAxiosSystem
);
polygonAxiosSystem
.
updateData
(
50
+
","
+
50
+
","
+
50
);
console
.
log
(
args
.
value
)
polygonAxiosSystem
.
updateData
(
args
.
value
);
})
return
(
<
div
></
div
>
...
...
src/canvasStories/polygonSystem.stories.tsx
View file @
444aea85
...
...
@@ -31,6 +31,7 @@ Primary.args = {
unitLength
:
30
,
//坐标系统的单位长度,一个刻度多长。
rotateDeg
:
90
,
labels
:[
"haha"
,
"heihei"
],
value
:
"70,100,90"
,
style
:{
gridStyle
:
{
color
:
0xb46e42
,
...
...
@@ -44,6 +45,7 @@ Primary.args = {
color
:
"#7c3c23"
,
size
:
24
,
},
}
};
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