@abi-software/scaffoldvuer 0.2.3-alpha-2 → 0.3.0
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/.eslintrc.js +12 -12
- package/CHANGELOG.md +332 -316
- package/LICENSE +201 -201
- package/README.md +164 -164
- package/babel.config.js +14 -14
- package/dist/scaffoldvuer-wc.common.js +34 -34
- package/dist/scaffoldvuer-wc.umd.js +34 -34
- package/dist/scaffoldvuer-wc.umd.min.js +34 -34
- package/dist/scaffoldvuer.common.js +374 -375
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +374 -375
- package/dist/scaffoldvuer.umd.js.map +1 -1
- package/dist/scaffoldvuer.umd.min.js +1 -1
- package/dist/scaffoldvuer.umd.min.js.map +1 -1
- package/package-lock.json +18121 -18119
- package/package.json +89 -89
- package/public/index.html +17 -17
- package/src/App.vue +669 -669
- package/src/ScaffoldVuer-wc.js +13 -13
- package/src/app/DropZone.vue +114 -114
- package/src/app/ModelsInformation.js +35 -35
- package/src/app/ModelsTable.vue +113 -113
- package/src/app/TextureDemos.js +114 -114
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +7 -7
- package/src/components/OpacityControls.vue +222 -222
- package/src/components/PrimitiveControls.vue +158 -0
- package/src/components/ScaffoldTooltip.vue +142 -142
- package/src/components/ScaffoldVuer.md +44 -44
- package/src/components/ScaffoldVuer.vue +2006 -2007
- package/src/components/TreeControls.vue +699 -699
- package/src/components/index.js +7 -7
- package/src/credential.json +12 -0
- package/src/main.js +14 -14
- package/src/scripts/BaseModule.js +80 -80
- package/src/scripts/RendererModule.js +289 -289
- package/src/scripts/WebGL.js +94 -94
- package/src/scripts/annotation.js +5 -5
- package/src/scripts/eventNotifier.js +66 -66
- package/src/scripts/graphicsHighlight.js +134 -134
- package/src/scripts/organsRenderer.js +587 -587
- package/src/scripts/search.js +182 -182
- package/src/scripts/utilities.js +146 -146
- package/styleguide.config.js +22 -22
- package/vue.config.js +41 -41
- package/src/components/test.pdf +0 -0
- package/src/searchControls.vue +0 -122
package/styleguide.config.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// set your styleguidist configuration here
|
|
3
|
-
title: 'Scaffoldvuer API reference',
|
|
4
|
-
components: 'src/components/ScaffoldVuer.vue',
|
|
5
|
-
// defaultExample: true,
|
|
6
|
-
// sections: [
|
|
7
|
-
// {
|
|
8
|
-
// name: 'First Section',
|
|
9
|
-
// components: 'src/components/**/[A-Z]*.vue'
|
|
10
|
-
// }
|
|
11
|
-
// ],
|
|
12
|
-
// webpackConfig: {
|
|
13
|
-
// // custom config goes here
|
|
14
|
-
// },
|
|
15
|
-
exampleMode: 'expand',
|
|
16
|
-
copyCodeButton: true,
|
|
17
|
-
ribbon: {
|
|
18
|
-
url: 'https://github.com/ABI-Software/scaffoldvuer',
|
|
19
|
-
text: 'Github Page'
|
|
20
|
-
},
|
|
21
|
-
styleguideDir: 'docs'
|
|
22
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
// set your styleguidist configuration here
|
|
3
|
+
title: 'Scaffoldvuer API reference',
|
|
4
|
+
components: 'src/components/ScaffoldVuer.vue',
|
|
5
|
+
// defaultExample: true,
|
|
6
|
+
// sections: [
|
|
7
|
+
// {
|
|
8
|
+
// name: 'First Section',
|
|
9
|
+
// components: 'src/components/**/[A-Z]*.vue'
|
|
10
|
+
// }
|
|
11
|
+
// ],
|
|
12
|
+
// webpackConfig: {
|
|
13
|
+
// // custom config goes here
|
|
14
|
+
// },
|
|
15
|
+
exampleMode: 'expand',
|
|
16
|
+
copyCodeButton: true,
|
|
17
|
+
ribbon: {
|
|
18
|
+
url: 'https://github.com/ABI-Software/scaffoldvuer',
|
|
19
|
+
text: 'Github Page'
|
|
20
|
+
},
|
|
21
|
+
styleguideDir: 'docs'
|
|
22
|
+
}
|
package/vue.config.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
const nodeExternals = require('webpack-node-externals');
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
configureWebpack: config => {
|
|
6
|
-
if(process.env.NODE_ENV === 'production') {
|
|
7
|
-
config.externals = [ nodeExternals({allowlist: [/^element-ui/]}) ];
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
chainWebpack: config => {
|
|
11
|
-
// GraphQL Loader
|
|
12
|
-
config.module
|
|
13
|
-
.rule('shader')
|
|
14
|
-
.test(/\.(vs|fs)$/i)
|
|
15
|
-
.use('raw-loader')
|
|
16
|
-
.loader('raw-loader')
|
|
17
|
-
.end()
|
|
18
|
-
const fontsRule = config.module.rule('fonts')
|
|
19
|
-
fontsRule.uses.clear()
|
|
20
|
-
config.module
|
|
21
|
-
.rule('fonts')
|
|
22
|
-
.test(/\.(ttf|otf|eot|woff|woff2)$/)
|
|
23
|
-
.use('base64-inline-loader')
|
|
24
|
-
.loader('base64-inline-loader')
|
|
25
|
-
.tap(options => {
|
|
26
|
-
// modify the options...
|
|
27
|
-
return options
|
|
28
|
-
})
|
|
29
|
-
.end()
|
|
30
|
-
},
|
|
31
|
-
css: {
|
|
32
|
-
sourceMap: process.env.NODE_ENV === 'wc',
|
|
33
|
-
extract: process.env.NODE_ENV !== 'wc',
|
|
34
|
-
//Import variables into all stylesheets.
|
|
35
|
-
loaderOptions: {
|
|
36
|
-
sass: {
|
|
37
|
-
prependData: `@import '@/assets/styles';`
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
|
|
2
|
+
const nodeExternals = require('webpack-node-externals');
|
|
3
|
+
|
|
4
|
+
module.exports = {
|
|
5
|
+
configureWebpack: config => {
|
|
6
|
+
if(process.env.NODE_ENV === 'production') {
|
|
7
|
+
config.externals = [ nodeExternals({allowlist: [/^element-ui/]}) ];
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
chainWebpack: config => {
|
|
11
|
+
// GraphQL Loader
|
|
12
|
+
config.module
|
|
13
|
+
.rule('shader')
|
|
14
|
+
.test(/\.(vs|fs)$/i)
|
|
15
|
+
.use('raw-loader')
|
|
16
|
+
.loader('raw-loader')
|
|
17
|
+
.end()
|
|
18
|
+
const fontsRule = config.module.rule('fonts')
|
|
19
|
+
fontsRule.uses.clear()
|
|
20
|
+
config.module
|
|
21
|
+
.rule('fonts')
|
|
22
|
+
.test(/\.(ttf|otf|eot|woff|woff2)$/)
|
|
23
|
+
.use('base64-inline-loader')
|
|
24
|
+
.loader('base64-inline-loader')
|
|
25
|
+
.tap(options => {
|
|
26
|
+
// modify the options...
|
|
27
|
+
return options
|
|
28
|
+
})
|
|
29
|
+
.end()
|
|
30
|
+
},
|
|
31
|
+
css: {
|
|
32
|
+
sourceMap: process.env.NODE_ENV === 'wc',
|
|
33
|
+
extract: process.env.NODE_ENV !== 'wc',
|
|
34
|
+
//Import variables into all stylesheets.
|
|
35
|
+
loaderOptions: {
|
|
36
|
+
sass: {
|
|
37
|
+
prependData: `@import '@/assets/styles';`
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
package/src/components/test.pdf
DELETED
|
Binary file
|
package/src/searchControls.vue
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="search-container">
|
|
3
|
-
<div class="text search-text">
|
|
4
|
-
Search within display
|
|
5
|
-
</div>
|
|
6
|
-
<el-autocomplete class="search-box" placeholder="Search"
|
|
7
|
-
v-model="searchText"
|
|
8
|
-
:fetch-suggestions="fetchSuggestions"
|
|
9
|
-
@keyup.enter.native="$emit('search', searchText)"
|
|
10
|
-
@select="$emit('search', $event.value)"
|
|
11
|
-
:popper-append-to-body=false
|
|
12
|
-
popper-class="autocomplete-popper">
|
|
13
|
-
</el-autocomplete>
|
|
14
|
-
<map-svg-icon icon="magnifyingGlass" class="magnify"
|
|
15
|
-
@click.native="$emit('search', searchText)"/>
|
|
16
|
-
<div v-if="failedSearch" class="text not-found-text">
|
|
17
|
-
'{{failedSearch}}' not found
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
/* eslint-disable no-alert, no-console */
|
|
24
|
-
import Vue from "vue";
|
|
25
|
-
import { MapSvgIcon } from '@abi-software/svg-sprite';
|
|
26
|
-
import { Autocomplete } from "element-ui";
|
|
27
|
-
import lang from "element-ui/lib/locale/lang/en";
|
|
28
|
-
import locale from "element-ui/lib/locale";
|
|
29
|
-
|
|
30
|
-
locale.use(lang);
|
|
31
|
-
Vue.use(Autocomplete);
|
|
32
|
-
|
|
33
|
-
export default {
|
|
34
|
-
name: "SearchControls",
|
|
35
|
-
props: {
|
|
36
|
-
failedSearch: undefined,
|
|
37
|
-
},
|
|
38
|
-
components: {
|
|
39
|
-
MapSvgIcon,
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
fetchSuggestions: function(term, cb) {
|
|
43
|
-
if (term === "") {
|
|
44
|
-
cb([]);
|
|
45
|
-
} else {
|
|
46
|
-
this.$emit('fetch-suggestions', { term, cb });
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
data: function () {
|
|
51
|
-
return {
|
|
52
|
-
searchText: "",
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
59
|
-
<style scoped lang="scss">
|
|
60
|
-
@import "~element-ui/packages/theme-chalk/src/autocomplete";
|
|
61
|
-
|
|
62
|
-
.search-container {
|
|
63
|
-
display:flex;
|
|
64
|
-
flex-direction: row;
|
|
65
|
-
|
|
66
|
-
.text {
|
|
67
|
-
margin-left: 8px;
|
|
68
|
-
margin-top: 7px;
|
|
69
|
-
font-weight: 500;
|
|
70
|
-
-moz-user-select: none;
|
|
71
|
-
-webkit-user-select: none;
|
|
72
|
-
-ms-user-select: none;
|
|
73
|
-
user-select: none;
|
|
74
|
-
line-height:18px;
|
|
75
|
-
}
|
|
76
|
-
.search-text {
|
|
77
|
-
margin-top: 8px;
|
|
78
|
-
color: $grey;
|
|
79
|
-
font-size: 14px;
|
|
80
|
-
margin-left: 1rem;
|
|
81
|
-
}
|
|
82
|
-
.not-found-text {
|
|
83
|
-
margin-top: 8px;
|
|
84
|
-
color: $warning;
|
|
85
|
-
font-size: 0.8rem;
|
|
86
|
-
margin-left: 0.5rem;
|
|
87
|
-
}
|
|
88
|
-
.search-box {
|
|
89
|
-
margin-top: 2px;
|
|
90
|
-
margin-left:0.5rem;
|
|
91
|
-
height:28px;
|
|
92
|
-
width:137px;
|
|
93
|
-
::v-deep .el-input__inner {
|
|
94
|
-
background-color: $background;
|
|
95
|
-
height:28px;
|
|
96
|
-
line-height:28px;
|
|
97
|
-
border: 1px solid rgb(144, 147, 153);
|
|
98
|
-
border-radius: 4px;
|
|
99
|
-
&:focus {
|
|
100
|
-
border-color: $app-primary-color;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.magnify {
|
|
105
|
-
margin-top: 2px;
|
|
106
|
-
margin-left:0.5rem;
|
|
107
|
-
background: $app-primary-color;
|
|
108
|
-
border-radius: 4px;
|
|
109
|
-
height:28px;
|
|
110
|
-
width:28px;
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
&:hover {
|
|
113
|
-
box-shadow: -3px 2px 4px 0 rgba(0,0,0,0.25);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
::v-deep .autocomplete-popper {
|
|
117
|
-
min-width:137px!important;
|
|
118
|
-
width: auto!important;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
</style>
|