构图备选
原能力
针对重点镜头提供不同视角、画面重点或动作表达,列出每种的约束。(细化版 p.12–13)
首选项目
Blender(GPL-3.0(整体,个别文件另核))。 Blender
匹配范围
画板、场景相机和不同视角构图变体。
源码
Blender · void RNA_def_camera(
source/blender/makesrna/intern/rna_camera.cc · 664–677 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
void RNA_def_camera(BlenderRNA *brna)
{
StructRNA *srna;
PropertyRNA *prop;
static const EnumPropertyItem prop_type_items[] = {
{CAM_PERSP, "PERSP", 0, "Perspective", ""},
{CAM_ORTHO, "ORTHO", 0, "Orthographic", ""},
{CAM_PANO, "PANO", 0, "Panoramic", ""},
{CAM_CUSTOM, "CUSTOM", 0, "Custom", ""},
{0, nullptr, 0, nullptr, nullptr},
};
static const EnumPropertyItem prop_lens_unit_items[] = {
{0, "MILLIMETERS", 0, "Millimeters", "Specify focal length of the lens in millimeters"},
{CAM_ANGLETOGGLE,
- * SPDX-License-Identifier: GPL-2.0-or-later */
Penpot · defn add-shape
frontend/src/app/main/data/workspace/shapes.cljs · 287–300 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
(defn add-shape
([shape]
(add-shape shape {}))
([shape {:keys [no-select? no-update-layout? skip-edition?]}]
(cts/check-shape shape)
(ptk/reify ::add-shape
ptk/UpdateEvent
(update [_ state]
(cond-> state
(and (cfh/text-shape? shape) (nil? (:content shape)))
(update :workspace-new-text-shapes (fnil conj #{}) (:id shape))))
- ;; Copyright (c) KALEIDOS SUBSIDIARY SL
实现与验收要点
构图意图、适用限制、比较指标及负责人选择。