mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-16 20:30:09 -07:00
FIxtures
This commit is contained in:
parent
dd3bb0df17
commit
aed7bbfc1f
@ -210,3 +210,6 @@ tech026: 2698c01
|
|||||||
tech027: 2698c01
|
tech027: 2698c01
|
||||||
tech028: 2698c01
|
tech028: 2698c01
|
||||||
tech029: 2698c01
|
tech029: 2698c01
|
||||||
|
|
||||||
|
33299a: 33299
|
||||||
|
33299b: 33299
|
@ -108,7 +108,7 @@ liip_imagine:
|
|||||||
data_loader: media
|
data_loader: media
|
||||||
cache: ~
|
cache: ~
|
||||||
quality: 80
|
quality: 80
|
||||||
default_image: '/resources/images/unknown_image_min.png'
|
default_image: '/resources/images/unknown_image.png'
|
||||||
filters:
|
filters:
|
||||||
thumbnail: { size: [200, 200], mode: inset }
|
thumbnail: { size: [200, 200], mode: inset }
|
||||||
background: { size: [250, 250], position: center, color: '#FFFFFF' }
|
background: { size: [250, 250], position: center, color: '#FFFFFF' }
|
||||||
@ -125,13 +125,13 @@ liip_imagine:
|
|||||||
quality: 80
|
quality: 80
|
||||||
data_loader: rebrickable
|
data_loader: rebrickable
|
||||||
cache: ~
|
cache: ~
|
||||||
default_image: '/resources/images/unknown_image_min.png'
|
default_image: '/resources/images/unknown_image.png'
|
||||||
filters:
|
filters:
|
||||||
thumbnail: { size: [250, 250], mode: inset }
|
thumbnail: { size: [250, 250], mode: inset }
|
||||||
rebrickable_set_min:
|
rebrickable_set_min:
|
||||||
quality: 80
|
quality: 80
|
||||||
data_loader: rebrickable
|
data_loader: rebrickable
|
||||||
default_image: '/resources/images/unknown_image_min.png'
|
default_image: '/resources/images/unknown_image.png'
|
||||||
cache: ~
|
cache: ~
|
||||||
filters:
|
filters:
|
||||||
thumbnail: { size: [250, 250], mode: inset }
|
thumbnail: { size: [250, 250], mode: inset }
|
||||||
|
@ -62,5 +62,5 @@ gulp.task('watch', ['js', 'css', 'three'], function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('default', function () {
|
gulp.task('default', function () {
|
||||||
return gulp.start(['files', 'js', 'css', 'three']);
|
return gulp.start(['files:semantic', 'files:images', 'js', 'css', 'three']);
|
||||||
});
|
});
|
@ -71,14 +71,14 @@ class ModelLoaderService extends BaseLoaderService
|
|||||||
$this->LDViewService->setLdrawFilesystem($this->ldrawLibraryContext);
|
$this->LDViewService->setLdrawFilesystem($this->ldrawLibraryContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadFileContext($file) {
|
public function setFileContext($file) {
|
||||||
$adapter = new Local($file);
|
$adapter = new Local($file);
|
||||||
$this->fileContext = new Filesystem($adapter);
|
$this->fileContext = new Filesystem($adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadAllModels()
|
public function loadAllModels()
|
||||||
{
|
{
|
||||||
$files = $this->finder->in(['/home/hubnedav/Documents/ldraw'])->path('parts/')->name('*.dat')->depth(1)->files();
|
$files = $this->finder->in([$this->ldrawLibraryContext->getAdapter()->getPathPrefix()])->path('parts/')->name('*.dat')->depth(1)->files();
|
||||||
|
|
||||||
$modelManager = $this->ldrawService->getModelManager();
|
$modelManager = $this->ldrawService->getModelManager();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user