用户:Yingxxxx/test.js:修订间差异

来自Limbo Wiki
无编辑摘要
无编辑摘要
 
第1行: 第1行:
//搬运自https://www.cnblogs.com/eve-d/p/15683541.html
  L2Dwidget.init({
L2Dwidget.init({
        "model": {
"model": {
            "jsonPath": "https://unpkg.com/[email protected]/assets/z16.model.json",
       jsonPath: "https://unpkg.com/[email protected]/assets/z16.model.json",
            "scale": 1
"scale": 1
        },
},
        "display": {
"display": {
            "position": "left",
"position": "right", //模型的表现位置
            "width": 150,
"width": 150, //模型的宽度
            "height": 300,
"height": 300, //模型的高度
            "hOffset": 0,
"hOffset": 0,
            "vOffset": -20
"vOffset": -20
        },
},
        "mobile": {
"mobile": {
            "show": true,
"show": true,
            "scale": 0.5
"scale": 0.5
        },
},
        "react": {
"react": {
            "opacityDefault": 0.7,
"opacityDefault": 0.7, //模型默认透明度
            "opacityOnHover": 0.2
"opacityOnHover": 0.2
        }
}
    });
});

2022年9月1日 (四) 07:37的最新版本

   L2Dwidget.init({
        "model": {
            "jsonPath": "https://unpkg.com/[email protected]/assets/z16.model.json",
            "scale": 1
        },
        "display": {
            "position": "left",
            "width": 150,
            "height": 300,
            "hOffset": 0,
            "vOffset": -20
        },
        "mobile": {
            "show": true,
            "scale": 0.5
        },
        "react": {
            "opacityDefault": 0.7,
            "opacityOnHover": 0.2
        }
    });