瀏覽代碼

adds seeds to code file

main
Steve Ruiz 4 年之前
父節點
當前提交
dd1210c617
共有 7 個檔案被更改,包括 7 行新增0 行删除
  1. 1
    0
      lib/code/circle.ts
  2. 1
    0
      lib/code/dot.ts
  3. 1
    0
      lib/code/ellipse.ts
  4. 1
    0
      lib/code/line.ts
  5. 1
    0
      lib/code/polyline.ts
  6. 1
    0
      lib/code/ray.ts
  7. 1
    0
      lib/code/rectangle.ts

+ 1
- 0
lib/code/circle.ts 查看文件

@@ -10,6 +10,7 @@ export default class Circle extends CodeShape<CircleShape> {
10 10
 
11 11
     super({
12 12
       id: uuid(),
13
+      seed: Math.random(),
13 14
       type: ShapeType.Circle,
14 15
       isGenerated: true,
15 16
       name: 'Circle',

+ 1
- 0
lib/code/dot.ts 查看文件

@@ -10,6 +10,7 @@ export default class Dot extends CodeShape<DotShape> {
10 10
 
11 11
     super({
12 12
       id: uuid(),
13
+      seed: Math.random(),
13 14
       type: ShapeType.Dot,
14 15
       isGenerated: true,
15 16
       name: 'Dot',

+ 1
- 0
lib/code/ellipse.ts 查看文件

@@ -10,6 +10,7 @@ export default class Ellipse extends CodeShape<EllipseShape> {
10 10
 
11 11
     super({
12 12
       id: uuid(),
13
+      seed: Math.random(),
13 14
       type: ShapeType.Ellipse,
14 15
       isGenerated: true,
15 16
       name: 'Ellipse',

+ 1
- 0
lib/code/line.ts 查看文件

@@ -11,6 +11,7 @@ export default class Line extends CodeShape<LineShape> {
11 11
 
12 12
     super({
13 13
       id: uuid(),
14
+      seed: Math.random(),
14 15
       type: ShapeType.Line,
15 16
       isGenerated: true,
16 17
       name: 'Line',

+ 1
- 0
lib/code/polyline.ts 查看文件

@@ -11,6 +11,7 @@ export default class Polyline extends CodeShape<PolylineShape> {
11 11
 
12 12
     super({
13 13
       id: uuid(),
14
+      seed: Math.random(),
14 15
       type: ShapeType.Polyline,
15 16
       isGenerated: true,
16 17
       name: 'Polyline',

+ 1
- 0
lib/code/ray.ts 查看文件

@@ -11,6 +11,7 @@ export default class Ray extends CodeShape<RayShape> {
11 11
 
12 12
     super({
13 13
       id: uuid(),
14
+      seed: Math.random(),
14 15
       type: ShapeType.Ray,
15 16
       isGenerated: true,
16 17
       name: 'Ray',

+ 1
- 0
lib/code/rectangle.ts 查看文件

@@ -11,6 +11,7 @@ export default class Rectangle extends CodeShape<RectangleShape> {
11 11
 
12 12
     super({
13 13
       id: uuid(),
14
+      seed: Math.random(),
14 15
       type: ShapeType.Rectangle,
15 16
       isGenerated: true,
16 17
       name: 'Rectangle',

Loading…
取消
儲存