小编Joh*_*Pep的帖子

查找将Sketch形状路径点(json格式)转换为svg路径的模式或公式

我试图找到一个模式将Sketch形状点(json格式)转换为svg路径,因为我们知道草图文件只是zip文件,解压缩你将获得json文件.这里是样本json代码

{
    "_class": "triangle",
    "do_objectID": "BE50CDBE-491C-4402-98EA-71E9C7B9F61B",
    "booleanOperation": -1,
    "frame": {
        "_class": "rect",
        "do_objectID": "0B39EF6D-9AD4-409B-85FA-D09B2B8A0692",
        "constrainProportions": false,
        "height": 56.86153846153846,
        "width": 66,
        "x": 0,
        "y": 0
    },
    "isFixedToViewport": false,
    "isFlippedHorizontal": false,
    "isFlippedVertical": false,
    "isLocked": false,
    "isVisible": true,
    "layerListExpandedType": 1,
    "name": "Triangle",
    "nameIsFixed": false,
    "resizingConstraint": 63,
    "resizingType": 0,
    "rotation": 0,
    "shouldBreakMaskChain": false,
    "userInfo": {
        "com.animaapp.stc-sketch-plugin": {
            "kModelPropertiesKey": {}
        }
    },
    "clippingMaskMode": 0,
    "hasClippingMask": false,
    "edited": false,
    "isClosed": true,
    "pointRadiusBehaviour": 1,
    "points": [
        {
            "_class": "curvePoint",
            "cornerRadius": 0,
            "curveFrom": "{0.49999999999999944, 0}",
            "curveMode": 1,
            "curveTo": …
Run Code Online (Sandbox Code Playgroud)

svg json discrete-mathematics sketchapp sketch-3

7
推荐指数
1
解决办法
254
查看次数

标签 统计

discrete-mathematics ×1

json ×1

sketch-3 ×1

sketchapp ×1

svg ×1