Skip to content

Commit

Permalink
Merge pull request #305 from idrawjs/dev-v0.4
Browse files Browse the repository at this point in the history
chore: bump version 0.4.0-beta.19
  • Loading branch information
chenshenhai authored Mar 30, 2024
2 parents 4fa442c + a080700 commit 72daef0
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 47 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": false,
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"workspaces": [
"packages/*"
],
Expand Down
8 changes: 4 additions & 4 deletions packages/board/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/board",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -21,12 +21,12 @@
"author": "chenshenhai",
"license": "MIT",
"devDependencies": {
"@idraw/types": "^0.4.0-beta.18"
"@idraw/types": "^0.4.0-beta.19"
},
"dependencies": {},
"peerDependencies": {
"@idraw/util": "^0.4.0-beta.18",
"@idraw/renderer": "^0.4.0-beta.18"
"@idraw/util": "^0.4.0-beta.19",
"@idraw/renderer": "^0.4.0-beta.19"
},
"publishConfig": {
"access": "public",
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/core",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -21,13 +21,13 @@
"author": "chenshenhai",
"license": "MIT",
"devDependencies": {
"@idraw/types": "^0.4.0-beta.18"
"@idraw/types": "^0.4.0-beta.19"
},
"dependencies": {},
"peerDependencies": {
"@idraw/board": "^0.4.0-beta.18",
"@idraw/renderer": "^0.4.0-beta.18",
"@idraw/util": "^0.4.0-beta.18"
"@idraw/board": "^0.4.0-beta.19",
"@idraw/renderer": "^0.4.0-beta.19",
"@idraw/util": "^0.4.0-beta.19"
},
"publishConfig": {
"access": "public",
Expand Down
24 changes: 23 additions & 1 deletion packages/idraw/dev/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,30 @@ const data: Data = {
// originW: 80
// }
}
},
{
uuid: createUUID(),
type: 'text',
x: 0,
y: 150,
w: 200,
h: 100,
detail: {
text: '文字',
fontSize: 100
// lineHeight: 100
}
}
],
layout: {
x: 0,
y: 0,
w: 400,
h: 400,
detail: {
background: '#F0F0F0'
}
]
}
};

// const data: Data = {
Expand Down
7 changes: 3 additions & 4 deletions packages/idraw/dev/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import { iDraw } from '../src/index';
import { getData } from './data';

const opts = {
width: 400,
height: 400,
contextWidth: 400,
contextHeight: 400,
width: 800,
height: 500,
devicePixelRatio: 2
};

Expand All @@ -20,6 +18,7 @@ const idraw = new iDraw(
})
);
idraw.setData(data);
idraw.centerContent();
// idraw.scale(0.5);
// idraw.scale(2);
// idraw.scrollX(-80);
Expand Down
12 changes: 6 additions & 6 deletions packages/idraw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "idraw",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -22,11 +22,11 @@
"license": "MIT",
"devDependencies": {},
"dependencies": {
"@idraw/board": "^0.4.0-beta.18",
"@idraw/core": "^0.4.0-beta.18",
"@idraw/renderer": "^0.4.0-beta.18",
"@idraw/types": "^0.4.0-beta.18",
"@idraw/util": "^0.4.0-beta.18"
"@idraw/board": "^0.4.0-beta.19",
"@idraw/core": "^0.4.0-beta.19",
"@idraw/renderer": "^0.4.0-beta.19",
"@idraw/types": "^0.4.0-beta.19",
"@idraw/util": "^0.4.0-beta.19"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions packages/lab/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@idraw/lab",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"dependencies": {
"@ant-design/icons": "^5.1.3",
"@idraw/core": "^0.4.0-beta.18",
"@idraw/util": "^0.4.0-beta.18",
"@idraw/core": "^0.4.0-beta.19",
"@idraw/util": "^0.4.0-beta.19",
"antd": "^5.5.0",
"classnames": "^2.3.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@idraw/types": "^0.4.0-beta.18",
"@idraw/types": "^0.4.0-beta.19",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/renderer",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand All @@ -21,11 +21,11 @@
"author": "chenshenhai",
"license": "MIT",
"devDependencies": {
"@idraw/types": "^0.4.0-beta.18"
"@idraw/types": "^0.4.0-beta.19"
},
"dependencies": {},
"peerDependencies": {
"@idraw/util": "^0.4.0-beta.18"
"@idraw/util": "^0.4.0-beta.19"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/types",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"description": "",
"main": "src/index.ts",
"types": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@idraw/util",
"version": "0.4.0-beta.18",
"version": "0.4.0-beta.19",
"description": "",
"main": "dist/esm/index.js",
"module": "dist/esm/index.js",
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72daef0

Please sign in to comment.