react实现svg钢笔路径编辑调整效果代码
代码语言:html
所属分类:其他
代码描述:react实现svg钢笔路径编辑调整效果代码
代码标签: react 实现 svg 钢笔 路径 编辑 调整
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,600);
:root {
--ad-Color-prim: #111;
--ad-Color-sec: #00E676;
--ad-Color-del: #E53935;
}
html {
font-size: 16px;
font-family: "Open Sans", sans-serif;
}
html,
body {
height: 100%;
}
.ad-App {
height: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
/* main layout */
.ad-Container {
height: 100%;
width: 100%;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background: #fff;
}
.ad-Container-main {
height: 100%;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.ad-Container-svg {
height: 100%;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
background: #f3f3f3;
}
.ad-Container-controls {
overflow: hidden;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
height: 100%;
width: 20rem;
background: #111;
background: var(--ad-Color-prim);
}
.ad-Container-controls ::-webkit-scrollbar {
width: 6px;
}
.ad-Container-controls ::-webkit-scrollbar-thumb {
border-radius: 30px;
background: rgba(255, 255, 255, .3);
}
.ad-Foot {
padding: 1.5rem 2rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background: #fff;
border-top: 2px solid #eee;
}
.ad-Foot-list {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.ad-Foot-item {
text-transform: uppercase;
font-size: .7rem;
color: #111;
color: var(--ad-Color-prim);
}
.ad-Foot-item + .ad-Foot-item {
margin-top: .5rem;
}
.ad-Foot-highlight {
padding-bottom: .04rem;
border-bottom: 2px solid #00E676;
border-bottom: 2px solid var(--ad-Color-sec);
font-weight: bold;
}
.ad-Foot-meta {
margin-left: 2rem;
text-align: right;
line-height: 1.4;
font-size: .7rem;
color: #111;
color: var(--ad-Color-prim);
}
.ad-Foot-meta a {
text-decoration: underline;
color: #111;
color: var(--ad-Color-prim);
}
.ad-SVG {
display: block;
background: #fff;
border-radius: 4px;
}
.ad-Grid {
fill: none;
stroke: #eee;
stroke-width: 1px;
}
.ad-Grid.is-hidden {
opacity: 0;
}
.ad-Path {
fill: none;
stroke: #555;
stroke-width: 4px;
stroke-linecap: round;
}
.ad-Point {
cursor: pointer;
fill: #fff;
stroke: #555;
stroke-width: 5px;
-webkit-transition: fill .2s;
-o-transition: fill .2s;
transition: fill .2s;
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0