@mlightcad/ui-components 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/ui-components.es.js +197 -172
- package/dist/ui-components.umd.js +2 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
- package/src/components/MlCollapse.vue +2 -2
- package/src/components/MlStatusBar.vue +43 -0
- package/src/components/MlToolPalette.vue +8 -9
- package/src/{composable → composables}/useBoundingRect.ts +20 -6
- package/src/{composable → composables}/useDrag.ts +13 -20
- package/src/{composable → composables}/useDragEx.ts +5 -1
- package/src/{composable → composables}/useInitialRect.ts +3 -3
- package/src/{composable → composables}/useLastPosAndSize.ts +1 -1
- package/src/{composable → composables}/useLeftPosAndWidth.ts +5 -5
- package/src/{composable → composables}/useResize.ts +3 -3
- package/src/index.ts +10 -1
- package/lib/MlDropdown.vue.d.ts +0 -59
- package/lib/MlDropdown.vue.js +0 -106
- package/lib/MlLanguage.vue.d.ts +0 -29
- package/lib/MlLanguage.vue.js +0 -67
- package/lib/MlToolPalette.vue.d.ts +0 -2
- package/lib/MlToolPalette.vue.js +0 -149
- package/lib/MlToolbar.vue.d.ts +0 -74
- package/lib/MlToolbar.vue.js +0 -129
- /package/src/{composable → composables}/types.ts +0 -0
- /package/src/{composable → composables}/useAutoOpen.ts +0 -0
- /package/src/{composable → composables}/useTransition.ts +0 -0
- /package/src/{composable → composables}/useWindowSize.ts +0 -0
- /package/src/{svg → svgs}/arrow-left.svg +0 -0
- /package/src/{svg → svgs}/arrow-right.svg +0 -0
- /package/src/{svg → svgs}/svg.d.ts +0 -0
package/README.md
CHANGED
|
@@ -49,9 +49,7 @@ interface Props {
|
|
|
49
49
|
}
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Four `offsetXXX` properties are used to set the minimum distance from the side of the tool palette to the side of the window. It is quite useful if you want the tool palette is shown within area. For example, one web page has one title bar at the top of window, one status bar at the bottom of window, and one canvas area between the title bar and the status bar. The height of the title bar is 60px and the height of the status bar is 20px. Then you can set `topOffset` to 60 and `bottomOffset` to 20 to let the tool palette are shown and moved within canvas area only.
|
|
53
|
-
|
|
54
|
-
It is quite easy to use it.
|
|
52
|
+
Four `offsetXXX` properties are used to set the minimum distance from the side of the tool palette to the side of the window. It is quite useful if you want the tool palette is shown within certain area. For example, one web page has one title bar at the top of window, one status bar at the bottom of window, and one canvas area between the title bar and the status bar. The height of the title bar is 60px and the height of the status bar is 20px. Then you can set `topOffset` to 60 and `bottomOffset` to 20 to let the tool palette are shown and moved within canvas area only.
|
|
55
53
|
|
|
56
54
|
```javascript
|
|
57
55
|
<script lang="ts" setup>
|