Giter VIP home page Giter VIP logo

mini-xmind's Introduction

codecov

Install

npm install mini-xmind --save-dev

Usage

Check dataSource here.

import React, { useState, useEffect } from 'react';
import { Canvas, Toolbar } from 'mini-xmind';

const dataSource = {...};

export default () => {
  const [data, setData] = useState({});

  useEffect(() => {
    setData(dataSource);
  }, []);

  const onChange = newData => {
    setData(newData);
  };

  return (
    <>
      <Toolbar />
      <Canvas className="canvas-wrapper" data={data} onChange={onChange} />
    </>
  );
};

Development

$ git clone https://github.com/orzyyyy/mini-xmind.git
$ cd mini-xmind
$ npm install
$ npm start

Open your browser and visit http://localhost:9099

Test Case

npm test

API

Toolbar props

No prop for now, just render

Canvas props

Property Description Type Default
data what you want to paint in canvas DataSource {}
onChange return all data when dragging or typing in TagGroup (dataCollector: DataSource) => void -
orientation the direction of Line startting enum, ['horizonal', 'vertical'] horizonal

mini-xmind's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mini-xmind's Issues

Save from and to

  • change blockDOM as a object from getBoundingClientRect, like { width: 0, height: 0, top: 0, left: 0 }. For from and to always render into tag like <div from={object} to={object} />, it's not intuitive.
  • save new from and to in json file. Finally I find it's unnecessary.
  • set a default class for tools, the style in json file is redundant.

[feature] Zoom in to view details

  • Details should not display in view, only trigger zoom in, and then display it and hide the other elements.
  • Synchronous and asynchronous loading when trigger zoom in. This is unnecessary, for Canvas is controlled.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/daily-test.yml
.github/workflows/deploy.yml
  • peaceiris/actions-gh-pages v3
.github/workflows/test.yml
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • codecov/codecov-action v3.1.0
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
  • actions/cache v3
npm
package.json
  • core-js ^3.4.1
  • react-draggable ^4.4.0
  • @types/classnames ^2.2.9
  • @types/enzyme ^3.10.3
  • @types/jest ^29.0.0
  • @types/react ^18.0.0
  • @types/react-dom ^18.0.0
  • cross-env ^7.0.0
  • gh-pages ^4.0.0
  • lint-staged ^13.0.0
  • mockdate ^3.0.2
  • nino-cli ^1.4.6
  • react ^17.0.0
  • react-dom ^17.0.0
  • typescript ~4.7.2

  • Check this box to trigger a request for Renovate to run again on this repository

Weekly Digest (12 April, 2019 - 19 April, 2019)

Here's the Weekly Digest for zy410419243/mini-xmind:


ISSUES

Last week 10 issues were created.
Of these, 10 issues have been closed and 0 issues are still open.

CLOSED ISSUES

❤️ #52 chore: copy circleci config file to dist, by zy410419243
❤️ #51 fix: when removing TagGroup to 0, page crashes, by zy410419243
❤️ #50 feat: remove related Line, when there is only one Block, by zy410419243
❤️ #49 feat: remove element when right click, by zy410419243
❤️ #48 chore: check lint, by zy410419243
❤️ #47 ci: check dist, by zy410419243
❤️ #46 ci: add worker for not enough memory, by zy410419243
❤️ #45 ci: copy config file of circleci for ignore branch gh-pages, by zy410419243
❤️ #44 feat: get all datas when dragging, by zy410419243
❤️ #43 refactor: replace DataCollector with context, by zy410419243

NOISY ISSUE

🔈 #43 refactor: replace DataCollector with context, by zy410419243
It received 1 comments.


PULL REQUESTS

Last week, 9 pull requests were created, updated or merged.

MERGED PULL REQUEST

Last week, 9 pull requests were merged.
💜 #52 chore: copy circleci config file to dist, by zy410419243
💜 #51 fix: when removing TagGroup to 0, page crashes, by zy410419243
💜 #50 feat: remove related Line, when there is only one Block, by zy410419243
💜 #49 feat: remove element when right click, by zy410419243
💜 #48 chore: check lint, by zy410419243
💜 #47 ci: check dist, by zy410419243
💜 #46 ci: add worker for not enough memory, by zy410419243
💜 #45 ci: copy config file of circleci for ignore branch gh-pages, by zy410419243
💜 #44 feat: get all datas when dragging, by zy410419243


COMMITS

Last week there were 21 commits.
🛠️ chore: update dist mode to production by zy410419243
🛠️ chore: copy circleci config file to dist (#52) by zy410419243
🛠️ revert: use gh-pages for deploy by zy410419243
🛠️ test: update cases for Line by zy410419243
🛠️ test: update case for entry by zy410419243
🛠️ test: update case for entry by zy410419243
🛠️ fix: when removing TagGroup to 0, page crashes (#51) by zy410419243
🛠️ feat: remove related Line, when there is only one Block (#50) by zy410419243
🛠️ [feat: remove element when right click (#49) * feat: remove element when right click


CONTRIBUTORS

Last week there was 1 contributor.
👤 zy410419243


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there were no releases.


That's all for last week, please 👀 Watch and Star the repository zy410419243/mini-xmind to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

Weekly Digest (26 May, 2019 - 2 June, 2019)

Here's the Weekly Digest for zy410419243/mini-xmind:


ISSUES

Last week, no issues were created.


PULL REQUESTS

Last week, no pull requests were created, updated or merged.


COMMITS

Last week there were 2 commits.
🛠️ chore: bump 1.2.2 by zy410419243
🛠️ fix: set default props to resolve unexpected undefined by zy410419243


CONTRIBUTORS

Last week there was 1 contributor.
👤 zy410419243


STARGAZERS

Last week there were no stargazers.


RELEASES

Last week there was 1 release.
🚀 1.2.2 1.2.2


That's all for last week, please 👀 Watch and Star the repository zy410419243/mini-xmind to receive next weekly updates. 😃

You can also view all Weekly Digests by clicking here.

Your Weekly Digest bot. 📆

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.