Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add mobile selection #2559

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
91797ec
feat: init basic mobile features
wzhudev Jun 7, 2024
9719d1f
fix: rollback desktop changes
wzhudev Jun 7, 2024
a0702ce
feat: demonstrate removing canvas features
wzhudev Jun 7, 2024
afd0598
feat: enable filter rendering
wzhudev Jun 7, 2024
12a3d7f
feat: support formula over web worker
wzhudev Jun 11, 2024
a137899
feat: add mobile header
wzhudev Jun 11, 2024
19be9fd
feat: enable data validation
wzhudev Jun 11, 2024
c26bff6
feat: enable conditional formatting
wzhudev Jun 11, 2024
bce2a36
feat: add mobile worksheet
wzhudev Jun 11, 2024
2d92507
feat: add mobile jsdoc
wzhudev Jun 11, 2024
0433526
feat: add scroll into view
wzhudev Jun 11, 2024
23863ca
feat: mobile context menu
wzhudev Jun 11, 2024
0cf29f5
fix: change header style
wzhudev Jun 11, 2024
fb772fd
feat: context menu ui
wzhudev Jun 13, 2024
cda2931
chore: code style
wzhudev Jun 14, 2024
256d5c1
docs: update render unit drawing
wzhudev Jun 17, 2024
617c03c
Merge remote-tracking branch 'origin/dev' into feat/mobile-poc
wzhudev Jun 17, 2024
69acd64
feat(sheets-ui): optimize ref-range for hyper-link and thread-comment…
weird94 Jun 7, 2024
23865ce
fix: draw dashrect in visible area
lumixraku Jun 3, 2024
aa41b90
feat: mobile selection
lumixraku Jun 11, 2024
978edf8
chore: better shape style
lumixraku Jun 21, 2024
1f2a572
fix: popup position when scrolled
lumixraku Jun 21, 2024
1985536
chore: add rangetype when update control
lumixraku Jun 21, 2024
9df2f6c
chore: move dash logic into dashedrect
lumixraku Jun 19, 2024
cb2fa8d
test: change selection shape Y when scrolling
lumixraku Jun 26, 2024
f152d32
feat: use scrollInfo$ to control scrolling
lumixraku Jun 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,6 @@ storybook-static

*storybook.log
typedoc.json


.vscode
22 changes: 21 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,25 @@
"toml",
"less",
"css"
]
],
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#2f7c47",
"activityBar.background": "#2f7c47",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#422c74",
"activityBarBadge.foreground": "#e7e7e7",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#2f7c47",
"statusBar.background": "#215732",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#2f7c47",
"statusBarItem.remoteBackground": "#215732",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#215732",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#21573299",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#215732"
}
5 changes: 5 additions & 0 deletions examples/esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ const ctx = await esbuild[args.watch ? 'context' : 'build']({

// uni
'./src/uni/main.ts',

// mobile sheet
'./src/mobile-s/main.ts',
'./src/mobile-s/worker.ts',
],

outdir: './local',

define: {
Expand Down
31 changes: 31 additions & 0 deletions examples/public/mobile-s/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<title>Univer Sheets</title>

<link rel="icon" type="image/x-icon" href="../favicon.svg" />
<link rel="stylesheet" href="./main.css" />
<style>
html,
body {
height: 100%;
margin: 0;
}
</style>

<script>
new EventSource('/esbuild').addEventListener('change', () => {
console.info('reload--');
location.reload();
});
</script>
</head>

<body style="overflow: hidden">
<div id="app" style="height: 100%"></div>

<script src="./main.js"></script>
</body>
</html>
Loading