npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dgiot/dgiot-topo

v0.0.3

Published

dgiot-topo

Downloads

52

Readme

dgiot-topo

dgiot-topo 开源图片编辑器,采用Vue+JavaScript+Konva开发。

微服务架构图_02.png

🏠 Homepage

演示地址

项目目录

.
├── konva
│   ├── canvas         //画布组件
│   ├── layout         //页面布局
│   ├── shape-panel    // 右侧面板
│   └── transformer-wrapper // 支持transformer高阶组件
├── components
│   ├── color-select   // 颜色选择器
│   ├── context-menu   // 右键菜单
│   ├── image          // 图片
│   ├── text           // 文本
│   ├── text-input     // 文本输入
│   └── toolbar        // 导航
├── store
│   └── index.js  // Vuex状态管理
├── pages
│   ├── index.less
│   └── index.tsx
├── styles
│   ├── index.less
│   └── theme
├── typing.ts
└── utils
    └── util.ts

功能特性

目前主要实现了简单的图片编辑,支持文字,图片等。

已支持的功能列表

  • [x] layout布局
  • [x] 文字编辑组件
  • [x] 图片编辑组件
  • [x] 画布放大缩小
  • [x] 画布右键菜单
  • [x] 图片下载
  • [x] 背景图支持

待实现的功能列表

  • [ ] 工具类操作支持上一步下一步
  • [ ] 图形组件
  • [ ] 标记组件
  • [ ] 画布多个元素组合
  • [ ] 文字组件增加,字体丰富,透明度等。
  • [ ] 画布参考线
  • [ ] 画布多个尺寸,支持多平台
  • [ ] 接入后台,实现登录,保存模板

项目架构

项目用vue开发框架,采用javascript编写,图片编辑功能用的是konva,状态管理vuex,消息通讯dgiotBus

技术栈 | 技术 | 说明 | 官网 | | ---- | ---- | ---- | | vue | 渐进式javascript框架 | https://vuejs.org/ | | konva | Konva.js - 适用于桌面/移动端应用的 HTML5 2d canvas 库. | https://konvajs.org/docs/index.html | | dgiotBus | dgiot 前端消息中间件 | https://github.com/dgiot/dgiotBus |

Installation

yarn add @dgiot/dgiot-topo

Quick Start

examples.vue

<template>
  <div id="app">
    +<dgiot-topo />
  </div>
</template>

<script>
+import DgiotTopo from '@dgiot/dgiot-topo/topo'
export default {
  name: 'App',
  components: {
    +DgiotTopo
  },
}
</script>

Online examples

Edit gmullerb-react-reducer-provider