angular-three 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ # angular-three
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Running unit tests
6
+
7
+ Run `nx test angular-three` to execute the unit tests.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci10aHJlZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2FuZ3VsYXItdGhyZWUvc3JjL2FuZ3VsYXItdGhyZWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -0,0 +1,2 @@
1
+ export * from './lib/angular-three.module';
2
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyLXRocmVlL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDRCQUE0QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvYW5ndWxhci10aHJlZS5tb2R1bGUnO1xuIl19
@@ -0,0 +1,15 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import * as i0 from "@angular/core";
4
+ export class AngularThreeModule {
5
+ }
6
+ AngularThreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ AngularThreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, imports: [CommonModule] });
8
+ AngularThreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, imports: [CommonModule] });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, decorators: [{
10
+ type: NgModule,
11
+ args: [{
12
+ imports: [CommonModule],
13
+ }]
14
+ }] });
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci10aHJlZS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyLXRocmVlL3NyYy9saWIvYW5ndWxhci10aHJlZS5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7O0FBSy9DLE1BQU0sT0FBTyxrQkFBa0I7OytHQUFsQixrQkFBa0I7Z0hBQWxCLGtCQUFrQixZQUZqQixZQUFZO2dIQUViLGtCQUFrQixZQUZqQixZQUFZOzJGQUViLGtCQUFrQjtrQkFIOUIsUUFBUTttQkFBQztvQkFDTixPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUM7aUJBQzFCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbkBOZ01vZHVsZSh7XG4gICAgaW1wb3J0czogW0NvbW1vbk1vZHVsZV0sXG59KVxuZXhwb3J0IGNsYXNzIEFuZ3VsYXJUaHJlZU1vZHVsZSB7fVxuIl19
@@ -0,0 +1,22 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ class AngularThreeModule {
6
+ }
7
+ AngularThreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ AngularThreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, imports: [CommonModule] });
9
+ AngularThreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, imports: [CommonModule] });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, decorators: [{
11
+ type: NgModule,
12
+ args: [{
13
+ imports: [CommonModule],
14
+ }]
15
+ }] });
16
+
17
+ /**
18
+ * Generated bundle index. Do not edit.
19
+ */
20
+
21
+ export { AngularThreeModule };
22
+ //# sourceMappingURL=angular-three.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-three.mjs","sources":["../../../../packages/angular-three/src/lib/angular-three.module.ts","../../../../packages/angular-three/src/angular-three.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class AngularThreeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAFjB,YAAY,CAAA,EAAA,CAAA,CAAA;AAEb,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAFjB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAEb,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;iBAC1B,CAAA;;;ACLD;;AAEG;;;;"}
@@ -0,0 +1,22 @@
1
+ import * as i0 from '@angular/core';
2
+ import { NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+
5
+ class AngularThreeModule {
6
+ }
7
+ AngularThreeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ AngularThreeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, imports: [CommonModule] });
9
+ AngularThreeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, imports: [CommonModule] });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: AngularThreeModule, decorators: [{
11
+ type: NgModule,
12
+ args: [{
13
+ imports: [CommonModule],
14
+ }]
15
+ }] });
16
+
17
+ /**
18
+ * Generated bundle index. Do not edit.
19
+ */
20
+
21
+ export { AngularThreeModule };
22
+ //# sourceMappingURL=angular-three.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-three.mjs","sources":["../../../../packages/angular-three/src/lib/angular-three.module.ts","../../../../packages/angular-three/src/angular-three.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\n@NgModule({\n imports: [CommonModule],\n})\nexport class AngularThreeModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAMa,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAFjB,YAAY,CAAA,EAAA,CAAA,CAAA;AAEb,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,YAFjB,YAAY,CAAA,EAAA,CAAA,CAAA;2FAEb,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACN,OAAO,EAAE,CAAC,YAAY,CAAC;AAC1B,iBAAA,CAAA;;;ACLD;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/angular-three.module';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ export declare class AngularThreeModule {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularThreeModule, never>;
5
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularThreeModule, never, [typeof i1.CommonModule], never>;
6
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularThreeModule>;
7
+ }
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "angular-three",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^15.0.0",
6
+ "@angular/core": "^15.0.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "generators": "./schematics/generators.json",
12
+ "schematics": "./schematics/generators.json",
13
+ "module": "fesm2015/angular-three.mjs",
14
+ "es2020": "fesm2020/angular-three.mjs",
15
+ "esm2020": "esm2020/angular-three.mjs",
16
+ "fesm2020": "fesm2020/angular-three.mjs",
17
+ "fesm2015": "fesm2015/angular-three.mjs",
18
+ "typings": "index.d.ts",
19
+ "exports": {
20
+ "./package.json": {
21
+ "default": "./package.json"
22
+ },
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "esm2020": "./esm2020/angular-three.mjs",
26
+ "es2020": "./fesm2020/angular-three.mjs",
27
+ "es2015": "./fesm2015/angular-three.mjs",
28
+ "node": "./fesm2015/angular-three.mjs",
29
+ "default": "./fesm2020/angular-three.mjs"
30
+ }
31
+ },
32
+ "sideEffects": false
33
+ }
@@ -0,0 +1,11 @@
1
+ # angular-three-schematics
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build angular-three-schematics` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test angular-three-schematics` to execute the unit tests via [Jest](https://jestjs.io).
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "executors": {}
4
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "name": "angular-three-schematics",
4
+ "version": "0.0.1",
5
+ "generators": {
6
+ "init": {
7
+ "factory": "./src/generators/init/generator",
8
+ "schema": "./src/generators/init/schema.json",
9
+ "description": "Init Angular Three with proper packages and config"
10
+ },
11
+ "schematics": {
12
+ "ng-add": {
13
+ "factory": "./src/generators/init/compat",
14
+ "schema": "./src/generators/init/schema.json",
15
+ "description": "Add Angular Three with proper packages and config"
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "type": "commonjs",
3
+ "main": "./src/index.js",
4
+ "types": "./src/index.d.ts",
5
+ "dependencies": {},
6
+ "peerDependencies": {
7
+ "tslib": "2.4.1"
8
+ }
9
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: (generatorOptions: any) => (tree: any, context: any) => Promise<any>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const devkit_1 = require("@nrwl/devkit");
4
+ const generator_1 = require("./generator");
5
+ exports.default = (0, devkit_1.convertNxGenerator)(generator_1.default);
6
+ //# sourceMappingURL=compat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../packages/angular-three/schematics/src/generators/init/compat.ts"],"names":[],"mappings":";;AAAA,yCAAkD;AAClD,2CAAwC;AAExC,kBAAe,IAAA,2BAAkB,EAAC,mBAAa,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export declare const ANGULAR_THREE_VERSION = "^7.0.0";
3
+ export declare const THREE_VERSION = "0.146.0";
4
+ export declare const THREE_TYPES_VERSION = "0.146.0";
5
+ export default function (tree: Tree): Promise<() => void>;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.THREE_TYPES_VERSION = exports.THREE_VERSION = exports.ANGULAR_THREE_VERSION = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const devkit_1 = require("@nrwl/devkit");
6
+ exports.ANGULAR_THREE_VERSION = '^7.0.0';
7
+ exports.THREE_VERSION = '0.146.0';
8
+ exports.THREE_TYPES_VERSION = '0.146.0';
9
+ function default_1(tree) {
10
+ var _a, _b;
11
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
12
+ devkit_1.logger.info('Initializing Angular Three...');
13
+ const packageJson = (0, devkit_1.readJson)(tree, 'package.json');
14
+ const version = ((_a = packageJson['dependencies']) === null || _a === void 0 ? void 0 : _a['@angular-three/schematics']) ||
15
+ ((_b = packageJson['devDependencies']) === null || _b === void 0 ? void 0 : _b['@angular-three/schematics']) ||
16
+ exports.ANGULAR_THREE_VERSION;
17
+ (0, devkit_1.addDependenciesToPackageJson)(tree, {
18
+ '@angular-three/core': version,
19
+ three: exports.THREE_VERSION,
20
+ }, {
21
+ '@types/three': exports.THREE_TYPES_VERSION,
22
+ });
23
+ devkit_1.logger.info('Turning on skipLibCheck for other THREE dependencies...');
24
+ const tsConfigPath = tree.exists('tsconfig.base.json') ? 'tsconfig.base.json' : 'tsconfig.json';
25
+ // Turn on skipLibCheck for three-stdlib etc...
26
+ (0, devkit_1.updateJson)(tree, tsConfigPath, (json) => {
27
+ var _a;
28
+ if (!('skipLibCheck' in json.compilerOptions) || ((_a = json.compilerOptions) === null || _a === void 0 ? void 0 : _a.skipLibCheck) === false) {
29
+ json.compilerOptions.skipLibCheck = true;
30
+ }
31
+ return json;
32
+ });
33
+ return () => {
34
+ (0, devkit_1.installPackagesTask)(tree);
35
+ };
36
+ });
37
+ }
38
+ exports.default = default_1;
39
+ //# sourceMappingURL=generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/angular-three/schematics/src/generators/init/generator.ts"],"names":[],"mappings":";;;;AAAA,yCAAqH;AAExG,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AACjC,QAAA,aAAa,GAAG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three"
6
+ }
@@ -0,0 +1 @@
1
+ export { default as initGenerator } from './generators/init/generator';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.initGenerator = void 0;
4
+ var generator_1 = require("./generators/init/generator");
5
+ Object.defineProperty(exports, "initGenerator", { enumerable: true, get: function () { return generator_1.default; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/angular-three/schematics/src/index.ts"],"names":[],"mappings":";;;AAAA,yDAAuE;AAA9D,0GAAA,OAAO,OAAiB"}