jquery 3D房间创建插件 jRoom

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-02 23:13:08

软件介绍

jRoom

 一个可以创建3d房间的jquery插件。只需添加一行js脚本就可以创建出一个可以拖动旋转的3d房间。

配置项

  • 可用配置项

    • 墙纸宽度 wallWidth , 墙纸高度 wallHeight

    • 立方体背景配置 cube

    • 墙面附加物配置 attach

    • 立方体class名称 cubeClass

    • 视角调整比例 perspectiveRate

  • 默认配置

{
    wallWidth: 300,
    wallHeight: 300,
    cube: {
        front: 'white',
        back: 'white',
        left: '#d3d3d3',
        right: '#d3d3d3',
        top: '#f3f3f3',
        bottom: '#ddd'
    },
    attach: {
        front: '',
        back: '',
        left: '',
        right: '',
        top: '',
        bottom: ''
    },
    cubeClass: 'room-cube',
    perspectiveRate: 1,
    viewLimit: {
        xMin: -15,
        xMax: 15,
        yMin: -360,
        yMax: 360
    }
}

基本使用方法

<head>
    <script src="jquery.min.js"></script>
    <script src="../dist/jRoom.min.js"></script>
</head>

<body>
...

<div class="room">

</div>
...

<script>
    $(function(){
       $('.room').jRoom({
           wallWidth:635,
           wallHeight:664,
           cube:{
               back:'a/back.jpg',
               front:'a/front.jpg',
               left:'a/left.jpg',
               right:'a/right.jpg',
               top:'#90c0c0',
               bottom:'#9f5d3b'
           },
           perspectiveRate:1.21
       });
    });
</script>
</body>

详细请查看 demo页面 / demo页面2

本文地址:https://codercto.com/soft/d/22537.html

信息简史

信息简史

[美] 詹姆斯·格雷克 / 高博 / 人民邮电出版社 / 2013-10 / 69.00元

人类与信息遭遇的历史由来已久。詹姆斯•格雷克笔下的这段历史出人意料地从非洲的鼓语讲起(第1章)。非洲土著部落在尚未直接跨越到移动电话之前,曾用鼓声来传递讯息,但他们是如何做到的呢?后续章节进而讲述了这段历史上几个影响深远的关键事件,包括文字的发明(第2章)、罗伯特•考德里的第一本英语词典(第3章)、查尔斯•巴贝奇的差分机与爱达•拜伦的程序(第4章)、沙普兄弟的信号塔与摩尔斯电码(第5章)。 ......一起来看看 《信息简史》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具