Giter Club home page Giter Club logo

minicad's Introduction

miniCAD

本程序是一个简单的CAD画板

[TOC]

本程序实现功能

  • **绘制图形:**包括直线、椭圆、圆、矩形、文字;
  • **图形属性:**删除、移动图形、缩放图形、改变图形线的粗细、改变颜色、改变字体、改变字号、改变字体加粗和斜体属性;
  • **画布:**改变画布大小;
  • **文件:**保存文件、读取文件、新建文件

具体操作方法

  • **绘制功能:**从左侧工具栏选择直线椭圆矩形工具,在画布上左键拖动鼠标可以绘制图形;
  • **添加文字:**从左侧工具栏选择文字工具,在画布上单击左键选择添加位置,输入需要添加的文字就能完成文字绘制;
  • **选中图形:**鼠标移动到需要选择的图形上,指针变为箭头时,单击鼠标右键即可选中图形;
  • 删除图形:
    • 选中图形后,按键盘delete或者backspace即可删除;
    • 从左侧工具栏中选择删除工具,在画布上移动鼠标,当鼠标指针变为×时,单击鼠标左键就能删除对应图形;
  • 移动图形:
    • 鼠标移动到想要移动的物体,指针变为移动时,按住鼠标右键拖动即可移动图形;
    • 从左侧工具栏中选择移动工具,在画布上移动鼠标,当指针变为移动时,按住鼠标左键拖动即可移动图形;
  • 缩放图形:
    • 按键盘
    • 滚动鼠标滚轮
    • 从左侧工具栏中选择缩放工具,在画布上移动鼠标,当鼠标指针变化时,按住鼠标左键拖动即可缩放图形;
  • 图形线的粗细:
    • 按键盘
    • 滚动鼠标滚轮(注:鼠标滚轮的功能可以通过单击滚轮来进行切换
  • **改变颜色、改变字体、改变字号、改变字体加粗和斜体属性:**鼠标右键选中图形,从面板上调整相应的属性
  • 画布大小:
    • 鼠标移到画布边缘,当指针出现变化时,按住鼠标左键拖动画布边框即可改变画布大小;(注:直接拖动的功能效果不是很好,还需要完善
    • 菜单栏编辑——画布大小
  • **保存文件、读取文件、新建文件:**菜单栏文件

minicad's People

Contributors

suntfen avatar xinghanlizju avatar

Stargazers

CyberPegasus avatar

Forkers

sjflash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.