浏览代码

Add pencils

tags/v0.1.0
Fen Dweller 5 年前
父节点
当前提交
88c348afed
共有 3 个文件被更改,包括 23 次插入1 次删除
  1. +2
    -1
      media/attribution.js
  2. +6
    -0
      media/objects/pencil.svg
  3. +15
    -0
      presets/objects.js

+ 2
- 1
media/attribution.js 查看文件

@@ -565,7 +565,8 @@ const attributionData = {
{ name: "nail-polish.svg", source: null },
{ name: "shot-glass.svg", source: null },
{ name: "beer-bottle.svg", source: null },
{ name: "circle.svg", source: null }
{ name: "circle.svg", source: null },
{ name: "pencil.svg", source: null },
],
authors: [
"chemicalcrux"


+ 6
- 0
media/objects/pencil.svg 查看文件

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 16 391" style="enable-background:new 0 0 16 391;" xml:space="preserve">
<path d="M15,11V2c0,0,0-2-3-2C8,0,8,0,8,0s0,0-4,0C1,0,1,2,1,2v9l-1,1v345l8,34l8-34V12L15,11z"/>
</svg>

+ 15
- 0
presets/objects.js 查看文件

@@ -190,6 +190,21 @@ function makeObjects() {
}
)
});

results.push({
name: "Pencil",
constructor: () => makeObject(
"Pencil",
{
pencil: {
height: math.unit(7.5, "inches"),
mass: math.unit(7, "g"),
image: { source: "./media/objects/pencil.svg" },
name: "Pencil"
}
}
)
});
results.sort((b1, b2) => {
e1 = b1.constructor();


正在加载...
取消
保存